Click here to Skip to main content
15,889,842 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: Needed a series of random numbers Pin
CDP180214-Sep-11 3:49
CDP180214-Sep-11 3:49 
GeneralRe: Needed a series of random numbers Pin
Bert Mitton14-Sep-11 4:04
professionalBert Mitton14-Sep-11 4:04 
GeneralMessage Removed Pin
21-Sep-11 7:04
professionalN_tro_P21-Sep-11 7:04 
GeneralRe: Needed a series of random numbers Pin
Bert Mitton22-Sep-11 3:08
professionalBert Mitton22-Sep-11 3:08 
GeneralRe: Needed a series of random numbers Pin
Luis D. Aguilar7-Oct-11 7:49
Luis D. Aguilar7-Oct-11 7:49 
GeneralCommenting code... Pin
Sander Rossel4-Sep-11 20:47
professionalSander Rossel4-Sep-11 20:47 
GeneralRe: Commenting code... Pin
Firo Atrum Ventus4-Sep-11 22:02
Firo Atrum Ventus4-Sep-11 22:02 
GeneralRe: Commenting code... Pin
Allan Thomas5-Sep-11 14:53
Allan Thomas5-Sep-11 14:53 
Considering that your boss asked you to write something up (who should have some knowledge of coding) and you gave him a one liner to get what he wanted working and couldn't understand that really does raise questions about his compentency. But there are two things you can learn from this.

First you said that it's the default microsoft functionality (for the dot net framework I'm assuming you are saying here) which is really good but what if the person hasn't programmed using the dot net framework or didn't even know that function existed. I self teach myself a lot of stuff but unless you get training covering every functionality of each object model you can't know everything that's 'default' unless you have heard of it. You can't know that your boss knows about it and even if he did how does he know your extending the functionality or writing something totally seperate.

Secondly not all people are good at reading things and having a code comment explaining the end result of the function call is a good idea especially with a single word like select is used to execute an action (i.e. select an open form, closed form, some magical form, some specific class form).

My boss recently asked me to extend functionality on an existing system and then said that I had to use a specific table despite the fact I started designin it using a new table. Over the weekend I went through the system to see the impact of using that table instead of creating another one specifically designed for the purpose. I then sent an email with a list of what was needed to do to get either option working (i.e. change this, do that, etc). When I went into the office he said to see him because he didn't understand the email and after spending a bit of time talking and drawing on a whiteboard he got the idea and went yeah I can see your point and create a new table for it for now. Had I given him a few screen shots and some pictures with a few explinations it he would have been able to understand what I was saying easier.

P.S. Also intellisense isn't everywhere. If you, oh I don't know, say paste the code on the web where is my intellisense Big Grin | :-D ? I suppose it's a good think we install spell checking on our whiteboards to make sure we find typos when people write things down Laugh | :laugh: .
GeneralRe: Commenting code... Pin
Sander Rossel5-Sep-11 19:56
professionalSander Rossel5-Sep-11 19:56 
GeneralRe: Commenting code... Pin
BobJanova5-Sep-11 23:04
BobJanova5-Sep-11 23:04 
GeneralRe: Commenting code... Pin
tobep9-Sep-11 7:13
tobep9-Sep-11 7:13 
GeneralRe: Commenting code... Pin
Sander Rossel9-Sep-11 7:22
professionalSander Rossel9-Sep-11 7:22 
GeneralRe: Commenting code... PinPopular
RCoate5-Sep-11 18:37
RCoate5-Sep-11 18:37 
GeneralRe: Commenting code... Pin
Sander Rossel5-Sep-11 19:58
professionalSander Rossel5-Sep-11 19:58 
GeneralRe: Commenting code... PinPopular
Rob Grainger6-Sep-11 0:32
Rob Grainger6-Sep-11 0:32 
GeneralRe: Commenting code... Pin
Firo Atrum Ventus6-Sep-11 14:35
Firo Atrum Ventus6-Sep-11 14:35 
GeneralRe: Commenting code... Pin
Stefan_Lang30-Sep-11 2:59
Stefan_Lang30-Sep-11 2:59 
GeneralRe: Commenting code... Pin
MicroVirus6-Sep-11 2:57
MicroVirus6-Sep-11 2:57 
GeneralRe: Commenting code... Pin
RCoate6-Sep-11 15:07
RCoate6-Sep-11 15:07 
GeneralRe: Commenting code... Pin
Nagy Vilmos5-Sep-11 22:43
professionalNagy Vilmos5-Sep-11 22:43 
GeneralRe: Commenting code... PinPopular
Al_Brown6-Sep-11 0:01
Al_Brown6-Sep-11 0:01 
GeneralRe: Commenting code... Pin
Sander Rossel6-Sep-11 6:46
professionalSander Rossel6-Sep-11 6:46 
GeneralRe: Commenting code... Pin
Al_Brown6-Sep-11 23:34
Al_Brown6-Sep-11 23:34 
GeneralRe: Commenting code... Pin
Ian Shlasko6-Sep-11 2:01
Ian Shlasko6-Sep-11 2:01 
GeneralRe: Commenting code... Pin
CDP18026-Sep-11 21:28
CDP18026-Sep-11 21:28 

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.