Click here to Skip to main content
15,887,214 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: new bool() Pin
Jon McKee31-Jan-17 10:43
professionalJon McKee31-Jan-17 10:43 
GeneralRe: new bool() Pin
harold aptroot31-Jan-17 10:49
harold aptroot31-Jan-17 10:49 
GeneralRe: new bool() Pin
Marc Clifton31-Jan-17 11:21
mvaMarc Clifton31-Jan-17 11:21 
GeneralRe: new bool() Pin
Jon McKee31-Jan-17 11:24
professionalJon McKee31-Jan-17 11:24 
GeneralRe: new bool() Pin
Marc Clifton31-Jan-17 11:29
mvaMarc Clifton31-Jan-17 11:29 
GeneralRe: new bool() Pin
Johnny YYZ2-Feb-17 0:03
professionalJohnny YYZ2-Feb-17 0:03 
GeneralRe: new bool() Pin
Jeremy Falcon9-Feb-17 10:15
professionalJeremy Falcon9-Feb-17 10:15 
GeneralRe: new bool() Pin
CDP180216-Feb-17 1:54
CDP180216-Feb-17 1:54 
Marc Clifton wrote:
Why couldn't the programmer see that? Why didn't someone in the 2+ years that this code has been in production fix it?

I have always predicted that this type would show up on the scene sooner or later and, by now, have seen them in action often enough.

They actually do as they were told and avoided memory management at all cost. That is why they have no understanding what value types and reference types are all about, nor do they have any idea how value types are an illusion created by the compiler to spare us having to wrestle with references and check for null for every variable. To them these things make no sense and appear to be some random and arcane rules which have been inherited from languages of the past.

The same goes for logical operators. I have given up on trying to help the kids when they can't get it done. They think that's more of this arcane ancient stuff that nobody needs to know anymore. Letting them figure it out themselves is the only way to convince them otherwise. So be it.
The language is JavaScript. that of Mordor, which I will not utter here

This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.

"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."

If software development were a circus, we would all be the clowns.

GeneralRe: new bool() Pin
harold aptroot31-Jan-17 11:55
harold aptroot31-Jan-17 11:55 
GeneralRe: new bool() Pin
Jon McKee31-Jan-17 12:16
professionalJon McKee31-Jan-17 12:16 
GeneralRe: new bool() Pin
Bernhard Hiller31-Jan-17 21:30
Bernhard Hiller31-Jan-17 21:30 
GeneralRe: new bool() Pin
OriginalGriff31-Jan-17 22:23
mveOriginalGriff31-Jan-17 22:23 
GeneralRe: new bool() Pin
Jörgen Andersson1-Feb-17 7:20
professionalJörgen Andersson1-Feb-17 7:20 
GeneralRe: new bool() Pin
Kornfeld Eliyahu Peter31-Jan-17 22:59
professionalKornfeld Eliyahu Peter31-Jan-17 22:59 
GeneralRe: new bool() Pin
Mike Hankey1-Feb-17 4:40
mveMike Hankey1-Feb-17 4:40 
GeneralThe joys of outsourcing Pin
Marc Clifton31-Jan-17 2:10
mvaMarc Clifton31-Jan-17 2:10 
GeneralRe: The joys of outsourcing Pin
User 1013254631-Jan-17 2:26
User 1013254631-Jan-17 2:26 
GeneralRe: The joys of outsourcing Pin
Ron Anders31-Jan-17 2:52
Ron Anders31-Jan-17 2:52 
GeneralRe: The joys of outsourcing Pin
User 1013254631-Jan-17 3:07
User 1013254631-Jan-17 3:07 
GeneralRe: The joys of outsourcing Pin
Z.C.M.31-Jan-17 4:55
professionalZ.C.M.31-Jan-17 4:55 
GeneralRe: The joys of outsourcing Pin
Mark_Wallace1-Feb-17 1:32
Mark_Wallace1-Feb-17 1:32 
GeneralRe: The joys of outsourcing Pin
Dave Kreskowiak31-Jan-17 7:07
mveDave Kreskowiak31-Jan-17 7:07 
GeneralRe: The joys of outsourcing Pin
Sander Rossel31-Jan-17 8:47
professionalSander Rossel31-Jan-17 8:47 
GeneralRe: The joys of outsourcing Pin
Marc Clifton31-Jan-17 8:51
mvaMarc Clifton31-Jan-17 8:51 
GeneralRe: The joys of outsourcing Pin
Sander Rossel31-Jan-17 8:55
professionalSander Rossel31-Jan-17 8:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.