Click here to Skip to main content
15,881,600 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: Who needs security through obscurity? Pin
Nicolas Dorier31-Oct-15 19:20
professionalNicolas Dorier31-Oct-15 19:20 
GeneralRe: Who needs security through obscurity? Pin
Richard Deeming2-Nov-15 2:30
mveRichard Deeming2-Nov-15 2:30 
GeneralRe: Who needs security through obscurity? Pin
Eddy Vluggen2-Nov-15 2:48
professionalEddy Vluggen2-Nov-15 2:48 
GeneralRe: Who needs security through obscurity? Pin
Richard Deeming2-Nov-15 3:00
mveRichard Deeming2-Nov-15 3:00 
GeneralRe: Who needs security through obscurity? Pin
Eddy Vluggen2-Nov-15 3:27
professionalEddy Vluggen2-Nov-15 3:27 
GeneralRe: Who needs security through obscurity? Pin
Bernhard Hiller3-Nov-15 1:04
Bernhard Hiller3-Nov-15 1:04 
GeneralDon't know whether it's weird, or wonderful Pin
phil.o13-Oct-15 8:44
professionalphil.o13-Oct-15 8:44 
GeneralRe: Don't know whether it's weird, or wonderful Pin
Daniel Pfeffer15-Oct-15 0:27
professionalDaniel Pfeffer15-Oct-15 0:27 
Dead | X|

If this becomes widespread, reading code will be even more difficult than it is now. Leaving aside Chinese ideograms, Kanji, etc., how many of you would understand the following code (not the algorithm, its purpose):
C#
double[] מחיר = new double[100];
double[] כמות = new double[100];
...

double סהכ;
for (auto אינדקס ;100 > אינדקס ;0 = אינדקס++)
   [אינדקס]מחיר * [אינדקס]כמות =+ סהכ;

Do we really want to have to read code with Google Translate open in a separate window?
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.

--Winston Churchill

GeneralRe: Don't know whether it's weird, or wonderful Pin
phil.o15-Oct-15 0:38
professionalphil.o15-Oct-15 0:38 
GeneralRe: Don't know whether it's weird, or wonderful Pin
Daniel Pfeffer15-Oct-15 8:57
professionalDaniel Pfeffer15-Oct-15 8:57 
GeneralRe: Don't know whether it's weird, or wonderful Pin
Kornfeld Eliyahu Peter15-Oct-15 11:53
professionalKornfeld Eliyahu Peter15-Oct-15 11:53 
GeneralRe: Don't know whether it's weird, or wonderful Pin
Nicolas Dorier31-Oct-15 19:21
professionalNicolas Dorier31-Oct-15 19:21 
GeneralRe: Don't know whether it's weird, or wonderful Pin
Dan Neely24-Feb-16 5:20
Dan Neely24-Feb-16 5:20 
GeneralRe: Don't know whether it's weird, or wonderful Pin
Nguyen.H.H.Dang21-Aug-16 15:11
professionalNguyen.H.H.Dang21-Aug-16 15:11 
GeneralRe: Don't know whether it's weird, or wonderful Pin
Dennis_E15-Oct-15 2:14
professionalDennis_E15-Oct-15 2:14 
GeneralRe: Don't know whether it's weird, or wonderful Pin
phil.o15-Oct-15 11:32
professionalphil.o15-Oct-15 11:32 
GeneralRe: Don't know whether it's weird, or wonderful Pin
PIEBALDconsult16-Oct-15 8:02
mvePIEBALDconsult16-Oct-15 8:02 
GeneralRe: Don't know whether it's weird, or wonderful Pin
phil.o16-Oct-15 8:15
professionalphil.o16-Oct-15 8:15 
GeneralC++ expression(s) Pin
C3D112-Oct-15 23:04
professionalC3D112-Oct-15 23:04 
GeneralRe: C++ expression(s) Pin
megaadam13-Oct-15 0:46
professionalmegaadam13-Oct-15 0:46 
GeneralRe: C++ expression(s) Pin
den2k8813-Oct-15 2:54
professionalden2k8813-Oct-15 2:54 
GeneralRe: C++ expression(s) PinPopular
Indivara13-Oct-15 3:52
professionalIndivara13-Oct-15 3:52 
GeneralRe: C++ expression(s) Pin
den2k8813-Oct-15 4:01
professionalden2k8813-Oct-15 4:01 
GeneralRe: C++ expression(s) Pin
Agent__00715-Oct-15 0:10
professionalAgent__00715-Oct-15 0:10 
GeneralRe: C++ expression(s) Pin
Power Puff Boy15-Oct-15 0:22
Power Puff Boy15-Oct-15 0:22 

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.