Peter Sobot
banner
petersobot.com
Peter Sobot
@petersobot.com
maple-flavoured engineer, drummer, and bassist in brooklyn

https://petersobot.com
I now distrust nearly all open-source libraries.

“But it’s widely used!” Nope, it’ll fall over at scale.

“But <big ML or data project> uses it!” Run even faster; hype and attention do not correlate with good software engineering practices.
January 12, 2025 at 5:17 PM
It was, but it should be O(1) to check if a directory exists, regardless of if it has one file or a million files in it.

In this case, the code would only crash after running for a long time and writing a lot of files; this O(n) check effectively made it O(n^2) in time and memory.
January 12, 2025 at 2:52 PM
taking this as the world’s highest compliment
December 23, 2024 at 11:36 PM
The only remaining to-do: toss all of the old USB-C PD power supplies that don’t support all of the required voltages
December 23, 2024 at 9:41 PM
Bespoke power supplies are now obsolete. GaN power supplies are a quarter of the size and weight of custom transformers; and are mostly interchangeable with each other.

I will finally be able to ditch a full Rubbermaid bin of transformers. 🤩
December 23, 2024 at 9:34 PM
That was the dream before I got engaged to an American and bought a house in Brooklyn 😅
December 18, 2024 at 9:44 PM
when you reach for the mouse to copy some text in your code editor by right-clicking
a cartoon of a man drinking from a glass
Alt: a cartoon of a man trying to drink water from a glass but doing everything except actually drinking the water normally, from the show Gravity Falls
media.tenor.com
November 25, 2024 at 3:29 PM