5 Benefits of Immutable Objects Worth Considering for Your Next Project
https://buttercms.com/blog/5-things-you-should-know-about-immutable-objects
In programming, an immutable object is an object whose state cannot be modified after it is created. While at first this may not seem very useful, we explain why you should take a second look.
Drab 0.5.0 released, introducing living assigns in Phoenix templates
Drab is not jQuery dependent anymore, and allows to update the assign value by pushing it to the browser(s) from the server, live, without re-rendering the page.
Client:
<a href="https://<%= @url%>" @style.backgroundColor=<%= @color%>>
<%= @url %>
</a>
Immediate change color and url on the server side:
iex> poke socket, url: "tg.pl/drab", color: "red"
Benchmarking and profiling Elixir apps
This article explores ways and tools available for benchmarking and profiling Elixir apps.
Measure, identify and fix potential bottlenecks.
Razor - an opinionated Phoenix app generator
Here’s a phoenix app skeleton generator I released through Carbon Five today, with help from a couple others too. If you like what’s in the box, give it a spin! http://blog.carbonfive.com/2017/07/13/razor-hit-the-ground-running-with-your-next-phoenix-project/
Writing a HTTP API Client in Elixir
I wrote an Elixir Client for the Noun Project API and did a gigantic (beginner-friendly!) write-up, showing how to abstract and refactor things.
http://www.eidel.io/2017/07/13/http-api-client-elixir-noun-project/
My New Favorite Elixir Testing Trick
There’s a brilliant way to use OTP to test your interactions with the scary world outside your application, and it’s my new favorite testing trick! Check it out here:
http://www.devonestes.com/my-new-favorite-elixir-testing-trick
Using Ranch with Elixir
I couldn’t find a nice example of using ranch with GenServer in elixir so I made one.
Convert strings to any case
Ever wanted to convert snake case to camel case?
You can use Macro
module for that. Except it should not be used this way. As it states itself:
Do not use it as a general mechanism for underscoring or camelizing strings as it does not support Unicode or characters that are not valid in Elixir identifiers.
But with recase
it is easy and reliable: Recase.to_camel(“some_value”) # => “someValue”
recase
also supports: UpperCase
, kebab-case
, Path/case
, CONSTANT_CASE
, and dot.case
Check it out: https://github.com/sobolevn/recase
Getting Started With Phoenix v1.3.0
A gentle introduction to Phoenix for those with a basic understanding of Elixir. Readers build the backend to a basic rostering system, with many of the basic tasks required to build a Phoenix application progressively introduced and explained.
A Year with Cachex in Production
I wrote up some stuff about the first year of Cachex, check it out: https://whitfin.io/a-year-with-cachex-in-production/
WebSockex 0.4.0
There’s one breaking change this release:
-
send_frame/2
is now synchronous and returns an error when connection is opening or closing.
I think the most exciting thing about this release is the addition of OTP based debugging capabilities. Check it out and provide feedback!
Take a look at the v0.3.1…v0.4.0
diff, the release on hex.pm
, or the v0.4.0
Release Notes for more information
A naive blockchain implementation in Elixir
A “naive” blockchain implementation to learn Elixir and blockchain basic concepts. Looking for feedbacks 🙃
Announcing Firestorm 0.9
Announcing Firestorm 0.9 - https://forum.firestormforum.org/categories/5/threads/4
We got some great news for you today! After a long hackathon: Firestorm 0.9 is available on github! Also we’ve deployed the Firestorm official forum, so please come chat!
This is our first major public release, and while it is still a few features short of 1.0, we think that the data model is sane and it is ready to be used by others.
We also have a sweet site up. If you should be listed there and you are not, please email support@dailydrip.com so we can fix it.
We’d love feedback on both the site and the 0.9 release.
Designing a P2P Lending platform with Elixir in mind
I’ve written a long post on how we created our first large project in Elixir.
Debugging Mix Dependencies Locally
I wrote up a quick post showing how to debug 3rd party dependencies locally in an Elixir project, something I find myself doing at least a couple of times a week :)
Minerva, a little framework to write koans in Elixir
Hi there!
I just published v0.1.1 of minerva
, an Elixir framework for easily writing koans.
You can use it to write learning paths for your libraries, to learn new stuff or for whatever you want to use it for!
Contributions are always welcome, I’ll keep adding features in the future :)
Flow-Based REST API with Flowex and Plug
I’ve published a post about Railway-FBP application design using Flowex.
The advantages of such approach are discussed using a simple example of API application build on top of Elixir Plug.
There is also Benchmark section at the end which sheds some light on Elixir GenStage performance.
Enjoy reading!