It’s tempting to write
LiveViewTest assertions that specify too much of our HTML. But that couples our tests to the implementation specifics. There’s a better way: the
has_element?/3 helper can help us be specific without adding coupling.
In episode 27 of Thinking Elixir, we talk with Zach Daniel, the creator of the Ash Framework, a declarative, resource-oriented application framework for Elixir that lets you build out JSON or GraphQL APIs in minutes. In this episode he explains the history, guiding doctrine of Declarative Design how it can give developers a huge boost without boxing them into a corner! Check it out!
defmodule HelloTest do use ExUnit.Case use WithEnv test "can put values into the env" do assert Application.get_env(:hello, :saying) == nil with_env put: [hello: [saying: "galaxy"]] do assert Application.get_env(:hello, :saying) == "galaxy" end assert Application.get_env(:hello, :saying) == nil end test "can delete values from the env" do Application.put_env(:hello, :saying, "world") with_env delete: [hello: [:saying]] do assert Application.get_env(:hello, :saying) == nil end assert Application.get_env(:hello, :saying) == "world" assert Application.delete_env(:hello, :saying) == :ok end end
This post awaits moderation.
There is a growing number of posts plugging services not related to Elixir. To keep the quality of this community, some posts have to moderatored.
Sorry for this inconvenience!
🎧 Great interview with José Valim, the creator of the Elixir programming language.
Light update to one of my favorites. Before, we could do this:
iex> import PredicateSigil ...> Enum.filter([1,2,3,4], ~p(3))  # ~p(3) === fn 3 -> true; _ -> false end
But sometimes the awesome
Stream APIs don’t have the negated version of what you want - so now you can also:
iex> Enum.take_while([1,2,3,4], ~p(!3)) [1,2] # ~p(!3) === fn 3 -> false; _ -> true end
In my newest blog post I show how to leverage Elixir processes’ messaging system to test the content of the files we’re uploading.
Check it out here: https://www.elvismelkic.com/unit-test-upload-content/
Happy to announce the new stable release of hackney :) Enjoy!
hackney is an HTTP client library for Erlang.
- fix SSL compatibility with erlang OTP 23
- handle empty trailers
- fix race condition in connection pool
- fix memory leak in connection pool
- IDNA update to unicode 13.0.0
- fix build on macosx with OTP >= 20.1
- fix network Location on redirect
- produce uppercase hexadecimal in URLS
- pool queue count metric is now named queue_count
- miscellaneous fixes in documentation
Possible breaking changes:
- The pool queue count metric is now named queue_count. You should update your dashboard to reflect it.
- Possible breaking changes when producing uppercase hexadecimal in urls. This changes the behaviour of urlencode and pathencode to produce uppercase hexadecimal to comply with the RFC3986 which may affect systems using URL as signature or in an hash.
Install from the hex.pm package repository:
Today’s market offers an impressive variety of medical apps for both patients and medical personnel. Furthermore, healthcare is a quickly developing industry and requires constant improvements. Many software development companies regularly come up with new successful ideas.
Read the full article about Healthcare Application Development as a Growing Trend for the Future of Medicine and share your thoughts on it.
In this post, we will explore how in our efforts to optimize an internal service, we stumbled upon a performance problem that has lived in the Elixir codebase for seven years.
We’re back after a hiatus on our irregularly posted podcast! Chris and Desmond are back in the hot seat, this time joined by CTO and co-founder at Boulevard, Sean Stavropoulos where we hear all about the founding of Boulevard and their early adoption of Elixir and GraphQL.
Latest episode of Elixir Wizards is out today! Check it out here: https://smartlogic.io/podcast/elixir-wizards/s5e3-glenn-gregg/
I just released the first working version of imageflow_ex, a package that provides FFI bindings to imageflow, a Rust-based tool that offers extremely fast image processing (https://www.imageflow.io/benchmarks/)
I also include a higher-level API resembling Elixir Streams
Check it out on Github: https://github.com/naps62/imageflow_ex
In episode 26 of Thinking Elixir, we talk with Jonathan Allen, an instructor at a Utah college, who taught Elixir to his Distributed Computing students. He tells how he got Elixir into the classroom, how it went, and how we in the professional community can influence Elixir in education, and much more!
Event Sourcing and CQRS are great design patterns for some domains. The Incident library will help implement them without compromising other parts of your application.
This is the second post of a series of posts that I will present the usage of Incident.
Latest episode of Elixir Wizards is out today! Check it out here: https://smartlogic.io/podcast/elixir-wizards/s5e2-thomas/
It is essential to choose the best frameworks for your project. If you’re building a cross-platform application, the main competitors are Flutter and React Native. We’ll compare them according to different criteria so that you can select the best option for you.
Read the full article about Flutter Vs. React Native – Who’s The Winner in 2021?
The version 0.6.0 handles race condition scenarios and other improvements. Check it out: https://hex.pm/packages/incident
Browser.assert_text/3now return the parent instead of
truewhen the text was found.
- File uploads when using local and remote selenium servers.
Added support for touch events
Added support for getting Element size and location