Click here to Skip to main content
15,888,521 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: Dev time waster ala JSON dialect Pin
englebart11-Dec-19 2:50
professionalenglebart11-Dec-19 2:50 
GeneralRe: Dev time waster ala JSON dialect Pin
mlportersr217-Dec-19 5:42
mlportersr217-Dec-19 5:42 
GeneralYARTH-JS : Yet Another Reason To Hate JavaScript PinPopular
raddevus29-Oct-19 8:45
mvaraddevus29-Oct-19 8:45 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
Richard Deeming29-Oct-19 9:17
mveRichard Deeming29-Oct-19 9:17 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
raddevus29-Oct-19 10:33
mvaraddevus29-Oct-19 10:33 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
kmoorevs30-Oct-19 14:36
kmoorevs30-Oct-19 14:36 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
Martin ISDN31-Oct-19 23:44
Martin ISDN31-Oct-19 23:44 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
raddevus1-Nov-19 5:14
mvaraddevus1-Nov-19 5:14 
sickfile wrote:
didn't if bother you that you are assigning null to extra and then adding characters or integers to it?

That's actually a good point and good thinking.
I actually do like JavaScript, I just find that I get bit by these things and there are a lot of esoteric things to know about the language that cause my brain to burn more calories than I probably should have to. But that is the natural laziness that all we devs have I suppose.

The real thing that bothers me about JavaScript is the fact that there are two values which are so similar but are different:
JavaScript
undefined
null


I could just use one or the other really.
But then I become unusre at times and think, "hmm...is JS going to think this is undefined at this point? Is it going to think it is null?" then additionally in the case of a string I have to wonder if it is an empty string too (and there is no String.Empty to compare to so I have to use double-quotes "").

These are the things that are just bothersome. But they are bothersome because I cannot concentrate on JavaScript as much as I'd like too, since I'm an attempting to create solutions in software -- not just understand pedantic syntax.

I think that is why at times, I finally just have to rant about JS. Smile | :)
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
Martin ISDN1-Nov-19 6:45
Martin ISDN1-Nov-19 6:45 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
jsc423-Nov-19 4:20
professionaljsc423-Nov-19 4:20 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
Eddy Vluggen8-Nov-19 8:17
professionalEddy Vluggen8-Nov-19 8:17 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
Dominic Burford13-Nov-19 4:44
professionalDominic Burford13-Nov-19 4:44 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
Super Lloyd9-Dec-19 15:34
Super Lloyd9-Dec-19 15:34 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
raddevus10-Dec-19 3:33
mvaraddevus10-Dec-19 3:33 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
markrlondon3-Oct-20 14:17
markrlondon3-Oct-20 14:17 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
raddevus4-Oct-20 9:57
mvaraddevus4-Oct-20 9:57 
QuestionMessage Removed Pin
16-Sep-19 19:00
professionalSharath C V16-Sep-19 19:00 
AnswerMessage Removed Pin
17-Sep-19 0:07
protectorNelek17-Sep-19 0:07 
GeneralVisual Studio namespace gotcha Pin
Fueled By Decaff9-Sep-19 4:17
Fueled By Decaff9-Sep-19 4:17 
GeneralRe: Visual Studio namespace gotcha Pin
Nathan Minier17-Sep-19 1:20
professionalNathan Minier17-Sep-19 1:20 
GeneralI think my WTF per minute counter just overflowed... Pin
Rob Grainger4-Sep-19 5:53
Rob Grainger4-Sep-19 5:53 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
PeejayAdams4-Sep-19 6:07
PeejayAdams4-Sep-19 6:07 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Rob Grainger4-Sep-19 22:50
Rob Grainger4-Sep-19 22:50 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Greg Utas4-Sep-19 7:20
professionalGreg Utas4-Sep-19 7:20 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Rob Grainger4-Sep-19 22:51
Rob Grainger4-Sep-19 22:51 

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.