|
Maximilien wrote: but I have memories of reading it and having no clues at all.
Same here.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
After reading a little of John von Neumann some time ago I admired him for his contributions to many and diverse fields. I recently read a bit more. INCREDIBLE This guy was on another level almost incomprehensible. If he were a programmer he wouldn't be a 10X programmer he'd be a 10^10X Programmer. I'd be happy to be a 2X programmer.
|
|
|
|
|
In my experience, a programmer who is not negatively contributing to a code base is already way ahead of it's game
Magic strings and numbers, 1000-line functions, unnecessary global variables, sharing of global variables in completely separated functionality, re-use of what's actually separated functionality, no re-use at all, no separation of concerns (in fact, a hard and tight tangling of concerns), pulling complete database tables into memory and filtering in the application, one coworker though I invented generics, creating twelve classes for what should've been twelve instances of one class (with the 12 if-statements checking type to go with it), ignoring warnings, ignoring failing tests, testing whether code breaks because they could not mock it, fixing JavaScript warnings and breaking browser compatibility with older browsers (to be fair, we should've disabled those warnings because our team did NOT know JavaScript). Speaking of JavaScript, returning different types from functions depending on input, not scoping variables, putting literally everything in global scope, no option strict (this one goes for VB as well), not declaring variables before using them... The list goes on and on and I've seen them all
Some of the most "fun" code I've seen actually reset future database fields!
Imagine my surprise when I added a new field to the database and had the customer call me a day later that all the values were reset to their defaults.
It was a completely different service than the one I was working on so it took some time to find.
The way that service was set up... I actually don't want to talk about it, but I can say the person who built it was thoroughly certified
These aren't isolated incidents, this is probably about 90% of developers I've met and they all thought of themselves as skilled professionals
|
|
|
|
|
Yes, he was a giant.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Should the motto for 2020 have been "Work hard, Plague hard"?
"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!
modified 31-Mar-21 15:37pm.
|
|
|
|
|
In hindsight I would have to agree.
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
It has been said that hindsight is 2020.
Thank goodness!
If pigs could fly, just imagine how good their wings would taste!
- Harvey
|
|
|
|
|
Obligatory response: That was a sick remark.
Injecting some humor: after a mime has lunch do we ask if the mutate?
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 seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I could say some harsh things about that, but I will pushback my ventilator.
"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
|
|
|
|
|
Also the motto of 1347-1351, 1520, 1918-1919, 541-542,165-180, 1665, 1957-1958, 1889-1890, and others (in decreasing order of fatalities).
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
At least I think I'm referring to OG. I vaguely recall defending the K&R indentation style with OG pointing me why he thought Allman to be better.
A handful of years later and several projects where Allman style was mandated by coding rules it actually became my new indentation style, mostly for the reasons OG pointed to me (easier to see the nesting level of constructs, better block separation, easier manipulation of the condition statement regardless of the operation done in the block).
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
while(you believe this) {
Nope; }
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 seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Worst thing I (very recently) saw: blocks indentated K&R with a blank line after each block opening, as in
while (something){
code
}
if (something){
code
}
Why use the K&R style at all if the code is not more compact anyway??
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
So, I suppose your point is that if one misuses something it doesn't work as planned.
Why am I not surprised?
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 seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
A little late to the game, aintcha?
|
|
|
|
|
I use Allman because I often find that horizontal space is wasted and vertical space is used miserly. A condition is important, so it should stand out and be easy to read, and putting the left brace on the next line helps with that.
modified 31-Mar-21 11:26am.
|
|
|
|
|
Vertical space means I can make notes and such.
|
|
|
|
|
Notes where, on your fanfold printout?!
|
|
|
|
|
Pshaw! Legal-sized sheets, half-inch margins, duh.
|
|
|
|
|
I don't remember the last time I printed code off! My guess would be 1999.
|
|
|
|
|
I don't print my code, but I've printed inherited code on 11x17 paper with narrow margins, as I had to physically diagram it to figure out what it was doing ... 9 sheets in portrait mode using Courier 9 point.
In some cultures, a test of worthiness is going into battle. In IT? It's figuring out inherited code.
|
|
|
|
|
Quote: I had to physically diagram it to figure out what it was doing What happened to the original author?! That should have been job security! If I inherited that code, I'd have him renditioned and put under bright lights until that code got explained.
|
|
|
|
|
Greg Utas wrote: What happened to the original author?! That should have been job security! If I inherited that code, I'd have him renditioned and put under bright lights until that code got explained. Dead men don't tell tales ...
He retired then died a week later.
|
|
|
|
|
I actually wondered if that might be the explanation.
My guess is that code evolved many times, with no one having the inclination to restructure it.
|
|
|
|
|
My _132 column_ fanfold printout ( don'tcha miss the green stripes? ) plenty of room for comments after column 80.
But I don't miss being near the chain printer.
|
|
|
|