Click here to Skip to main content
15,904,155 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
Gary Wheeler7-Feb-19 2:24 
GeneralRe: Documentation boggle of the day Pin
RugbyLeague6-Feb-19 22:15
RugbyLeague6-Feb-19 22:15 
GeneralRe: Documentation boggle of the day Pin
peterkmx12-Feb-19 23:34
professionalpeterkmx12-Feb-19 23:34 
JokeRe: Documentation boggle of the day Pin
SteakhouseLuke7-Feb-19 1:53
SteakhouseLuke7-Feb-19 1:53 
GeneralRe: Documentation boggle of the day Pin
Gary Wheeler7-Feb-19 1:59
Gary 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
Graeme Henderson5-Apr-19 1:07 
GeneralRe: Documentation boggle of the day Pin
kalberts7-Feb-19 5:14
kalberts7-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
Bob@work7-Feb-19 6:37 
GeneralRe: Documentation boggle of the day Pin
Gary Wheeler7-Feb-19 6:50
Gary 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
Gary Wheeler8-Feb-19 1:45 
GeneralRe: Documentation boggle of the day Pin
OffCenter7-Feb-19 12:44
OffCenter7-Feb-19 12:44 
GeneralRe: Documentation boggle of the day Pin
jeron17-Feb-19 13:20
jeron17-Feb-19 13:20 
PraiseRe: Documentation boggle of the day Pin
Gary Wheeler8-Feb-19 1:45
Gary Wheeler8-Feb-19 1:45 
GeneralRe: Documentation boggle of the day Pin
Bernhard Hiller7-Feb-19 22:07
Bernhard Hiller7-Feb-19 22:07 
GeneralRe: Documentation boggle of the day Pin
Gary Wheeler8-Feb-19 1:47
Gary 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
irneb11-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
Gary Wheeler12-Feb-19 2:15 
GeneralRe: Documentation boggle of the day Pin
peterkmx12-Feb-19 23:44
professionalpeterkmx12-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.