Click here to Skip to main content
15,887,676 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
Marc Clifton10-Jan-19 14:22
mvaMarc Clifton10-Jan-19 14:22 
GeneralRe: Here's a specific reason devs hate JavaScript! Pin
raddevus10-Jan-19 17:00
mvaraddevus10-Jan-19 17:00 
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 
At 6:53pm on November 26 (New Zealand time), we deployed this 3.4.5c patch and it contained a significant bug. Due to a typo in a database key comparison function, if two users returned to the character selection screen at exactly the same time, there was a chance that one person was logged into the other's account.

This was not apparent to us during testing because it requires a lot of players to be online before it occurs. Upon it being reported, we took the realm down at 8:26pm and restored the old version that did not have this problem.

417 players had their accounts accessed by another user. Of those, only 150 actually tried to log into a character. Most of these either logged out within a few seconds or were kicked off as the owner logged in again immediately.


I'll admit I'm really curious what their code looked like to make that possible in the first place.

Their backend is primarily Linux/C++. but I'm not sure if that is just the main game server code, or also webapi's too. I know the website is php, but based on the history of serious exploitable bugs (almost all of which required crashing a game server before state was saved to the database for local rollbacks of failed crafting attempts, off hand I can only think of one other that didn't and it was a devops failure) I'm skeptical that they're using php for any critical infrastructure.
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: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 
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 

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.