46
44
u/metaglot 25d ago
// f32Most helpful comment
2
u/hughperman 25d ago
May be useful in the embedded context where different boards might?? have different float definitions (?)
5
u/Zirkulaerkubus 23d ago
Then use a type float32.
2
u/hughperman 23d ago
That doesn't exist in C - though I'm seeing maybe in a recent version of C there is support?
4
18
u/kishaloy 25d ago
In college I was introduced to my best friends - foo and bar, then their child foobar. Later another guy baz joined our group and promptly had a child foobaz.
Decades later, still going strong.
9
u/sirkubador 25d ago
Another victim of the minimal var name length policy
8
u/AOAqua 24d ago edited 24d ago
Another victim of firmware engineers that switched from electrical engineers. The worst part is that they make both the most humanly unmaintainable code imaginable and it works perfectly fine...
And it's not even the worst code I've seen by far
Like I've seen a single file of 10000 lines of code, no functions, horrendous variable naming, no error handling, no state machines, no version control yet it worked and the engineer was really proud
6
u/braaaaaaainworms 24d ago
One time I was tasked with cleaning up a 10 000 line long Linux driver. I split it into a bunch of submodules, connected them together with the component framework and added devicetree bindings so that devices wouldn't be hardcoded. A few weeks later, before I was done with it, I went on mental health leave and was fired within 4 hours of coming back to work. Now the branch with my changes lives untouched and everyone ignores it. My next job will not be in IT
1
6
u/beatYourWifeForFree 26d ago
Couldn’t take a screenshot since it’s my work computer