|
I prefer the obvious to comments that are lies. Given time and a few updates, most of them head that way.
//NEVER DO X.
Code evolves to do X when the following condition are true.... Comment never updated.
|
|
|
|
|
Amen brother! I recently had the extreme headache pleasure of looking at assembler code that had commenting issues. Nothing like taking a 5 minute task and making it a half day project.
"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
|
|
|
|
|
This code was sponsored by the Ministry of Obvious and Redundancy and Redundancy.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
I've changed the name of the method from checkConnection() to openConnectionIfPossibleAndNecessary() because that is what it really does (checks for not null not already open, and then provisionally (no pun intended) creates a new connection).
|
|
|
|
|
The thing is: If you use something like JavaDoc or DoxyGen, comments like that can actually be useful.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Just as astronomers/physicists have created the ideas of "Dark matter" and "Dark energy" to explain the currently unexplained behaviour of the observed universe, so I have coined "Dark logic" to explain the unexplained behaviour of my software.
|
|
|
|
|
What happens when ordinary logic meets dark logic? Do you get a logic/anti-logic explosion? If so, how can we weaponize it?
|
|
|
|
|
You have to collapse the probability field in order to resolve that - typically this is done by deploying the application in production
|
|
|
|
|
Ian Shlasko wrote: ordinary logic meets dark logic
Apparently, when my logic meets other people's one, they vanish. So yes, I believe there indeed is an explosion.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
Rage wrote: when my logic meets other people's one, they vanish
No, they run away.
There is a difference!
You looking for sympathy?
You'll find it in the dictionary, between sympathomimetic and sympatric
(Page 1788, if it helps)
|
|
|
|
|
Ah, I should have guessed...
Griff ? GRIFF ???
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
Ian Shlasko wrote: What happens when ordinary logic meets dark logic?
You get Quick Answers[^]
You looking for sympathy?
You'll find it in the dictionary, between sympathomimetic and sympatric
(Page 1788, if it helps)
|
|
|
|
|
This has already been put into equations. Hence the SAK dark constant.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
Ian Shlasko wrote: What happens when ordinary logic meets dark logic? Do you get a logic/anti-logic explosion?
Kind of... it is more of an intellectual explosion (rather than a physical one) such that everyone becomes dumber if they are around when it happens.
Ian Shlasko wrote: If so, how can we weaponize it?
I cannot talk about it here... but if you go to the soapbox, you'll see several politically based jokes that will explain it.
|
|
|
|
|
You get women's logic?
It's an OO world.
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
|
What are you, the Dark Knight?
|
|
|
|
|
As a corollary, here is a website about Dark Patterns, user interfaces that are designed to trick you:
http://darkpatterns.org/[^]
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
We should all learn from astronomers, who found that if you spout any old bollocks that cannot be disproven mathematically (a Hell of a wide scope, there), anyone doesn't happily wade thigh-deep in mathematical formulae (i.e. just about everyone in the entire world) will have no choice but to take your word for it.
They must have a terribly difficult time, writing up their "research" -- it's tricky to type with your fingers crossed behind your back.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
"There is a fifth dimension beyond that which is known to man. It is a dimension as vast as space and as timeless as infinity. It is the middle ground between light and shadow, between science and superstition, and it lies between the pit of man's fears and the summit of his knowledge. This is the dimension of imagination. It is an area which we call the Twilight Duncan Edwards Jones Code Zone. "
Have you ever just looked at someone and knew the wheel was turning but the hamster was dead?
Trying to understand the behavior of some people is like trying to smell the color 9.
|
|
|
|
|
"'To Serve Man'... it's a cookbook!"
Software Zen: delete this;
|
|
|
|
|
Yeah that was one of my favorites.
Have you ever just looked at someone and knew the wheel was turning but the hamster was dead?
Trying to understand the behavior of some people is like trying to smell the color 9.
|
|
|
|
|
..it gets worse when you start relying on the dark logic
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
Is that Seinfeld astronomy, a story about nothing?
"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
|
|
|
|