|
+2 (I use it in everything that I start, if not.. .I try to stick with what is already being used)
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I despise K&R bracing. I have ALWAYS used Allman (for the last 45 years), and at work, we're using K&R (apparently the go-to bracing used in javashit). I hate it. It's unnatural.
Curious note: I never knew the bracing styles had names. I always referred to them as "the way I do it", and "not the way I do it".
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
modified yesterday.
|
|
|
|
|
|
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've always liked something Dan Saks, onetime Secretary of the ANSI/ISO C++ Standards Committee, once said: "If you can say it in code, then do so. Otherwise, say it in a comment."
To my mind that means comments should usually describe the why or the how code is doing something, and rarely what. My longer-winded comments are usually 'why'.
Software Zen: delete this;
|
|
|
|
|
|
I think I had foreknowledge(*) how dotty I would be in my old age.
(*) Cue the obvious Dune reference; "He who controls the spice, controls the universe!"
Software Zen: delete this;
|
|
|
|
|
But do you now know the "proper" way to do this and will you fix the issue?
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
I’m begging you for the benefit of everyone, don’t be STUPID.
|
|
|
|
|
I have reached the stage in my career (3.75 years until retirement), plus given my typical workload, that fixing this would be a poor use of my time. It works well enough and has never caused an issue.
Besides, given how little love Microsoft has given WPF over the years, I doubt there is a better way to do it .
Software Zen: delete this;
|
|
|
|
|
Gary Wheeler wrote: magic number 48
Isn't it 42?
|
|
|
|
|
This is actually a really good comment. It explains both the why and the what/how. I wouldn't call this a sin, but rather a reminder of why you did something the way you did.
|
|
|
|
|
Allman almost all the time.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Well, that is a pretty informative and honest comment.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
I say that's just fine!
It reflects the exasperation and defeated feeling in the face of deadlines and "just get it done!" pressure.
Personally I might have written more concisely something like "I had to put *SOMETHING* here so I pulled this number 48 out of thin air. Gotta move on from this!".
|
|
|
|
|
My long-winded explanation is there to provide a trail of breadcrumbs for my future self, on the off chance I come back to this in the 3.75 years left until retirement.
3.7499...
3.7498...
3.7497...
Software Zen: delete this;
|
|
|
|
|
I've got this weird problem where because I think in code, my code comments can sometimes look like commented out code.
Sometimes in my open source projects I'll bury a comment deep in the source code to see if anyone is paying attention:
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: because I think in code, my code comments can sometimes look like commented out code That makes a lot of sense, since you are a team of one. It's a good example of 'consider your audience', where your future self will be reading the comment.
I've found my commenting changing the last couple of years. I'm going to retire in less than four years, so some poor schmuck person is going to be taking this over. Our code lives for a long time (we have active code over 20 years old), so a lot of it will still be around. I'm adding more explanatory comments than I used to.honey the codewitch wrote: // Lee Harvey Oswald faked the moon landing He did ? Cue this[^] .
Software Zen: delete this;
|
|
|
|
|
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
|
|
|
|
|
That's strange... i have the same ailment.... coincidences eh?
Who the f*** is General Failure, and why is he reading my harddisk?
|
|
|
|
|
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.
|
|
|
|