Click here to Skip to main content
14,303,800 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: Documentation boggle of the day Pin
Gary Wheeler7-Feb-19 2:24
memberGary Wheeler7-Feb-19 2:24 
GeneralRe: Documentation boggle of the day Pin
RugbyLeague6-Feb-19 22:15
memberRugbyLeague6-Feb-19 22:15 
GeneralRe: Documentation boggle of the day Pin
Tachyonx12-Feb-19 23:34
memberTachyonx12-Feb-19 23:34 
JokeRe: Documentation boggle of the day Pin
SteakhouseLuke7-Feb-19 1:53
memberSteakhouseLuke7-Feb-19 1:53 
GeneralRe: Documentation boggle of the day Pin
Gary Wheeler7-Feb-19 1:59
memberGary Wheeler7-Feb-19 1:59 
GeneralRe: Documentation boggle of the day Pin
  Forogar  13-Feb-19 4:08
professional  Forogar  13-Feb-19 4:08 
GeneralRe: Documentation boggle of the day Pin
Graeme Henderson5-Apr-19 1:07
memberGraeme Henderson5-Apr-19 1:07 
GeneralRe: Documentation boggle of the day Pin
Member 79891227-Feb-19 5:14
memberMember 79891227-Feb-19 5:14 
We had a "problem" with the elevator in the new wing of our office building: It goes from floor 4 to 3 to 2 to 1 to -1. Most of my colleagues have an engineering/math background, and it hurt our brains to see a discontinous number line to describe a physically continous world.

So we ended up with declaring that the elevator shaft does have a virtual floor zero, where the elevator won't stop (because the floor is virtual). That eased our minds: The number line is again continous.

You could try a similar approach for peace of mind: You may assume that there was a request, but it was virtual, so no real bits crossed the interface. The command provokes a virtual response, with no real bits transmitted.

That way you can maintain a command/response model without breaking any sort of logic thinking.
GeneralRe: Documentation boggle of the day Pin
Bob@work7-Feb-19 6:37
memberBob@work7-Feb-19 6:37 
GeneralRe: Documentation boggle of the day Pin
Gary Wheeler7-Feb-19 6:50
memberGary Wheeler7-Feb-19 6:50 
GeneralRe: Documentation boggle of the day Pin
MSBassSinger7-Feb-19 7:52
professionalMSBassSinger7-Feb-19 7:52 
GeneralRe: Documentation boggle of the day Pin
Rick York7-Feb-19 12:24
mveRick York7-Feb-19 12:24 
GeneralRe: Documentation boggle of the day Pin
Gary Wheeler8-Feb-19 1:45
memberGary Wheeler8-Feb-19 1:45 
GeneralRe: Documentation boggle of the day Pin
OffCenter7-Feb-19 12:44
memberOffCenter7-Feb-19 12:44 
GeneralRe: Documentation boggle of the day Pin
jeron17-Feb-19 13:20
memberjeron17-Feb-19 13:20 
PraiseRe: Documentation boggle of the day Pin
Gary Wheeler8-Feb-19 1:45
memberGary Wheeler8-Feb-19 1:45 
GeneralRe: Documentation boggle of the day Pin
Bernhard Hiller7-Feb-19 22:07
memberBernhard Hiller7-Feb-19 22:07 
GeneralRe: Documentation boggle of the day Pin
Gary Wheeler8-Feb-19 1:47
memberGary Wheeler8-Feb-19 1:47 
JokeRe: Documentation boggle of the day Pin
Daniel Pfeffer10-Feb-19 21:21
professionalDaniel Pfeffer10-Feb-19 21:21 
GeneralRe: Documentation boggle of the day Pin
Gerry Schmitz8-Feb-19 17:41
mveGerry Schmitz8-Feb-19 17:41 
GeneralRe: Documentation boggle of the day Pin
Sander Rossel10-Feb-19 20:44
professionalSander Rossel10-Feb-19 20:44 
GeneralRe: Documentation boggle of the day Pin
irneb11-Feb-19 1:52
memberirneb11-Feb-19 1:52 
GeneralRe: Documentation boggle of the day Pin
Randor 11-Feb-19 11:29
professional Randor 11-Feb-19 11:29 
GeneralRe: Documentation boggle of the day Pin
Gary Wheeler12-Feb-19 2:15
memberGary Wheeler12-Feb-19 2:15 
GeneralRe: Documentation boggle of the day Pin
Tachyonx12-Feb-19 23:44
memberTachyonx12-Feb-19 23:44 

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.