what does Idioproof mean?
<title>Idioproof Website</title>
Looks like some idiot spent too much time writing stupid comments and not enough time proofreading...
what does Idioproof mean?
<title>Idioproof Website</title>
Looks like some idiot spent too much time writing stupid comments and not enough time proofreading...
Got a frantic call from a customer this morning saying their Case Tracking system was broken and needed to be urgently fixed. Out of the blue the registration ID's were incrementing by 5 instead of by the standard 1, so user saved a registration, ID assigned was 134555, then when he saved again the ID was 134560, then 134565 etc. Problem started at 9:30 that morning.
First thing we suspected was that there were multiple users logging reqistrations and the increment of 5 was just an unlikely probability, but they assured us that no, there was only 1 person logging registrations (Mr. X). After a quick sanity check of the code which we knew was properly unit tested and was unlikely to be the cause of the problem, and not having remote access we jumped in a taxi to go onsite to try and address the problem.
Onsite we did a select on all registrations created that day and lo and behold, all ID's were properly incremented with unique, valid registrations. Starting to get a bit pissed off we asked had they checked for the missing ID's in the system with the search function - eg. 134556, or 134557. No apparently they didn't because they were data entry people, not data searchers, so was outside the scope of their job description.
We then asked did amiller, dmerrick and gsmith per chance work for this organisation, and if so what were they doing this morning? After the customer contact spoke to Ms. Miller and asked her what she was doing that morning the penny suddenly dropped with them...
I'm sure you've guessed it - there were 4/5 people logging registrations. While we were looking at the select result, we noticed that the gap between ID's registered by Mr. X was NOT always 5 - they were 4, 5, 4, 3 etc. So not only could he not search, it appears he could also not count. MORON.
Here's hoping MR. X gets invoiced for the cost of his stupidity, or athe very least no bonus, but it's the public sector so I won't hold my breath...
public final void set(int year, int month, int date)
clear
first.
year
- the value used to set the YEAR time field. month
- the value used to set the MONTH time field. Month value is 0-based. e.g., 0 for January. date
- the value used to set the DATE time field.[quote user="Pap"]P-P-P-Powerbook![/quote]
brilliant. had a similar situation, a guy (supposedly in) London wanted me to ship (by most expensive FexEx) a stereo to nigeria. value was EUR200, shipping EUR500...
you're not looking for a lego AT-AT by any chance?
I've seen a couple of reboots - windows NT on one and OS/2 on another
and star office is so much better...actually, no. it's a piece of shit.
@Alex Papadimoulis said:
@Frijoles said:
Stay Slim. Stay Sexy. Stay SQL Server.I like that!
yes, but substitute SQL Server with DB2
eh...I think you'll find it is perfectly acceptable grammar, idiot.
inproperly...that's a word now, is it?
@RayS said:
@TDC said:Anyway, I heard he came from northern Italy.
The real WTF is that the bear wasn't stopped at passport control!
(someone had to say it)
the bloody EU has ***ked up all that now...b***ards
@Khim said:
I haven't slept properly since.
the wtf must be that you lost 10 years sleep over this...
is there no existing ldap system floating around in the 40000 strong organisation?
@kungphury said:
Anyone know where I can find NON-IT info to convince my company management to dump Lotus Notes - such as studies of the lost productivity compared to Outlook? Any comparisons of the total number of Lotus Notes users compared to other programs? I need all the non-IT ammoI can get. I HATE Lotus Notes.
would probably be easier to find info/examples to get them to switch the other way...
poor data type choice on the part of the developer - you can hardly blame the product - any competent developer knows the ranges - if he made an assumption based on java etc maybe he needs a lotusscript book...
sounds like someone wishes he was a senior programmer... picking out 1 crap piece of code that someone else wrote to say he is rubbish is a bit unfair - how about we go through some of your code...
@ammoQ said:
IMO it's realistic that you can make a career in programming if you want to. I'm not even sure that an additional degree is necessary, though you might feel (and do) better with a good theoretical background.
computer science degree is meaningless, don't bother
Another gem:
<FONT color=#000080 size=2>for</FONT><FONT size=2>(</FONT><FONT color=#000080 size=2>int </FONT><FONT size=2>i=0;i < 4;i++) {
</FONT><FONT color=#000080 size=2>switch</FONT><FONT size=2>(i) {
</FONT><FONT color=#000080 size=2>case </FONT><FONT size=2>0 : </FONT><FONT color=#000080 size=2>if</FONT><FONT size=2>(search_start_month == </FONT><FONT color=#000080 size=2>null</FONT><FONT size=2>) {
search_start_month = </FONT><FONT color=#008000 size=2>""</FONT><FONT size=2>;
}
</FONT><FONT color=#000080 size=2>break</FONT><FONT size=2>;
</FONT><FONT color=#000080 size=2>case </FONT><FONT size=2>1 : </FONT><FONT color=#000080 size=2>if</FONT><FONT size=2>(search_start_year == </FONT><FONT color=#000080 size=2>null</FONT><FONT size=2>) {
search_start_year = </FONT><FONT color=#008000 size=2>""</FONT><FONT size=2>;
}
</FONT><FONT color=#000080 size=2>break</FONT><FONT size=2>;
</FONT><FONT color=#000080 size=2>case </FONT><FONT size=2>2 : </FONT><FONT color=#000080 size=2>if</FONT><FONT size=2>(search_end_month == </FONT><FONT color=#000080 size=2>null</FONT><FONT size=2>) {
search_end_month = </FONT><FONT color=#008000 size=2>""</FONT><FONT size=2>;
}
</FONT><FONT color=#000080 size=2>break</FONT><FONT size=2>;
</FONT><FONT color=#000080 size=2>case </FONT><FONT size=2>3 : </FONT><FONT color=#000080 size=2>if</FONT><FONT size=2>(search_end_year == </FONT><FONT color=#000080 size=2>null</FONT><FONT size=2>) {
search_end_year = </FONT><FONT color=#008000 size=2>""</FONT><FONT size=2>;
}
</FONT><FONT color=#000080 size=2>break</FONT><FONT size=2>;
}
}
</FONT>
This is typical for ad-hoc statements (making an already written query a subquery is easier than turning it into a join), but shouldn't make it into production code.
There are 152 occurances of selects within selects...
That's what people did in C, when a program crash wasn't that easy to pinpoint in the code. Obviously useless in Java. Obviously not usefull in production code, though that stuff is often forgotten.
that's why we use log 4 j...
He left on Friday, I got stuck with making some updates to an existing system...here are a few code samples I came across today...
1. He was a bit of a whizz with SQL...and no, there is no valid reason for this crap...
private static String SELECT_TAG_MEASURE_STATEMENT =
"select measure_id, name "
+ "from measure "
+ "where measure_id in "
+ "(select measure_id from tag_measure where tag_action_id in "
+ "(select tag_action_id from tag_action where action_id = ?)) "
+ "order by name";
2. ???????
Calendar todaysDate = Calendar.getInstance();
Date trialTime = new Date();
todaysDate.setTime(trialTime);
3. Is anyone else familiar with 'leftONLOAD'? My IDE and my (other) colleagues aren't - and yes, I am aware of the crap link color handling even though every jsp also has css included...
<BODY ALINK="#993333" BGCOLOR="#DFD1AD" topmargin=0 leftmargin=0 rightmargin=0 onload="initialiseForm(insertMenu, '<%=subcommand%>')" leftONLOAD="MM_showHideLayers('parent.frames[\'left\'].document.layers[\'Layer1\'][0]','parent.frames[\'left\'].document.all[\'Layer1\'][0]','hide')" LINK="000000" VLINK="#8F7134" ALINK="#333333">
4. Some sample logging (from production system supplied to client)
System.out.println("Srini 1");
do something (1 thing only, mind you...)
System.out.println("Srini 2");
System.out.println("Srini 3");
System.out.println("Srini 4");
System.out.println("Srini 5");
etc...