Protohackers
Phoenix 1.7's verified routes
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
Building Custom RSpec Matchers with Regular Objects
RSpec custom matchers can be written using plain old objects.
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
Tag All the Things!
Add tagging with no extra tables using Postgres array fields and Ecto for an easy an simple solution.
Video object detection in Elixir using Nx and Bumblebee | Culttt
In this tutorial we're going to be building video object detection in Elixir using Nx and Bumblebee.
Your First LiveView — Live View Native Tutorials | Documentation
In this tutorial, you’ll build a simple LiveView app to show a list of cute cats.
A pattern / library for methods that return a status, including localization – The Reformed Programmer
Embedding XML templates in Phoenix 1.7 | Culttt
This tutorial shows how to use embedded templates in Phoenix 1.7 when the format of the template is not HTML.
Copy to Clipboard with Phoenix LiveView
Copy to a user's clipboard with Phoenix LiveView.
README — Phoenix Live Favicon v0.2.0
How to debug
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.
Why Your Code Sucks: Common Excuses for Bad Programming
Dave Farley's exploration of seven common excuses that software developers make for doing a terrible job.
Elixir/Phoenix Project: Import CSV & Seed Data
Goals Seed the destinations table I finished setting up the first schema with everythin...
How to Enable File Uploads with Phoenix LiveView
In one way or another, you may want to add a feature in your phoenix application that allows users to upload images and view them. Lucky…
19 Workout of the Day: Parsing CSV files, creating text table output - Tiny Python Projects: Learn coding and testing with puzzles and games
How to Do Live Uploads in Phoenix LiveView | AppSignal Blog
Discover how to do live file uploads with LiveView, so that you can easily build forms.
Introductory Data Structures and Algorithms — YSC2229 2021
14 Jan, 2023 - P2PD: Improving async networking in Python
Building a Remote Control Car from Scratch Using Elixir - Erlang Solutions
From the car straight to the app on your phone, check out how our America office uses Elixir’s fullstack capability to build a remote control car.
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.
How to create beautiful pipelines on Elixir with Opus
I am not sure if Zorbash had the idea to create Opus while we worked on the same project at Quiqup, but if there’s one thing I can be sure…
Railway Oriented Programming | SkillsCast
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…
Elixir libraries | Everything I know
Web
How I Centralized Our Scattered Business Logic Into One Clear Pipeline For Our Elixir Webhook Service
Find out how centralizing scattered business logic into one clear pipeline for our Elixir webhook service helped PagerDuty as a company gain better visibility into how the service actually worked.
A Downloads Folder Organizer in just 15 lines of code #python
We are living in the “Golder Era of the Internet” and we download stuff. Most of us have that built-in browser setting which saves the…
Waffle.Ecto.Schema — waffle_ecto v0.0.11