Click here to Skip to main content
15,887,083 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: Here's a specific reason devs hate JavaScript! Pin
raddevus8-Jan-19 10:08
mvaraddevus8-Jan-19 10:08 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Sander Rossel8-Jan-19 22:24
professionalSander Rossel8-Jan-19 22:24 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus9-Jan-19 1:25
mvaraddevus9-Jan-19 1:25 
GeneralRe: Here's a specific reason devs hate JavaScript! PinPopular
User 99160809-Jan-19 4:09
professionalUser 99160809-Jan-19 4:09 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
David A. Gray28-Apr-19 15:27
David A. Gray28-Apr-19 15:27 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus8-Jan-19 10:20
mvaraddevus8-Jan-19 10:20 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
jsc428-Jan-19 21:43
professionaljsc428-Jan-19 21:43 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus9-Jan-19 1:24
mvaraddevus9-Jan-19 1:24 
jsc42 wrote:
A convention in JS (and it is just a convention, I do not know if JSLint checks for it) is to name functions that are used as constructors with names starting with a capital letter and functions not used as constructors with names starting with lowercase letters

A fantastic convention that is spot on for this problem. I really do try to follow conventions like that too, so I don't shoot myself in the foot, but alas, I am as lazy as anyone else who types code.
I'm definitely a slacker.
ala Marty McFly and Back To the Future[^] Laugh | :laugh:

It's a great point and I will incorporate that convention into my JS even when I'm typing fast. Thumbs Up | :thumbsup:
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Member 107319449-Jan-19 14:17
Member 107319449-Jan-19 14:17 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
  Forogar  10-Jan-19 6:33
professional  Forogar  10-Jan-19 6:33 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
RickZeeland8-Jan-19 10:10
mveRickZeeland8-Jan-19 10:10 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus8-Jan-19 10:22
mvaraddevus8-Jan-19 10:22 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
RickZeeland8-Jan-19 19:59
mveRickZeeland8-Jan-19 19:59 
GeneralRe: Here's a specific reason devs hate JavaScript! PinPopular
Pete O'Hanlon8-Jan-19 12:40
mvePete O'Hanlon8-Jan-19 12:40 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus8-Jan-19 14:59
mvaraddevus8-Jan-19 14:59 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Jon McKee8-Jan-19 15:26
professionalJon McKee8-Jan-19 15:26 
GeneralRe: Here's a specific reason devs hate JavaScript! PinPopular
Ryan Peden8-Jan-19 18:07
professionalRyan Peden8-Jan-19 18:07 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus9-Jan-19 1:13
mvaraddevus9-Jan-19 1:13 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Member 91670578-Jan-19 21:08
Member 91670578-Jan-19 21:08 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus9-Jan-19 1:15
mvaraddevus9-Jan-19 1:15 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Member 107319449-Jan-19 14:22
Member 107319449-Jan-19 14:22 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Member 91670579-Jan-19 20:55
Member 91670579-Jan-19 20:55 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
TheGreatAndPowerfulOz12-Jan-19 6:27
TheGreatAndPowerfulOz12-Jan-19 6:27 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Jeroen_R8-Jan-19 21:42
Jeroen_R8-Jan-19 21:42 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus9-Jan-19 1:19
mvaraddevus9-Jan-19 1:19 

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.