Click here to Skip to main content
15,915,319 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: Lets' change things up; how about the inept and stupid Pin
DJ van Wyk8-Mar-20 21:59
professionalDJ van Wyk8-Mar-20 21:59 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Greg Utas9-Mar-20 1:24
professionalGreg Utas9-Mar-20 1:24 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Stefan_Lang8-Mar-20 23:29
Stefan_Lang8-Mar-20 23:29 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Greg Utas9-Mar-20 1:34
professionalGreg Utas9-Mar-20 1:34 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Member 91670578-Mar-20 22:18
Member 91670578-Mar-20 22:18 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
John R. Shaw26-Mar-20 19:52
John R. Shaw26-Mar-20 19:52 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Nelek26-Mar-20 23:31
protectorNelek26-Mar-20 23:31 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
kalberts29-Mar-20 12:26
kalberts29-Mar-20 12:26 
One major difference between the TCP/IP protocol suite and the OSI protocol suite is that the former asks you to try to make sense of whatever you receive, one way or the other.

OSI follows the principle that a protocol error is fatal, you cancel the connection. Disconnect is mandatory; if you continue operation trying to keep it going, then you are not conformant to the standard. Those sloppy, haphazard implementations are kicked out. If you want to exchange data, you better do it in the proper way!

Of course it makes it more difficult to be an eager student who has not yet learnt proper behavior; before he goes out in the wide open world he must know what to do. The Internet lenient philosophy is fair enough while you are still playing in the sand pit, but not when you grow up.

Programming languages are similar. They should define clearly what you can and cannot do. They should specify clearly all the issues that the compiler is required to detect, those that the generated code / runtime system is required to detect, and those that cannot reasonably be detected neither at compile time nor run time but is nevertheless an error. I know of one language specifications that includes all three, the Z.200 CHILL language. Unfortunately, CHILL never made it as a mainstream language (nobody really tried to make it!) - it was a language design of excellent quality. But I guess most programmers moving from C to CHILL would feel the strict discipline as a straightjacket.
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Stefan_Lang8-Mar-20 23:51
Stefan_Lang8-Mar-20 23:51 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Gary R. Wheeler9-Mar-20 12:36
Gary R. Wheeler9-Mar-20 12:36 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Stefan_Lang9-Mar-20 21:32
Stefan_Lang9-Mar-20 21:32 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Gary R. Wheeler10-Mar-20 6:59
Gary R. Wheeler10-Mar-20 6:59 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Nelek26-Mar-20 23:29
protectorNelek26-Mar-20 23:29 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Richard MacCutchan26-Mar-20 23:43
mveRichard MacCutchan26-Mar-20 23:43 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Marc Clifton27-Mar-20 8:16
mvaMarc Clifton27-Mar-20 8:16 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Greg Utas27-Mar-20 11:01
professionalGreg Utas27-Mar-20 11:01 
GeneralWonderful: For those of you that want to teach yourself more advanced CS concepts Pin
honey the codewitch26-Feb-20 9:44
mvahoney the codewitch26-Feb-20 9:44 
GeneralRe: Wonderful: For those of you that want to teach yourself more advanced CS concepts Pin
Amarnath S26-Feb-20 13:32
professionalAmarnath S26-Feb-20 13:32 
GeneralRe: Wonderful: For those of you that want to teach yourself more advanced CS concepts Pin
vaghelabhavesh27-Feb-20 8:40
vaghelabhavesh27-Feb-20 8:40 
GeneralRe: Wonderful: For those of you that want to teach yourself more advanced CS concepts Pin
John R. Shaw26-Mar-20 20:02
John R. Shaw26-Mar-20 20:02 
GeneralRe: Wonderful: For those of you that want to teach yourself more advanced CS concepts Pin
honey the codewitch26-Mar-20 20:16
mvahoney the codewitch26-Mar-20 20:16 
GeneralThis Definitely Falls into the Wonderful Camp Pin
David A. Gray9-Feb-20 11:14
David A. Gray9-Feb-20 11:14 
GeneralRe: This Definitely Falls into the Wonderful Camp Pin
Randor 10-Feb-20 12:33
professional Randor 10-Feb-20 12:33 
GeneralRe: This Definitely Falls into the Wonderful Camp Pin
David A. Gray11-Feb-20 10:33
David A. Gray11-Feb-20 10:33 
GeneralRe: This Definitely Falls into the Wonderful Camp Pin
Randor 11-Feb-20 12:40
professional Randor 11-Feb-20 12:40 

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.