|
I just came across the following comment in some code I need to modify that was written in 2008:
Sigh .
Software Zen: delete this;
|
|
|
|
|
I am not sure, given all that explanation, it it still qualifies as a magic number. Even the word 'sin' in heavy handed here, it's not like K&R bracing... runs and hides
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
jeron1 wrote: K&R bracing Everyone knows that Allman bracing is The One True Way.
Software Zen: delete this;
|
|
|
|
|
Amen!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I prefer K&R in C and C++
I prefer Allman in C# and most other high level languages.
Don't ask me why. I think it's just because I've gotten so used to *reading* code in those formats that I write it in those formats.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
|
Thank you very much, I'm so relieved, that I'm not the only one.
I think after 30 years I can fill much more than 50 pages of such comments
The only excuse I have; it was always just to satisfy the customer.
But that doesn't really help when you come across it again
|
|
|
|
|
I am rendering everything correctly so far in my tests, except gradients which I'm still implementing, and I hate the math. Oh, I hate the math.
But I've gotten to the point where I'm over the hump. SVGs I expect will render are rendering. Now it's just a matter of fleshing the rest out, with the gradients being probably the most difficult bit.
In part because gradient definitions are often (always?) declared across multiple tags, with xlink:href linking them in XML.
In part because you can limit the gradient positioning to the local bounding box of the shape, and specify widths, heights, radiuses, and offsets in things like percentages or even mm. It's basically like CSS.
In large part, because I have two reference implementations, but neither is going to quite work for the way I'm doing this, because I'm rendering strictly top-down, not keeping the XML nor the shapes I parse in memory. I render and I toss.
Anyway, it's a little bit overwhelming at the moment, but I still feel pretty good about the progress I've made.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
That's the first test I can remember failing since I was 10 or so.
According to the graph I have trouble hearing the frequencies that human voices mostly use. Clearly, I've been listening to the wrong people for years ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I've had the same problem + ringing in ears for 55 years.
My SO is just in the frequency range where I have a very hard time understanding her.
She's been very patient with me.
A home without books is a body without soul. Marcus Tullius Cicero
PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|
Same here, I've been wearing hearing aids for a couple of years now. At my latest test the graph even showed which letters of the alphabet were the problem.
|
|
|
|
|
So did mine, but it was all of them ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: That's the first test I can remember failing since I was 10 or so.
Study harder.
I once studied an entire weekend for a urine test.
|
|
|
|
|
I wouldn't consider that a failure.
|
|
|
|
|
Welcome to the club.
Been using Hearing for a year.
probably 10-15 years later than I should have.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Reported for trolling. Take your white supremacist nonsense to twitter where it will be better received.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
|
I don't get what's so hard to understand: There is no meaningful difference between "pretending" to be stupid in order to get attention and actually being stupid.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
What I did wrong?
|
|
|
|
|
I'm pretty sure she was referring to the troll not you
|
|
|
|
|
I hope so
|
|
|
|
|
Not you. I was talking about the original commenter. Sorry for the confusion.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I reported this for hate speech and trolling too.
Jeremy Falcon
|
|
|
|
|
Now the original message has been deleted, and all the replies are under OG's post...
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Haha yeah I "Travolta'd" for a few seconds when I walked into honey getting irate at someone for not being able to hear.
|
|
|
|