Click here to Skip to main content
14,364,335 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.

 
JokeMessage Closed Pin
1-Nov-19 8:05
memberMember 146417431-Nov-19 8:05 
GeneralYARTH-JS : Yet Another Reason To Hate JavaScript Pin
raddevus29-Oct-19 9:45
mvaraddevus29-Oct-19 9:45 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
Richard Deeming29-Oct-19 10:17
mveRichard Deeming29-Oct-19 10:17 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
raddevus29-Oct-19 11:33
mvaraddevus29-Oct-19 11:33 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
kmoorevs30-Oct-19 15:36
memberkmoorevs30-Oct-19 15:36 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
sickfile1-Nov-19 0:44
membersickfile1-Nov-19 0:44 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
raddevus1-Nov-19 6:14
mvaraddevus1-Nov-19 6: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:
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
sickfile1-Nov-19 7:45
membersickfile1-Nov-19 7:45 
GeneralMessage Closed Pin
1-Nov-19 7:49
membersickfile1-Nov-19 7:49 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
jsc423-Nov-19 5:20
professionaljsc423-Nov-19 5:20 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
Eddy Vluggen8-Nov-19 9:17
mveEddy Vluggen8-Nov-19 9:17 
GeneralRe: YARTH-JS : Yet Another Reason To Hate JavaScript Pin
Dominic Burford13-Nov-19 5:44
professionalDominic Burford13-Nov-19 5:44 
GeneralVisual Studio namespace gotcha Pin
Fueled By Caffeine9-Sep-19 5:17
memberFueled By Caffeine9-Sep-19 5:17 
GeneralRe: Visual Studio namespace gotcha Pin
Nathan Minier17-Sep-19 2:20
professionalNathan Minier17-Sep-19 2:20 
GeneralI think my WTF per minute counter just overflowed... Pin
Rob Grainger4-Sep-19 6:53
memberRob Grainger4-Sep-19 6:53 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
PeejayAdams4-Sep-19 7:07
memberPeejayAdams4-Sep-19 7:07 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Rob Grainger4-Sep-19 23:50
memberRob Grainger4-Sep-19 23:50 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Greg Utas4-Sep-19 8:20
professionalGreg Utas4-Sep-19 8:20 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Rob Grainger4-Sep-19 23:51
memberRob Grainger4-Sep-19 23:51 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
MarkTJohnson4-Sep-19 9:00
professionalMarkTJohnson4-Sep-19 9:00 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Jacek Gajek1-Oct-19 12:39
memberJacek Gajek1-Oct-19 12:39 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
kmoorevs4-Sep-19 13:06
memberkmoorevs4-Sep-19 13:06 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Bernhard Hiller5-Sep-19 23:41
memberBernhard Hiller5-Sep-19 23:41 
JokeRe: I think my WTF per minute counter just overflowed... PinPopular
Fueled By Caffeine9-Sep-19 4:22
memberFueled By Caffeine9-Sep-19 4:22 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Private Dobbs30-Oct-19 23:32
memberPrivate Dobbs30-Oct-19 23:32 

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.