Click here to Skip to main content
15,905,563 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: Get rid of this programmer Pin
Kochise1-May-07 21:52
Kochise1-May-07 21:52 
GeneralRe: Get rid of this programmer Pin
PIEBALDconsult2-May-07 4:15
mvePIEBALDconsult2-May-07 4:15 
GeneralRe: Get rid of this programmer Pin
Max Topley8-May-07 6:19
Max Topley8-May-07 6:19 
GeneralRe: Get rid of this programmer Pin
GTuritto1-May-07 6:12
GTuritto1-May-07 6:12 
GeneralRe: Get rid of this programmer Pin
Dave Kreskowiak1-May-07 6:15
mveDave Kreskowiak1-May-07 6:15 
GeneralRe: Get rid of this programmer Pin
GTuritto1-May-07 6:45
GTuritto1-May-07 6:45 
GeneralRe: Get rid of this programmer Pin
PIEBALDconsult1-May-07 8:15
mvePIEBALDconsult1-May-07 8:15 
GeneralRe: Get rid of this programmer Pin
Dave Kreskowiak1-May-07 10:24
mveDave Kreskowiak1-May-07 10:24 
GTuritto wrote:
It could be solved with ++ operator. But you will surprise to know how many Developers, (and some of them are really good) that I personally know that they never in their's life are used ++ and they had no idea about the ++ operator.


I, thankfully, am not one of them. I for one, as are most people, am completely satisfied with i=i+1 in the event that a ++ operator doesn't exist, in any language I use. I the consequences and performance benefits/costs of making a call to a function along with the optimizations available in todays compilers.


GTuritto wrote:
If it was me first I will be say "What a F...", then I will have a chat with the guy asking why he did that, third I will lecture him why the method is bad, and showing to him the ++ operator, fourth I will see if we can improve the idea, or tell to the programmer to fix the little issue, fifth I will check again to see if he fixed in the right way.


Reading the original post, it's entirely possible that this DID occur, and he still doesn't work for the company. Maybe this person did all kinds of stupid things in his code, maybe not. We simply don't know. I know, it's no reason to be critical of it. But, we also don't know what kind of skill level assumption he was hired under either. If they were expecting higher quality work and he just couldn't deliver past high-school code, out the door he goes.


GTuritto wrote:
All of us we did some stupid mistake like that.


There's a huge difference between making a stupid mistake like that and turning it in as production code. I for one, have never turned in a stupid mistake, no, let me change that, a stupid rationalisation like that! What on earth was this guy thinking when he wrote this? What's the rationale behind writing a function like this? Having said that, what's going through this guys head with the rest of the code he turned in, or will turn in in the future?

How much work are we going to now have to invest in him AND cleaning up his code. This guy wasn't ready for a full-time coding job, plain and simple. School, or his own study habits, it seems, has failed to prepare him for a real world coding job. In this cut-throat business, I don't know of too many internships that could spare the time or the resources to teach him what he should have learnt in class.

I know there's a certain minimum level of expertise you should expect of someone comming out of school, but this code sample fell WAY short of that.



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Get rid of this programmer Pin
Steve Hansen1-May-07 23:47
Steve Hansen1-May-07 23:47 
GeneralRe: Get rid of this programmer Pin
Dave Kreskowiak2-May-07 2:10
mveDave Kreskowiak2-May-07 2:10 
GeneralRe: Get rid of this programmer Pin
Arash Partow4-May-07 16:04
Arash Partow4-May-07 16:04 
GeneralRe: Get rid of this programmer Pin
Paul Conrad6-May-07 4:13
professionalPaul Conrad6-May-07 4:13 
GeneralRe: Get rid of this programmer Pin
Paul Conrad6-May-07 4:10
professionalPaul Conrad6-May-07 4:10 
QuestionNeed a sample code for Paging in ASP while doing printout by printer Pin
Kovalavarajan27-Apr-07 4:45
Kovalavarajan27-Apr-07 4:45 
GeneralRepeat After Me Pin
Brady Kelly26-Apr-07 8:00
Brady Kelly26-Apr-07 8:00 
GeneralRe: Repeat After Me Pin
chrishuff26-Apr-07 8:58
chrishuff26-Apr-07 8:58 
GeneralRe: Repeat After Me Pin
John R. Shaw28-Apr-07 13:18
John R. Shaw28-Apr-07 13:18 
GeneralMore Than One Way To Skin A Cat Pin
chrishuff26-Apr-07 7:13
chrishuff26-Apr-07 7:13 
GeneralRe: More Than One Way To Skin A Cat Pin
Dave Kreskowiak26-Apr-07 7:16
mveDave Kreskowiak26-Apr-07 7:16 
GeneralRe: More Than One Way To Skin A Cat Pin
Tim Carmichael26-Apr-07 7:45
Tim Carmichael26-Apr-07 7:45 
GeneralRe: More Than One Way To Skin A Cat Pin
chrishuff26-Apr-07 8:55
chrishuff26-Apr-07 8:55 
GeneralRe: More Than One Way To Skin A Cat Pin
John R. Shaw28-Apr-07 13:37
John R. Shaw28-Apr-07 13:37 
GeneralRe: More Than One Way To Skin A Cat Pin
JMOdom30-Apr-07 8:57
JMOdom30-Apr-07 8:57 
GeneralThe Horror! Pin
Shog924-Apr-07 16:55
sitebuilderShog924-Apr-07 16:55 
GeneralRe: The Horror! Pin
WhiteSpy25-Apr-07 3:24
WhiteSpy25-Apr-07 3:24 

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.