Peter Sobot's Avatar

Peter Sobot

@petersobot.com

maple-flavoured engineer, drummer, and bassist in brooklyn https://petersobot.com

425
Followers
449
Following
36
Posts
17.06.2023
Joined
Posts Following

Latest posts by Peter Sobot @petersobot.com

After working with thousands of smart engineers for more than a decade, I can very confidently say:

People hate reading log output, and so they don't. Well-formatted logs, structured logs, nice highlighting; it all barely does anything to convince people to read.

30.01.2025 18:27 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
screenshot of a Slack message saying "You left a baguette at your desk again"

screenshot of a Slack message saying "You left a baguette at your desk again"

I swear I'm not intentionally trying to poke fun at my French colleagues for being too stereotypically French, but-

27.01.2025 20:29 ๐Ÿ‘ 7 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

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.

12.01.2025 17:17 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

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.

12.01.2025 14:52 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

A week of my career was just spent fixing an crash that only happened after my code ran for >24h.

Turned out to be a directory existence check that's O(n) time and O(n) memory for a directory with n files in it.

And people wonder why I don't trust widely-used libraries.

12.01.2025 05:04 ๐Ÿ‘ 10 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

As of today, my age is no longer a nice round power of 2. ๐Ÿฅฒ

26.12.2024 21:26 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Every holiday, Iโ€™m reminded that all of the engineers working on FaceTime audio quality at Apple are no match for that one family memberโ€™s blown iPhone speaker.

25.12.2024 16:46 ๐Ÿ‘ 2 ๐Ÿ” 1 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Amazon.com: ACEIRMC 4pcs Type-C QC AFC PD2.0 PD3.0 to DC Fast Charge Decoy Trigger Polling Detector USB-PD Notebook Power Supply Change Board Module Support 5V 9V 12V 15V 20V Fixed Voltage Output : El... Amazon.com: ACEIRMC 4pcs Type-C QC AFC PD2.0 PD3.0 to DC Fast Charge Decoy Trigger Polling Detector USB-PD Notebook Power Supply Change Board Module Support 5V 9V 12V 15V 20V Fixed Voltage Output : El...

www.amazon.com/dp/B0BTHXKM9...

24.12.2024 15:18 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

taking this as the worldโ€™s highest compliment

23.12.2024 23:36 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

The only remaining to-do: toss all of the old USB-C PD power supplies that donโ€™t support all of the required voltages

23.12.2024 21:41 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

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. ๐Ÿคฉ

23.12.2024 21:34 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image Post image Post image

I have been thoroughly nerd-sniped by USB-C PD. If any devices in my house take 9V or 12V, they will soon be taking USB-C.

I didnโ€™t say it would look pretty, though.

23.12.2024 21:28 ๐Ÿ‘ 21 ๐Ÿ” 4 ๐Ÿ’ฌ 7 ๐Ÿ“Œ 0

People ask me "what guide can I read to get started with machine learning?"

There's actually a great guide for this now; it's free, comprehensive, interactive, and even built with some of the ML techniques you might want to learn about.

Find it at: chatgpt.com

20.12.2024 18:16 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
a bald man in a red and black uniform says certainly not ALT: a bald man in a red and black uniform says certainly not
19.12.2024 13:15 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Seeing so much A.I.-generated text online has changed how I read all text online.

I now seem to notice the โ€œshapeโ€ of A.I. text and skip large chunks if it looks like slop, even if itโ€™s not.

I definitely did not have this on my bingo card.

19.12.2024 01:54 ๐Ÿ‘ 5 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

That was the dream before I got engaged to an American and bought a house in Brooklyn ๐Ÿ˜…

18.12.2024 21:44 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
a graph showing CAD/USD and how CAD is at a 20-year low against the USD

a graph showing CAD/USD and how CAD is at a 20-year low against the USD

I miss Canada, am proud to be Canadian, visit regularly, etc etc.

But oof, am I ever glad I moved to the US.

18.12.2024 20:59 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Me: โ€œman Iโ€™m excited to be able to see my entire work team again in person, itโ€™s been so longโ€

Also me: โ€œwow why is the entire team out sick after a full week of jet lag, meetings, and dinners????โ€

15.12.2024 17:03 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

U.S. CBP missed a co-branding opportunity with Apple for Global Entry:

โ€œFace IDยฎ for the U.S. Borderโ€

06.12.2024 21:51 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Code Review Guidelines for Data Science Teams A proposed code review guideline for data science teams, emphasizing the benefits of code reviews, what they are not intended for, and offering advice for both submitting and reviewing pull requests.

My team was discussing our code review practice and I offered to talk about the post I wrote for a previous team (tdhopper.com/blog/code-re...).

I dropped the markdown for the post from GitHub into chatgpt and asked it to generate Marp (marp.app) slides for me.

06.12.2024 12:24 ๐Ÿ‘ 4 ๐Ÿ” 1 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Preview
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

when you reach for the mouse to copy some text in your code editor by right-clicking

25.11.2024 15:29 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Another day, another reminder that "mastery of one's tools" is the most reliable signal of competency that I've ever seen.

If you've worked with a piece of software every day for years but have never bothered to learn things like its keyboard shortcuts, stop what you're doing and learn those now.

25.11.2024 15:25 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

There are few things more stressful than trying to write an email about two things to someone who doesnโ€™t read past the first sentence.

18.11.2024 17:57 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
https://a.co/d/8uJfdoT

tired: USB-C is great because I can charge my phone and laptop with the same cable

wired: USB-C is great because I can now use $15 USB-C PD bricks and $5 barrel jack adapters to power nearly all home electronics that need between 5V and 20V

t.co/AeGd6IhtJ5

17.11.2024 17:30 ๐Ÿ‘ 5 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

So happy to have more great people to work with. Welcome, @tdhopper.com!

17.11.2024 17:30 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

The Worst Programmer I Know dannorth.net/2023/09/02/t...

02.09.2023 17:49 ๐Ÿ‘ 1 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

For the past couple of years, I've felt like I've been drowning in notifications and emails.

I just tallied the numbers: I got 1,855 notifications last week, 380 work emails, and 99 personal emails.

That's about one interruption about every 3 waking minutes. Is this normal?

13.08.2023 19:31 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0

Last night, I picked up a 32-pound laser printer from a coworker who lived a mile away. I decided to carry it home instead of taking a taxi.

I'm now googling "how to get started lifting weights" "is lifting weights good" "what does it mean if your arms hurt but you like it"

26.07.2023 16:31 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Oppenheimer was great. I especially loved Nolanโ€™s choice to just use William Onyeaborโ€™s โ€œAtomic Bombโ€ as the only music.

24.07.2023 13:12 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Assuming each notification is roughly equally spaced out, that means Iโ€™m getting interrupted once every 150 seconds, all day, every weekday.

Itโ€™s a wonder that modern humans have time to get anything done at all.

23.07.2023 16:29 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0