Click here to Skip to main content
15,898,588 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: Redundancy Peaking Pin
Allan Thomas12-Aug-11 1:58
Allan Thomas12-Aug-11 1:58 
GeneralRe: Redundancy Peaking Pin
Member 256047216-Aug-11 0:39
Member 256047216-Aug-11 0:39 
GeneralRe: Redundancy Peaking Pin
mdblack9816-Aug-11 5:40
mdblack9816-Aug-11 5:40 
GeneralRe: Redundancy Peaking Pin
CDP180217-Aug-11 3:07
CDP180217-Aug-11 3:07 
GeneralRe: Redundancy Peaking Pin
mdblack9817-Aug-11 8:27
mdblack9817-Aug-11 8:27 
GeneralRe: Redundancy Peaking Pin
CDP180217-Aug-11 20:10
CDP180217-Aug-11 20:10 
GeneralRe: Redundancy Peaking Pin
jsc421-Sep-11 4:24
professionaljsc421-Sep-11 4:24 
GeneralRe: Redundancy Peaking Pin
Sander Rossel12-Aug-11 22:55
professionalSander Rossel12-Aug-11 22:55 
Though not my preferred style of writing code I don't see how this is such a horror.
It is readable, it is clear, no one could ever interpret it wrong (not even newbies to programming!).
When I just started out I remember seeing something like If someVar Then and I was looking what someVar could be and if it should be True or False (it should be something!? Confused | :confused: )...
Sure, it is some redundancy, but if my computer is acting up and I can hear it having a hard time I am quite sure it is never because some programmer checked for True Wink | ;)
If checking Booleans for True like that is the biggest 'horror' in the code I sometimes encounter I would be out of a job! Wink | ;)

What is more of a horror to me is first checking if a Boolean is Not True, like this:
VB
If Not myControl.Visible Then
   ' Some Code
Else
   ' Some other code
End If

That would of course only be justified if there was no Else Wink | ;)
But even that is not so much of a coding horror, just annoying.

By the way, if this app is really ill written I'd like to see some other cool stuff! Big Grin | :-D
It's an OO world.

GeneralRe: Redundancy Peaking Pin
Nikola Radosavljevic16-Aug-11 0:44
Nikola Radosavljevic16-Aug-11 0:44 
GeneralRe: Redundancy Peaking Pin
MikeD 216-Aug-11 2:26
MikeD 216-Aug-11 2:26 
GeneralRe: Redundancy Peaking Pin
Nagy Vilmos16-Aug-11 3:10
professionalNagy Vilmos16-Aug-11 3:10 
GeneralRe: Redundancy Peaking Pin
Nikola Radosavljevic16-Aug-11 3:17
Nikola Radosavljevic16-Aug-11 3:17 
GeneralRe: Redundancy Peaking Pin
Nagy Vilmos16-Aug-11 3:22
professionalNagy Vilmos16-Aug-11 3:22 
GeneralRe: Redundancy Peaking Pin
Nikola Radosavljevic16-Aug-11 3:37
Nikola Radosavljevic16-Aug-11 3:37 
GeneralRe: Redundancy Peaking Pin
Nagy Vilmos16-Aug-11 3:52
professionalNagy Vilmos16-Aug-11 3:52 
GeneralRe: Redundancy Peaking Pin
Nikola Radosavljevic16-Aug-11 3:55
Nikola Radosavljevic16-Aug-11 3:55 
GeneralRe: Redundancy Peaking Pin
Sander Rossel16-Aug-11 7:06
professionalSander Rossel16-Aug-11 7:06 
GeneralRe: Redundancy Peaking Pin
Sander Rossel16-Aug-11 7:13
professionalSander Rossel16-Aug-11 7:13 
GeneralRe: Redundancy Peaking PinPopular
mdblack9816-Aug-11 2:33
mdblack9816-Aug-11 2:33 
GeneralRe: Redundancy Peaking Pin
streamcap16-Aug-11 2:53
streamcap16-Aug-11 2:53 
GeneralRe: Redundancy Peaking Pin
BrainiacV16-Aug-11 3:20
BrainiacV16-Aug-11 3:20 
GeneralRe: Redundancy Peaking Pin
User 259821516-Aug-11 4:33
User 259821516-Aug-11 4:33 
GeneralRe: Redundancy Peaking Pin
V.16-Aug-11 4:45
professionalV.16-Aug-11 4:45 
GeneralRe: Redundancy Peaking Pin
Ralph Little16-Aug-11 6:54
Ralph Little16-Aug-11 6:54 
GeneralRe: Redundancy Peaking Pin
wbaxter3716-Aug-11 5:32
wbaxter3716-Aug-11 5:32 

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.