Phoenix 1.7 is dropping path helpers in favor of a new concept called verified routes. Let's see how it handles typos, missing paths, arguments, and query params.
Undefined behavior, and the Sledgehammer Principle
Previously, an article made the rounds concerning Undefined behavior that made the usual Rust crowd go nuts and the usual C and C++ people get grumpy that someone Did Not Understand the Finer Points and Nuance of Their Brilliant Language. So, as usual, it’s time for me to do what I do best
Move or copy your strings? Possible performance impacts
You sometimes want to add a string to an existing data structure. For example, the C++17 template ‘std::optional’ may be used to represent a possible string value. You may copy it there, as this code would often do… std::string mystring; std::optionalstd::string myoption; myoption = mystring; Or you can move it: std::string mystring; std::optionalstd::string myoption; myoption … Continue reading Move or copy your strings? Possible performance impacts
As engineers we spend a lot of our time debugging problems,
yet it's rarely taught as a skill in its own right.
Some bugs are difficult enough
that they can seem borderline impossible to solve,
especially for devs toward the junior end of the spectrum.
There's no worse feeling than being stuck
on a hard problem,
not knowing how to proceed.
Of course,
the right thing to do if you're stuck like that
is ask for help;
from your team,
from other engineers in your org or social circle,
from random strangers on the internet.
As a random stranger on the internet then,
this post is my attempt to help get you unstuck
if you find yourself in that situation.
Elixir modules, files, directories, and naming conventions
Today, let’s talk about naming and organising Elixir project modules and files. Then, I’ll try to summarise some conventions that I have seen out there and h...
A Slack bookmarking application in Elixir with Opus · Dimitris Zorbas
This post describes how we used Elixir and Opus in one of our services at Tefter, which implements bookmarking collaboration in Slack.
My relationship with Slack I remember, when Slack started getting viral and it was set as the main chat app at work, I was very reluctant to use it. I was quite happy with IRC and always in favour of open protocols. Since it supported an IRC / XMPP gateway, tweaking my irssi config and later finch was trivial and my overall experience was good.
Functional Programming eXchange 2014 conference cast. Scott Wlaschin: Join Scott Wlaschin who will explain how to create robust real world applications in a ...
Scott Wlaschin - Railway Oriented Programming -- error handling in functional languages
When you build real world applications, you are not always on the "happy path". You must deal with validation, logging, network and service errors, and…