Click here to Skip to main content
15,887,267 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: Let's REALLY make sure "4" isn't "5" Pin
Jon McKee17-Oct-18 8:19
professionalJon McKee17-Oct-18 8:19 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Mike Winiberg17-Oct-18 23:35
professionalMike Winiberg17-Oct-18 23:35 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
F Margueirat18-Oct-18 4:11
F Margueirat18-Oct-18 4:11 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
den2k8818-Oct-18 4:31
professionalden2k8818-Oct-18 4:31 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
James Lonero19-Oct-18 11:30
James Lonero19-Oct-18 11:30 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
BillW336-Nov-18 4:22
professionalBillW336-Nov-18 4:22 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Alister Morton18-Oct-18 4:41
Alister Morton18-Oct-18 4:41 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
W Balboos, GHB18-Oct-18 8:02
W Balboos, GHB18-Oct-18 8:02 
Not disagreeing with the idea that a symbol's name should tell you a bit about it (if possible), but I have worked with someone who who's symbol and function names were pretty near essays.

It takes a bit of common sense - and making distinguishing them a non-painful eye exercise. Why not loop with i, j, etc., as counters? Why not use IPAddr instead of ipa (slurp!)?

Always just common sense to make readable and to avoid mistakes. It shouldn't be hard.

Ravings en masse^
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Rick York19-Oct-18 5:04
mveRick York19-Oct-18 5:04 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
James Lonero19-Oct-18 11:32
James Lonero19-Oct-18 11:32 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Marc Clifton20-Oct-18 2:25
mvaMarc Clifton20-Oct-18 2:25 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
TNCaver18-Oct-18 6:12
TNCaver18-Oct-18 6:12 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
den2k8818-Oct-18 20:48
professionalden2k8818-Oct-18 20:48 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
James Lonero19-Oct-18 11:35
James Lonero19-Oct-18 11:35 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
James Lonero19-Oct-18 11:28
James Lonero19-Oct-18 11:28 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Dr.Walt Fair, PE1-Nov-18 5:16
professionalDr.Walt Fair, PE1-Nov-18 5:16 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
den2k882-Nov-18 4:49
professionalden2k882-Nov-18 4:49 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Slacker00717-Oct-18 6:38
professionalSlacker00717-Oct-18 6:38 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Dr.Walt Fair, PE1-Nov-18 5:17
professionalDr.Walt Fair, PE1-Nov-18 5:17 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
MarkTJohnson17-Oct-18 6:55
professionalMarkTJohnson17-Oct-18 6:55 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Marc Clifton20-Oct-18 3:57
mvaMarc Clifton20-Oct-18 3:57 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
h3ph3st0s18-Oct-18 0:53
h3ph3st0s18-Oct-18 0:53 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
kalberts18-Oct-18 1:02
kalberts18-Oct-18 1:02 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
James Lonero19-Oct-18 11:34
James Lonero19-Oct-18 11:34 
GeneralRe: Let's REALLY make sure "4" isn't "5" Pin
Bruce Patin18-Oct-18 3:50
Bruce Patin18-Oct-18 3:50 

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.