Click here to Skip to main content
14,368,111 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: Perl is crazy! Pin
TheGreatAndPowerfulOz30-Jan-19 14:17
memberTheGreatAndPowerfulOz30-Jan-19 14:17 
GeneralRe: Perl is crazy! Pin
Kevin McFarlane5-Feb-19 1:04
memberKevin McFarlane5-Feb-19 1:04 
GeneralRe: Perl is crazy! Pin
Dr.Walt Fair, PE7-Feb-19 10:23
professionalDr.Walt Fair, PE7-Feb-19 10:23 
GeneralRe: Perl is crazy! Pin
Dr.Walt Fair, PE7-May-19 6:44
professionalDr.Walt Fair, PE7-May-19 6:44 
GeneralHere's a specific reason devs hate JavaScript! PinPopular
raddevus8-Jan-19 9:52
mvaraddevus8-Jan-19 9:52 
GeneralRe: Here's a specific reason devs hate JavaScript! PinPopular
Sander Rossel8-Jan-19 10:52
professionalSander Rossel8-Jan-19 10:52 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus8-Jan-19 11:01
mvaraddevus8-Jan-19 11:01 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus8-Jan-19 11:08
mvaraddevus8-Jan-19 11:08 
Sander Rossel wrote:
'options strict';


Doh!

I just tried your 'options strict'; at the top and I set the bad code back (removed var) and it didn't do anything.
Same error
"room is not a constructor"


Oh, it looks like options strict is a Visual Basic thing. You've outed yourself! You're a VB Dev aren't you? Laugh | :laugh:

So I looked it up and found this:

JavaScript "use strict"[^]

I added "use strict";

and now it gives me warnings about undefined items.

I think it has changed. Smile | :)

modified 8-Jan-19 16:38pm.

GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Sander Rossel8-Jan-19 23:24
professionalSander Rossel8-Jan-19 23:24 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus9-Jan-19 2:25
mvaraddevus9-Jan-19 2:25 
GeneralRe: Here's a specific reason devs hate JavaScript! PinPopular
Donathan.Hutchings9-Jan-19 5:09
professionalDonathan.Hutchings9-Jan-19 5:09 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
David A. Gray28-Apr-19 16:27
groupDavid A. Gray28-Apr-19 16:27 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus8-Jan-19 11:20
mvaraddevus8-Jan-19 11:20 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
jsc428-Jan-19 22:43
professionaljsc428-Jan-19 22:43 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus9-Jan-19 2:24
mvaraddevus9-Jan-19 2:24 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Member 107319449-Jan-19 15:17
memberMember 107319449-Jan-19 15:17 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
  Forogar  10-Jan-19 7:33
professional  Forogar  10-Jan-19 7:33 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
RickZeeland8-Jan-19 11:10
mveRickZeeland8-Jan-19 11:10 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus8-Jan-19 11:22
mvaraddevus8-Jan-19 11:22 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
RickZeeland8-Jan-19 20:59
mveRickZeeland8-Jan-19 20:59 
GeneralRe: Here's a specific reason devs hate JavaScript! PinPopular
Pete O'Hanlon8-Jan-19 13:40
protectorPete O'Hanlon8-Jan-19 13:40 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus8-Jan-19 15:59
mvaraddevus8-Jan-19 15:59 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Jon McKee8-Jan-19 16:26
professionalJon McKee8-Jan-19 16:26 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Ryan Peden8-Jan-19 19:07
staffRyan Peden8-Jan-19 19:07 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus9-Jan-19 2:13
mvaraddevus9-Jan-19 2:13 

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.