|
I work at home a lot. I got in big trouble when I saw a particular nifty piece of code garbage. There are so many short cuts instead of proper design I sound like I have Tourette's syndrome. One of the things I hate is embedding logic in data content.
For example, pass in the name of a file, and do something with the file. But, depending on what's in the filename, do something different. For God's sake we have booleans, and we can actually use meaningful names - not doing so is BAD CODE.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
I don't call it "bad code". I call it a "massive pile of sh*t" and tell the people who wrote straight to their faces.
|
|
|
|
|
You need to stop waffling about and be more direct with your feedback.
cheers
Chris Maunder
|
|
|
|
|
I just used "what unholy abomination is this?" last week after getting a glimpse of the code for an app I was deploying. It was code converted from VB6 to VB.NET. No, I did not write this thing.
The app was crashing on startup on the pilot machines but worked fine on my test machines. Turned out the code it was executing on startup was doing some sigle-instance app stuff. It starting with getting the Desktop window handle, then walking the tree, looking for a specific window title in a massive, over-the-top way to implement a single-instance app.
Somehow, in the spaghettified, "world-record length of code" to accomplish this task, someone managed to write Convert.IsDBNull(...) .
Duh fuq is that doing in there?
|
|
|
|
|
Three scientists have been awarded the 2019 Nobel Prize in Chemistry for the development of lithium-ion batteries. Exploding with power!
|
|
|
|
|
Twenty new moons of Saturn were announced yesterday, bringing the sixth planet’s moon count to 82. Were they hidden behind the rings?
|
|
|
|
|
Kent Sharkey wrote: Were they hidden behind the rings?
"One ring to rule them all"
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
Only twenty?
I thought each of the pieces of rock constituting the rings of Saturn was a miniature moon.
modified 11-Oct-19 5:44am.
|
|
|
|
|
Somewhere around 2014 I found an /etc/passwd file in some dumps of the BSD 3 source tree, containing passwords of all the old timers such as Dennis Ritchie, Ken Thompson, Brian W. Kernighan, Steve Bourne and Bill Joy. Now everyone will log in as him (dang these 'hackers')
Much better (and memorable for a subset of humanity) than any horse battery staples (correct or not)
|
|
|
|
|
Quote: horse battery staples How did you know my password? Dang! Now I'll have to change it everywhere. Do you think "password01" will work?
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Needs a "special character". Don't forget the "!"
TTFN - Kent
|
|
|
|
|
The password of Dr. Falken is Joshua.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
I am really surprised (and disappointed) that a man as knowing as Ken Thompson selected as a password a well known plain text term from one of his well known hobbies, without any sort of obfuscation.
|
|
|
|
|
Richard M. Stallman resigned from leading the Free Software Foundation, but he appears to have kept his top role in the GNU Project. Some GNU programmers would like to see him leave. 36 years too late?
Fixed link (36 hours too late)
modified 10-Oct-19 12:22pm.
|
|
|
|
|
It redirects to https://www.bbc.com/news/science-environment-49962133 I guess Stallman is to much controversy now
No more Mister Nice Guy... >: |
|
|
|
|
|
Yeah, I'm an idiot. Fixing (for what it's worth)
TTFN - Kent
|
|
|
|
|
Kent Sharkey wrote: I'm an idiot
Do not that hard on your self Mistakes happen
No more Mister Nice Guy... >: |
|
|
|
|
|
|
On Tuesday, Twitter announced that it “unintentionally” used phone numbers and email addresses for advertising purposes even though the information was provided by users for two-factor authentication. Well, as long as they apologize...
|
|
|
|
|
Just reinforces the point that, if it's "free", you are the product.
|
|
|
|
|
the query must have been
INSERT INTO thirdpartadusers (phonenumber)
SELECT phonenumber
FROM tuser;
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
For large .NET legacy code bases some predictions must be made to plan now a seamless and in-time migration toward the future of .NET. At least four more new branches?
.NET Quark - for really, really small devices.
.NET Onion - so many layers!
.NET for Windows - a new branch, focused on their biggest market
.NET Plaid - beyond everything
.NET {your turn}
|
|
|
|
|
.NET Agile; the new name for MSAccess.
.NET BDSM; only VB6 compatible.
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.
|
|
|
|
|
Quote: .NET Standard was introduced as a common API set that all .NET flavors must implement. .NET Standard superseded PCL (Portable Class Library). Now that several .NET frameworks will be unified upon .NET Core bases, and that the .NET Framework 4.x won’t support future versions of .NET Standard anymore, it sounds like the need for more .NET standard API will decrease significantly. Actually .NET Framework 4.8 doesn’t even support latest .NET Standard 2.1: “.NET Framework 4.8 will remain on .NET Standard 2.0 rather than implement .NET Standard 2.1”. barf !
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
modified 9-Oct-19 19:47pm.
|
|
|
|
|
Agreed. Somebody please tell Microsoft that XKCD #927[^] is not an aspirational goal!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|