Click here to Skip to main content
15,887,596 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
KarstenK11-Jan-19 7:04
mveKarstenK11-Jan-19 7:04 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
TheGreatAndPowerfulOz12-Jan-19 6:17
TheGreatAndPowerfulOz12-Jan-19 6:17 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Member 1410339615-Jan-19 15:43
Member 1410339615-Jan-19 15:43 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
peterchen26-Feb-19 22:26
peterchen26-Feb-19 22:26 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
Florian Rappl6-Mar-19 3:58
professionalFlorian Rappl6-Mar-19 3:58 
GeneralNasty bug only found in production Pin
Dan Neely28-Nov-18 3:21
Dan Neely28-Nov-18 3:21 
GeneralRe: Nasty bug only found in production Pin
Chris Maunder28-Nov-18 4:27
cofounderChris Maunder28-Nov-18 4:27 
GeneralRe: Nasty bug only found in production Pin
Dan Neely28-Nov-18 4:34
Dan Neely28-Nov-18 4:34 
An == where a != was expected or vice versa is almost a given.

What I'm not getting is what the slightly bigger picture looked like. They said it only happened when 2 people logged in simultaneously. But since each login attempt should be independent of any others that suggests that somewhere they're at least temporarily storing a value used in the login process as a global/static/etc variable, without that person A and person B's login threads/etc should have zero shared state and be unable to affect each other. I can't see any legitimate reason to do that, which means that if true the bit of shared state would be a much bigger issue than a bad comparison.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius

Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt

GeneralRe: Nasty bug only found in production Pin
Chris Maunder28-Nov-18 4:59
cofounderChris Maunder28-Nov-18 4:59 
GeneralRe: Nasty bug only found in production Pin
Randor 29-Nov-18 18:22
professional Randor 29-Nov-18 18:22 
GeneralRe: Nasty bug only found in production Pin
raddevus4-Dec-18 5:31
mvaraddevus4-Dec-18 5:31 
GeneralRe: Nasty bug only found in production Pin
TheGreatAndPowerfulOz12-Jan-19 6:47
TheGreatAndPowerfulOz12-Jan-19 6:47 
GeneralRe: Nasty bug only found in production Pin
raddevus12-Jan-19 12:42
mvaraddevus12-Jan-19 12:42 
GeneralReadable code, taken too far (too Swift)? Pin
raddevus19-Nov-18 10:32
mvaraddevus19-Nov-18 10:32 
GeneralRe: Readable code, taken too far (too Swift)? PinPopular
Chris Maunder19-Nov-18 15:07
cofounderChris Maunder19-Nov-18 15:07 
GeneralRe: Readable code, taken too far (too Swift)? Pin
raddevus19-Nov-18 15:22
mvaraddevus19-Nov-18 15:22 
GeneralRe: Readable code, taken too far (too Swift)? Pin
Chris Maunder19-Nov-18 16:08
cofounderChris Maunder19-Nov-18 16:08 
GeneralRe: Readable code, taken too far (too Swift)? Pin
obermd23-Nov-18 3:32
obermd23-Nov-18 3:32 
GeneralRe: Readable code, taken too far (too Swift)? Pin
Marc Clifton20-Nov-18 0:40
mvaMarc Clifton20-Nov-18 0:40 
GeneralRe: Readable code, taken too far (too Swift)? Pin
raddevus20-Nov-18 1:56
mvaraddevus20-Nov-18 1:56 
GeneralRe: Readable code, taken too far (too Swift)? Pin
jsc4220-Nov-18 21:50
professionaljsc4220-Nov-18 21:50 
GeneralRe: Readable code, taken too far (too Swift)? Pin
Dan Neely23-Nov-18 5:12
Dan Neely23-Nov-18 5:12 
GeneralRe: Readable code, taken too far (too Swift)? Pin
ajhampson23-Nov-18 8:09
ajhampson23-Nov-18 8:09 
GeneralRe: Readable code, taken too far (too Swift)? Pin
raddevus24-Nov-18 11:43
mvaraddevus24-Nov-18 11:43 
GeneralRe: Readable code, taken too far (too Swift)? Pin
Gerry Schmitz23-Nov-18 12:05
mveGerry Schmitz23-Nov-18 12:05 

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.