Derek Kraan
banner
derekkraan.bsky.social
Derek Kraan
@derekkraan.bsky.social
#ElixirLang
Former Founder: codecodeship.com
Library Author: Horde, Highlander, CurlReq
#Marktplaats protip:

userContent.css (in FF, not sure in other browsers)

ul.hz-Listings > :not(.hz-Listing) { display: none; }

This will stop all the scroll-jumping that happens as you try to browse results.
November 2, 2025 at 8:09 AM
Reposted by Derek Kraan
who creates the lively art and music scenes if the rent is too high? who makes cultural life? who serves you food or washes your dishes? who creates the fancy little restaurants that draw you to urban living? affordable housing is at the heart of what makes city life worthwhile.
October 26, 2025 at 6:04 AM
Bring back the railway bubble!
While Trump talks up manufacturing, Bloomberg notes the only real growth outside tech and healthcare is AI data center spending, likening it to past buildouts like the 1870s railways or the 1990s fiber and wireless booms (and bubbles).

The U.S. economy now hinges on OpenAI 10xing revenue in 5 years
October 26, 2025 at 6:13 PM
Reposted by Derek Kraan
David Simon, creator of ‘The Wire’, being interviewed by Ari Shapiro (NPR)
October 9, 2025 at 4:42 AM
PSA!

It's so easy to forget to handle websocket reconnects in LV, but if you're deploying regularly, your users are likely seeing A LOT of bugs coming from this.

Go to one of your pages, click around a bit, then run `liveSocket.socket.triggerChanError()`, and see what happens.

#ElixirLang
October 7, 2025 at 2:43 PM
I'm pulling the plug on Code Code Ship next week Friday.

As part of this, I'm releasing highlander_pg as open source. It's a variant of my original highlander package, which uses postgres advisory locks. It's solid! It is ergonomic! It is production-tested!

hex.pm/packages/hig...

#elixirlang
highlander_pg
There can only be one! (run a globally unique singleton process)
hex.pm
September 19, 2025 at 12:44 PM
Reposted by Derek Kraan
Wrapped up my conference season for this year with #goatmire Elixir. Had too much fun telling a story one last time, and had even more fun watching some of the most unusual and memorable talks I've ever seen.

Photo credits: @petterbos.bsky.social
September 15, 2025 at 6:24 AM
Testing out Elixir 1.19-rc.0. App compilation times are unchanged.

But dependency compilation is pinning all 24 cores on my machine and is down to 55s from 143s. Big upgrade!

#elixirlang
September 15, 2025 at 8:36 AM
Reposted by Derek Kraan
I just published this video, and the next night, Russia launches drones at Poland. It really underscores the point. The European NATO countries need Ukraine just as much as Ukraine needs security guarantees from them.
European security depends on Ukraine
YouTube video by Anders Puck Nielsen
www.youtube.com
September 10, 2025 at 6:07 AM
youtu.be/RxapAZRYJ6I?... I have to post this video by @anderspucknielsen.dk. If you want to know how (and why) Ukraine really fits into our security in Europe then watch this video.
European security depends on Ukraine
YouTube video by Anders Puck Nielsen
youtu.be
September 10, 2025 at 7:22 AM
Reposted by Derek Kraan
Toronto has tried this with Bloor, University and Yonge by installing bike lanes, making the street safer, slower for all and Ford is going to court again to rip them out. So speed cameras it as good as we might get (ignoring the "tax grab" nonsense toddler rhetoric).
I agree with Ford on this. These cameras are nothing but a tax grab

If municipalities were serious about managing speed they would design the roads appropriately

Cameras should be the last tool used
September 9, 2025 at 4:37 PM
Reposted by Derek Kraan
A friend’s 3-year old on a pedestrian street: “There’s no cars here so we don’t have to hold hands. I can run!”
August 19, 2025 at 3:19 PM
Reposted by Derek Kraan
In #Phoenix #LiveView v1.1.0-rc.0 we shipped `:key` support for comprehensions in HEEx. The idea was to finally be able to have change tracking in comprehensions. We did this by leveraging LiveComponents. Sounds easy enough, right? There were some problems though. A thread. #MyElixirStatus
July 7, 2025 at 1:09 PM
PSA: Tailwind (aka Phoenix) users should add the following CSS to their project:

.\@container > * + * { border: 5px solid red !important; }

With a comment saying "if you see this, you messed up, containers should only ever have one child element!"

#elixirlang
July 7, 2025 at 3:32 PM
Are we doing transit hot takes?

America (🇺🇸) has lots of transit actually, it just needs to use it.

America has a land use problem, not a transit problem.

(Exception: NYC)
It is remarkable how many supposedly pro transit politicians do not understand that we do not have a capital underinvestment problem, but a costs problem
June 24, 2025 at 2:59 PM
Reposted by Derek Kraan
One of the most consequential transit Youtube videos has just dropped:
How Hong Kong built the world's most valuable subway
YouTube video by The Flying Moose
www.youtube.com
June 8, 2025 at 1:47 PM
Reposted by Derek Kraan
It's that time of year again: Stack Overflow survey!

Do your part and represent your community!

#ElixirLang

stackoverflow.az1.qualtrics.com/jfe/form/SV_...
2025 Developer Survey | Stack Overflow
Stack Overflow's annual Developer Survey is for the worldwide developer and technology community to answer questions about what they use and how they feel about the latest in technology.
stackoverflow.az1.qualtrics.com
May 31, 2025 at 3:04 PM
TIL ExUnit has an assert/2, where you can provide a message to show if the assertion fails! This makes communicating intent of tests so much easier.

