this post was submitted on 03 Apr 2024
1092 points (96.2% liked)

Programmer Humor

19623 readers
2719 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] fubarx@lemmy.ml 20 points 7 months ago (1 children)

Embedded portable device with a teeny ARM processor. Sadly, no room for linux anything or even an RTC. Every time it connected to a phone, the phone would set its clock so the timestamps were somewhat close to being accurate.

However, if you swapped out the AAA battery and DIDN'T connect it to the phone at least once, all your subsequent readings would go back to zero epoch and would be forgotten ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

Good times.

[โ€“] AMDIsOurLord@lemmy.ml 11 points 7 months ago (1 children)

Some absolute and utter legend of a man made a Unix kernel for the fucking ZILOG Z80, you have no excuses

(It's called UZI and it's written in K&R C for some obscure CP/M compiler)

[โ€“] fubarx@lemmy.ml 12 points 7 months ago (1 children)

If it had been up to me, I would have included a proper real-time-clock in the design and done things a lot differently.

But the device was designed by one company and the BLE and processor module by another. For some ungodly reason neither trusted each other, so nobody was given access to the firmware source on either side. I worked for a third company that was their customer paying the bill. I was allowed to see the firmware for both sides, but only read only, on laptops provided by each company, one at a time, in a conference room with their own people watching everything. Yeah, it was strange.

I was there because the MCU and the BLE processor sometimes glitched and introduced random noise. Turned out the connection between the two parts were unshielded UART with no error detection/correction ๐Ÿคฆ๐Ÿปโ€โ™‚๏ธ

It was concidental that we hit the date glitch. Took all our effort just to get them to add a checksum and retry. The tiny MCU was maxed out of space. No way to fit in any more code for date math.

[โ€“] AMDIsOurLord@lemmy.ml 7 points 7 months ago (1 children)

God I'm sorry you had to go through that much middle management bullshit

[โ€“] fubarx@lemmy.ml 3 points 7 months ago

Thanks. On the plus side, I got to try 'soup dumpling' -- still the best I've ever had. And Kaoliang, the most gut-busting distilled beverage known to mankind. OTOH, the product shipped, won lots of awards, and got national coverage for the company.

Nothing to do with timezones, but still, fun times.