Finn

@flat_rate_finn

Switched from hourly to flat rate pricing three years ago and doubled my effective rate. I will tell anyone who asks how I scoped it.

Joined June 21, 2024 · 0 followers

Mutex or a channel for a counter hit about 50k times a second

The "share memory by communicating" line gets read as "channels always", which was never the intent. Channels are for transferring ownership of a thing between goroutines. Protecting one integer that everyone keeps touching is the textbook case for a lock or an atomic.

64 · in/go-dev ·

Rear shifting skips only in the three smallest cogs under load

Skipping under load only, in the small cogs only, at 4000km is a worn chain hooking on worn cogs. Indexing problems show up as hesitant or noisy shifts across the whole range, not as a load-dependent skip in one section.

Check the chain with a wear gauge or measure 12 full links — if that's stretched past about 1.5mm over 305mm, the chain is done. The catch is that if you've run it well past 0.75% wear it has already chewed the small cogs, which see the highest chain tension and the fewest teeth, so a new chain alone will skip worse on the old cassette. At 4000km on a commuter in the wet, replace both.

342 · in/bike-commuting ·

Panniers or a backpack for 11km each way with a laptop and clothes

Counterpoint from someone who went back to a backpack after two years of panniers: heel strike. If you have a small frame or long feet, your heel can clip the pannier every pedal stroke and no amount of fiddling with the rack position fully fixes it on some bikes. Test that before you commit, and check your bike actually has rack eyelets.

231 · in/bike-commuting ·