|
OriginalGriff wrote: the desing
I that where the fat lady never sings?
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
No time for that. I have to work on the tada bniding right now.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Code[^]
A system of words, letters, figures, or symbols used to represent others, especially for the purposes of secrecy
So you mean to re-obfuscate?
|
|
|
|
|
To some of my colleagues, it seems to come naturally; it takes them no extra effort.
My answer: No, quite to the contrary. Cleaning up messy, unreadable code (whether deliberately or unintentionally looking like entries to the IOCCC) to make it lucid, readable an maintainable, is far more satisfying. It gives me the same pleasure as the joy it gives me to delete code lines that are no longer needed. Often, those are two sides of the same coin.
|
|
|
|
|
Of course, if it was hard to write it should be hard to read.
Actual code:
var banana = GetSomeStuff(someVar, lolImAMonkey);
|
|
|
|
|
No, I write for maximum readability, and will remove any nonsense. See below a practical example of code that obfuscates and does not add any value;
public static void ForEach<T>(this IEnumerable<T> enumeration, Action<T> action)
{
foreach(T item in enumeration)
{
action(item);
}
} I've been told it should be used. I said no, I will use a regular loop
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
Sander Rossel wrote: So you're right, and those who told you to use it aren't I know; it is a construct that only hides the original loop, adds costs and possible failure-points without providing any benefits at all. It just "looks cooler" to some.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: I know; But now you have Eric Lippert and, more importantly, me backing you up
|
|
|
|
|
How did your presentation go?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
I never have, so I wouldn't know, but I doubt it. Seems pointless anyway.
|
|
|
|
|
Th trsr th bttr!
Latest Article - Slack-Chatting with you rPi
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
It's already hard to read.
Got my site back up after my time in the woods!
JaxCoder.com
|
|
|
|
|
I'll share what I node so long as I don't desecrate my abode.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Not my code, but my binaries - for sure. I use babelfor.NET[^].
/ravi
|
|
|
|
|
Never. I lkike to be able to read what I wrote!
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Like to, no.
But it does happen without me trying.
|
|
|
|
|
No, but I am now responsible for a product that was originally written by an asshat who did. This body of code was the only thing he worked on for 20 years. When they tried to assign him to another product, he took his ball, went home, and retired early. After several layoffs, his product is now in my lap. The code was deliberately written so that only the original author could maintain it. No naming conventions, other than keep them as short as possible. No consistency in block structure or indentation. Basic principles of structured programming like single-entry, single-exit are ignored. Most error returns are ignored. Magic numbers are used wherever possible. Most pointer arguments are specified as void * to avoid typing struct name * . There are so many code smells it's reached the level of aromatic white noise.
I see this f***er every so often out on the bike path. I've had to spend enough time debugging his sh*t over the last few months, he may just have an accident.
Software Zen: delete this;
|
|
|
|
|
I may have an accident too: But if your organization does not review one guys code for decades, is that only the guys fault?
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
megaadam wrote: if your organization does not review one guys code I work for a hardware company, whose engineering management consists entirely of hardware engineers. All of our "processes" are based on hardware engineering principles.
The end result is that it's very difficult to get any traction for different practices for software. Our one attempt at a code review was mismanaged from the start, and ended with the engineer concluding the review by saying if they ever tried it again with his code, he'd walk.
Software Zen: delete this;
|
|
|
|
|
Attendants argue rough after note Changed (9)
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Why am I thinking guardians ?
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Because You don't want to take responsibility on Monday
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Entourage (anagrams of note and argue put together).
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
|
|
|
|