Return Data, Not ActiveRecord Objects
Why returning plain data instead of models made some of my Rails code simpler, faster and easier to test.
Why returning plain data instead of models made some of my Rails code simpler, faster and easier to test.
Years ago I added Elasticsearch to a Rails app and search got faster. I credited the search engine. Looking back, I’m not sure that was the lesson. Here is h...
When an Emacs package needs an API token, the easy path is to introduce a custom variable and let users store the secret in their configuration. shpaste take...
Elixir is dynamically typed, but ‘typing in Elixir’ now spans three things: the runtime shape you get from pattern matching and structs, optional typespecs c...
Phoenix LiveView handles real-time interactivity on the server, so you can build interactive pages without writing a frontend framework. Here’s a small task ...