@samwho@hachyderm.io
@samwho@hachyderm.io avatar

samwho

@samwho@hachyderm.io

Writing visual guides to programming concepts at https://samwho.dev.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

samwho, to random
@samwho@hachyderm.io avatar
samwho, to random
@samwho@hachyderm.io avatar
samwho, to random
@samwho@hachyderm.io avatar

There’s a story here, and I am excited for Apple to fund a film adaptation of it.

samwho, to random
@samwho@hachyderm.io avatar

Made a dumb website so I wouldn't ever have to Google "tm symbol" again.

https://symbol.wtf

samwho, (edited ) to random
@samwho@hachyderm.io avatar

You write a Django app and run it with gunicorn. You use sync workers and --backlog 1.

You send a request and, while it's processing, you send a 2nd request. You cancel the 2nd request before it starts processing.

Request 1 finishes. What does the server do?

samwho, to random
@samwho@hachyderm.io avatar

I’ve suspected there must be a term for this for years now and today I finally stumbled on it.

https://lawsofux.com/articles/2024/teslers-law/

> Tesler’s law, also known as the law of conservation of complexity, states that for any system there is a certain amount of complexity that cannot be reduced.

samwho, to random
@samwho@hachyderm.io avatar

TIL what a miter join is and why it isn't always the right choice.

When you draw lines, you have a choice in how these lines connect at the joints. The video is drawn using miter joins. Notice the sharp edges and, at the center of the circle, weird graphical glitchiness when the circle is nearly full and nearly empty. This is the miter join trying to connect up the two rectangular ends of each line and creating a longer and longer joint at the angle between the two lines approaches parallel.

video/mp4

samwho, to random
@samwho@hachyderm.io avatar

New post is up to 2,861 lines of code for the visuals. For context, https://samwho.dev/bloom-filters was 2,404 and https://encore.dev/blog/retries was 1,707.

samwho, to random
@samwho@hachyderm.io avatar

Been meaning to read https://bost.ocks.org/mike/algorithms/ for weeks now, finally made the time for it. My mind is blown. Took hours, and I explored or bookmarked at least half of the links in the post. If you’ve not read it, I highly recommend making time!

samwho, to random
@samwho@hachyderm.io avatar

I got sidetracked between posts and decided to make something a bit different.

Huge thank you to Colin Scott for letting me use his work, and inspiring me to make this.

https://samwho.dev/numbers

samwho, to random
@samwho@hachyderm.io avatar
samwho, to random
@samwho@hachyderm.io avatar

My new post, a visual, interactive guide to bloom filters, is now live.

https://samwho.dev/bloom-filters

Looking forward to hearing your feedback! 🙏

samwho, to random
@samwho@hachyderm.io avatar

It's about time we had a versioning scheme that reflected the reality of modern software engineering.

https://yolover.org

samwho, to random
@samwho@hachyderm.io avatar

Does there exist a tool to "tail" signals sent between processes? You run it and it'll show you in real time signals (e.g. term, int, hup) being sent, which pid they came from, which pid they went to, etc.

samwho, to random
@samwho@hachyderm.io avatar
samwho, to random
@samwho@hachyderm.io avatar

Who are your favourite tech folks to follow on the fediverse?

samwho, to typescript
@samwho@hachyderm.io avatar

Looking for recommendations for resources (preferably books / websites) aimed at intermediate TypeScript devs looking to get into the gritty details and advanced stuff. I've written a fair bit of TypeScript and feel comfortable in it, but I'd like to really dig in and learn the language in depth.

samwho, to random
@samwho@hachyderm.io avatar

Nothing compares to how good it feels seeing this in Steam.

samwho, to random
@samwho@hachyderm.io avatar

Released! Easily recolor the output of any command with regexes.

https://github.com/samwho/recolor

A gif showcasing the capabilities of the

samwho, to random
@samwho@hachyderm.io avatar
samwho, to random
@samwho@hachyderm.io avatar

https://djhworld.github.io/hyperloglog/

HyperLogLog is absolutely fascinating, and this website makes it incredibly easy to understand.

samwho, to random
@samwho@hachyderm.io avatar
samwho, to random
@samwho@hachyderm.io avatar

I’ve heard Rails is still really good in 2023. Haven’t really touched it since 2019 and even then it was mostly migrating an existing Rails 4 codebase to Rails 5.

I’m following some random Rails 7 Hotwire tutorial and the first thing I’m stumbling on is the almost complete lack of IntelliSense. I’ve tried a bunch of things and Shopfiy’s Ruby-lsp gets some of the way there, but seems to not know anything about Rails.

What am I missing?

samwho, to random
@samwho@hachyderm.io avatar

A visual, interactive introduction to memory allocation.

https://samwho.dev/memory-allocation

samwho, to random
@samwho@hachyderm.io avatar

What's the state of the art in IRC clients that aren't ass? Happy to pay money.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • InstantRegret
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • tacticalgear
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • lostlight
  • All magazines