Click here to Skip to main content
15,884,629 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: Found error 101 in my own code yesterday Pin
Falterfire12-Jul-11 11:55
Falterfire12-Jul-11 11:55 
GeneralRe: Found error 101 in my own code yesterday Pin
BillW3329-Mar-11 3:22
professionalBillW3329-Mar-11 3:22 
GeneralRe: Found error 101 in my own code yesterday Pin
gavindon29-Mar-11 10:56
gavindon29-Mar-11 10:56 
GeneralRe: Found error 101 in my own code yesterday Pin
jsc4213-Apr-11 3:46
professionaljsc4213-Apr-11 3:46 
GeneralRe: Found error 101 in my own code yesterday Pin
Falterfire12-Jul-11 11:53
Falterfire12-Jul-11 11:53 
GeneralRe: Found error 101 in my own code yesterday Pin
Albert Holguin22-Apr-11 17:23
professionalAlbert Holguin22-Apr-11 17:23 
GeneralSometimes, People code what you say... just what you say PinPopular
Jyothikarthik_N23-Mar-11 4:19
Jyothikarthik_N23-Mar-11 4:19 
GeneralRe: Sometimes, People code what you say... just what you say Pin
musefan23-Mar-11 6:32
musefan23-Mar-11 6:32 
Takes me back to my first year of uni. I remember one guy who used to think the IDE was simply a way to talk to the computer, he would literal write text as if he was telling it what to do - and this was after a good few lessons. Needless to say he didn't survive the year

imagine...

what is your age?

write the users age

tell the user next year he will be a year older!


OK, so not quite like that but he would basically write the phrases the lecturer used to describe what to do...

create an int

set the int based on the users input

add 1 to the int

tell the user next year he will be 1 year older


perhaps he thought he was on a transcribing course
I may or may not be responsible for my own actions

GeneralRe: Sometimes, People code what you say... just what you say Pin
Paladin200023-Mar-11 7:30
Paladin200023-Mar-11 7:30 
GeneralRe: Sometimes, People code what you say... just what you say Pin
Pravin Patil, Mumbai25-Mar-11 4:33
Pravin Patil, Mumbai25-Mar-11 4:33 
GeneralRe: Sometimes, People code what you say... just what you say Pin
RobCroll23-Mar-11 18:22
RobCroll23-Mar-11 18:22 
GeneralRe: Sometimes, People code what you say... just what you say Pin
R. Erasmus24-Mar-11 21:25
R. Erasmus24-Mar-11 21:25 
GeneralRe: Sometimes, People code what you say... just what you say Pin
fjdiewornncalwe25-Mar-11 2:50
professionalfjdiewornncalwe25-Mar-11 2:50 
GeneralRe: Sometimes, People code what you say... just what you say Pin
Chris Meech25-Mar-11 4:07
Chris Meech25-Mar-11 4:07 
GeneralRe: Sometimes, People code what you say... just what you say Pin
drummerboy051125-Mar-11 12:33
professionaldrummerboy051125-Mar-11 12:33 
GeneralRe: Sometimes, People code what you say... just what you say Pin
Chris Meech28-Mar-11 9:23
Chris Meech28-Mar-11 9:23 
GeneralWonderful logger Pin
Vladimir Svyatski23-Mar-11 3:01
professionalVladimir Svyatski23-Mar-11 3:01 
GeneralRe: Wonderful logger Pin
Marc A. Brown23-Mar-11 4:50
Marc A. Brown23-Mar-11 4:50 
GeneralRe: Wonderful logger [modified] Pin
musefan23-Mar-11 6:23
musefan23-Mar-11 6:23 
GeneralRe: Wonderful logger Pin
Vladimir Svyatski23-Mar-11 7:41
professionalVladimir Svyatski23-Mar-11 7:41 
GeneralRe: Wonderful logger Pin
drummerboy051125-Mar-11 12:14
professionaldrummerboy051125-Mar-11 12:14 
GeneralAbout database connection, again Pin
Vladimir Svyatski15-Mar-11 0:45
professionalVladimir Svyatski15-Mar-11 0:45 
Generalhow to: minutes to hours conversion Pin
amatecki13-Mar-11 21:33
professionalamatecki13-Mar-11 21:33 
GeneralRe: how to: minutes to hours conversion Pin
Jörgen Andersson13-Mar-11 22:29
professionalJörgen Andersson13-Mar-11 22:29 
GeneralRe: how to: minutes to hours conversion Pin
Bernhard Hiller14-Mar-11 3:39
Bernhard Hiller14-Mar-11 3:39 

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.