h/t @richardtaylor.dev who used this in our codebase, never seen it before!

hexdocs.pm/ex_unit/1.12...
ExUnit.Assertions — ExUnit v1.12.3
hexdocs.pm
June 3, 2025 at 8:51 AM
Reposted by Derek Kraan
As we're getting ready for the first release candidate of #Phoenix #LiveView 1.1, I want to write about some of the new features and improvements we've been working on. A thread!
#ElixirLang #MyElixirStatus
May 30, 2025 at 10:40 AM
Reposted by Derek Kraan
omg every neuron of my brain just started sparking with joy at this subreddit www.reddit.com/r/ThingsCutI...
Things Cut in Half
For your cut in half needs.
www.reddit.com
May 15, 2025 at 6:01 PM
Reposted by Derek Kraan
These are negotiations about a ceasefire. It is insane to give these kinds of concessions before the negotiations about a final peace settlement even begin. One has to wonder what Russia will expect to get at that point.
This is insane.

The US will present a seven-point peace plan today, reports The Telegraph, citing sources.

The US proposal is as follows:

➡️ Ukraine must abandon its claims to Crimea;
April 23, 2025 at 7:03 AM
⭐ Just released CurlReq 0.100.1. ⭐

Release includes a Plug to log requests in 🥌 curl format.

It also now initializes requests with Req.new/0, solving issue related to defaults being missing. h/t @peterullrich.com for raising the issue

Once again many thanks to @kevinschweikert.de!
April 16, 2025 at 8:04 AM
Reposted by Derek Kraan
this is wild: vehicle capacity of freeway lanes dropped 10 percent as SUVs took over the road -- not just bc they are bigger. they also take more time and space to slow down and obscure other drivers' sightlines.

www.bloomberg.com/news/article...
How SUVs Are Making Traffic Worse
As larger, taller sport utility vehicles took over US roads, they also aggravated highway congestion, according to a new study. It’s yet another ill effect of “car bloat.”
www.bloomberg.com
April 14, 2025 at 8:52 PM
Reposted by Derek Kraan
Premier Schoof zegt: “We gaan de lasten niet bij latere generaties neerleggen.”
Klinkt verstandig, toch? Maar dit is een klassiek staaltje framing. Hoe de staatsschuld bewust negatief wordt geframed door Heinen en Schoof.
🧵
nieuws.nos.nl NOS @nieuws.nos.nl · Mar 28
Kabinet tegen oplopen staatsschuld, ondanks wensen van coalitie
Kabinet tegen oplopen staatsschuld, ondanks wensen van coalitie
Het kabinet voelt er weinig voor om de Nederlandse begrotingsregels te versoepelen om tegemoet te komen aan miljarden kostende wensen van de coalitiepartijen. Dit is de boodschap van premier Schoof aan het begin van aankomende de onderhandelingen over de voorjaarsnota. We gaan de lasten niet bij latere generaties neerleggen, aldus de premier op zijn wekelijkse persconferentie. Het gaat niet om of we het durven, maar of we het afwijzen van de begrotingsregels verantwoord vinden.ppSchoof reageerde op vragen op een voorstel van coalitiepartij BBB, die het een goed plan vindt om de staatsschuld op te laten lopen. BBB zegt al langer dat Nederland niet kapot bezuinigd moet worden. Bij BNR Nieuwsradio zei Kamerlid Vermeer dat hij denkt aan een maximum van 50 procent en dat zou betekenen dat bijna 70 miljard euro extra geleend zou worden. Daar is minister Heinen geen voorstander van, refereerde Schoof aan de VVDminister van Financin die bekendstaat als zuinige boekhouder.ph2Geen taboeh2pDe afgelopen tijd wordt er steeds vaker gepleit voor het soepeler omgaan met bestaande regels om rijksbegroting op orde te houden. Ook de Europese Commissie zegt dat dit mag, om bijvoorbeeld het 800 miljard euro kostende project om Europa te herbewapenen mee te bekostigen. Lenen is geen taboe meer, zo lijkt het.ppDaar denkt het Nederlandse kabinet anders over. Alles wat je doet, moet ook weer betaald worden. Je moet op lange termijn de consequenties zien, aldus Schoof.ph2Boodschappenh2pIn de voorjaarsnota kunnen de coalitiepartijen PVV, VVD, NSC en BBB de begroting van dit jaar aanpassen. De wensenlijsten van zowel deze vier partijen als individuele ministers is groot. Het gaat om minder dure boodschappen, het oplossen van het stikstofprobleem, lagere energiekosten, meer aansluitingen op het stroomnet en nog meer.ppKijk hieronder naar een overzicht:ppPremier Schoof zegt begrip te hebben voor de druk die de partijen opvoeren om hun wensen te realiseren en spreekt over een bijna natuurlijk politiek proces.ppMaar het kabinet is zover nog niet. Dat moment is bij ons nog niet aangebroken, aldus Schoof. Hij laat in het midden of er de komende tijd nog wel zon moment aanbreekt. Over twee weken moeten de voorjaarsnotagesprekken rond zijn. Op vrijdag 11 april wordt duidelijk of en hoe het kabinet die wensen honoreert.p
nos.nl
March 29, 2025 at 11:49 AM