Comment On The Student Registration System at WTF University

Enric Naval was presented with an opportunity he couldn't pass up: a plump scholarship, real-world programming experience, and some spending money. All he had to do was give up sixteen measly hours each week for some work-study in the college's IT department. How hard could that be? According to this figure I just made up, 63% of college students spend at least that much time each day in World of Warcraft. [expand full text]
« PrevPage 1 | Page 2 | Page 3Next »

Re: The Student Registration System at WTF University

2006-07-26 14:45 • by David
Apparently the "logic" to guess pages is very complex. After all, that's a lot of if statements...

moderated by ammoQ first?

Re: The Student Registration System at WTF University

2006-07-26 14:45 • by lindee
    wow

Re: The Student Registration System at WTF University

2006-07-26 14:52 • by l1fel1ne

All these WTFU posts make me want to get a WTFU t-shirt off thinkgeek......


 


CAPTCHA = hacker

Re: The Student Registration System at WTF University

2006-07-26 14:53 • by maweki
I think I should join the WTF-University, just to send in a new WTF every single day

Re: The Student Registration System at WTF University

2006-07-26 14:55 • by kipthegreat
You misspelled "Eric" throughout the post.

No one is named "Enric."  That would be silly.

Re: The Student Registration System at WTF University

2006-07-26 14:56 • by smbell
Holy bleeding eyeballs Batman!!!

By the way did we already cover "../activity-42/reproces2.jsp" or was that "../activity-42/reprosess.jsp"?

Re: The Student Registration System at WTF University

2006-07-26 14:57 • by Reweave
Where do I sign up?!
Sad thing is, maintaining this kind of nightmare in university is probably a good training for the 'real world' we see every day here...

Re: The Student Registration System at WTF University

2006-07-26 15:01 • by mastmaker
Aha....This is precisely what 'artificial intelligence' was required. A few lines of LISP would have replaced all those 'thouzens of dines of stubid gode'.

Re: The Student Registration System at WTF University

2006-07-26 15:05 • by merreborn
83397 in reply to 83394
Anonymous:
Aha....This is precisely what 'artificial intelligence' was required. A few lines of LISP would have replaced all those 'thouzens of dines of stubid gode'.


A decent levenshtein or soundex function prolly woulda done just as well.

Admittedly, typo matching is actually kinda hard to get right.

Oh, and of course the basic concept of this page (why wouldn't you just fix the developers' typos?) -- and system, for that matter -- is a WTF.

Re: The Student Registration System at WTF University

2006-07-26 15:06 • by knuckles
83398 in reply to 83394
redirecting them to a random page would make for much more efficient code

Re: The Student Registration System at WTF University

2006-07-26 15:08 • by isaphrael
I'm fairly certain that entire process could be solved recursively with some XML.

SilverBullet, HO!

Re: The Student Registration System at WTF University

2006-07-26 15:10 • by TB3
And the golden rule at WTF University is, "Programming is Easy".

See, all programming is nothing more than a bunch of if-else constructs to handle every possibility in the known universe.

And you thought it was hard!

Re: The Student Registration System at WTF University

2006-07-26 15:12 • by kmerkle
83402 in reply to 83400

I think this could actually be the holy grail for QA.  You don't actually have to test your code, you just write a function that corrects all possible mistakes.

Re: The Student Registration System at WTF University

2006-07-26 15:13 • by Me


 private final String doRedirect_a5( String page )
{
if ( page.equals("a5-intro.jsp") )
return "../activity-5/a5-introduction.jsp";

else if ( page.equals("a5-introduction.jsp") )
return "../activity-5/a5-introduction.jsp";

else if ( page.equals("a5-intorduction.jsp") )
return "../activity-5/a5-introduction.jsp";

/* snipped a whole bunch of cases */

else if ( page.startsWith("a5-task-2-3") )
return "../tasks/r.jsp?redir=../activity-5/task-2-4.jsp";

else if ( page.startsWith("a5-task-3-3") )
return "../tasks/r.jsp?redir=../activity-5/task3/taskC.jsp";

/* snipped a whole bunch more cases */

else if ( page.equals("conclusions-5.jsp") )
return "../conclusions3/incident5.jsp";

else if ( page.equals("conclusions-specific-5.jsp") )
return "../conclusions3/incident5.jsp";

else if ( page.equals("conclusions-general-5.jsp") )
return "../conclusions3/incident5.jsp";

else
return "../activity-5/process.jsp";

I love linear search algorithms, nice and inefficient. At my work there is a 2000+ line switch statement.....
}




Re: The Student Registration System at WTF University

2006-07-26 15:14 • by ammoQ
The "central servlet", done correctly, is not necessarily a WTF. They call it the front controller design pattern.

Re: The Student Registration System at WTF University

2006-07-26 15:15 • by Code Slave
Clearly the solution is to run the mispelled page name through a soundex and then redirect them to the first page that matches in your pagename & soundex table.

(No, not really - I'd much rather cattle prod any developer who deploys their changes to production without event smoke testing them)

Re: The Student Registration System at WTF University

2006-07-26 15:19 • by Raider
83406 in reply to 83402
Holy IF statements batman ... I'm guessing either no knowledgable students attend these universities, or they'd rather work at McD's to pay tuition fees than get a scholarship at the cost of trying to maintain these monstronsities.

Re: The Student Registration System at WTF University

2006-07-26 15:20 • by Pyromancer
83407 in reply to 83394

Anonymous:
Aha....This is precisely what 'artificial intelligence' was required. A few lines of LISP would have replaced all those 'thouzens of dines of stubid gode'.


But then this page might awaken one day and decide to take over the world :)

Re: The Student Registration System at WTF University

2006-07-26 15:27 • by snoofle
83410 in reply to 83407

I guess we should be thankful these folks never heard of STORRAY...or actual databases of strings...or arrays...or *gasp* fixing the broken links in the first place.


Then again, imagine the cursors needed for the stored proc they'd have written to scan through all these cases?  The power-drain from the disk-motors alone might cause a blackout (it's summer (here) and it's hot)

Re: The Student Registration System at WTF University

2006-07-26 15:27 • by Ford351-4V
The photo bears an unholy resemblence to Cary Quadrangle at Purdue University.


I see "equals", "startsWith" and "endsWith" but no "isKindaInTheMiddleOf". WTF?

Re: The Student Registration System at WTF University

2006-07-26 15:28 • by dahat
83412 in reply to 83398

Anonymous:
redirecting them to a random page would make for much more efficient code


Not a bad idea... maybe insert a promot to ask "is this the page you were expecting?" and if no is selected... just pick a new random page. Web 4.0 here we come!

Re: The Student Registration System at WTF University

2006-07-26 15:32 • by Bob Smith
83413 in reply to 83390
kipthegreat:
You misspelled "Eric" throughout the post.

No one is named "Enric."  That would be silly.


HAHA i almost shot water through my nose reading that one

Re: The Student Registration System at WTF University

2006-07-26 15:32 • by GoatCheez
The WTFs this week just have me pointing and shouting "SEE! SEE! Look! Proof!" lol. It's nice to see that what I think isn't outrageous. Code like this is worse than:

bool bleck;
if (foo == true)
{
    bleck = true;
} else {
    bleck = false;
}

I mean, c'mon... The Enric shoulda known that the system was fubar when the makefile wasn't named "new-new-new-new7-BUILDSITE2354-real-final-final-final-im-being-totally-serial-you-guys"

Re: The Student Registration System at WTF University

2006-07-26 15:32 • by snoofle
83415 in reply to 83411

Ford351-4V:
The photo bears an unholy resemblence to Cary Quadrangle at Purdue University.

I see "equals", "startsWith" and "endsWith" but no "isKindaInTheMiddleOf". WTF?


Beautiful !!!


if ("WTF".isKindaInTheMiddleOf("MTWTF")) { ... }

Re: The Student Registration System at WTF University

2006-07-26 15:34 • by Runtime Error
83416 in reply to 83407
Anonymous:

Anonymous:
Aha....This is precisely what 'artificial intelligence' was required. A few lines of LISP would have replaced all those 'thouzens of dines of stubid gode'.


But then this page might awaken one day and decide to take over the world :)



I think it would be way to busy trying to find someone to put it out its misery.

Re: The Student Registration System at WTF University

2006-07-26 15:35 • by EvanED
Alex Papadimoulis:
    if ( page.equals("a5-intro.jsp") )

return "../activity-5/a5-introduction.jsp";

else if ( page.equals("a5-introduction.jsp") )
return "../activity-5/a5-introduction.jsp";

else if ( page.equals("a5-intorduction.jsp") )
return "../activity-5/a5-introduction.jsp";



Ha ha, I love it.

I don't know about you, but I think this project will provide a GREAT intorduction to CS.

Re: The Student Registration System at WTF University

2006-07-26 15:36 • by wateva
hash tables

loop around an array



private
final String doRedirect(/*enum of some type*/ e)

{

    static String[] redirectTable=...; // populate array

    return redirectTable[e];

}


Those come to mind without even thinking about it. And I'm not even a CS student!!!!

I'd quit the job, afraid that a future employer might find out I had something to do with it.



Re: The Student Registration System at WTF University

2006-07-26 15:39 • by maldrich
83419 in reply to 83404
ammoQ:
The "central servlet", done correctly, is not necessarily a WTF. They call it the front controller design pattern.


I guess this would be the "Spelling Correcter Front Controller" design pattern. Reinstating it as a WTF.
?

Re: The Student Registration System at WTF University

2006-07-26 15:39 • by Anon


Is it just me, or does WTFU bear an uncanny resemblance to Harvard Yard? So let's see...it copies its CS slides from Princeton, its architecture from Harvard, and apparently its student registration system from Rutgers. Or for the latter, with equivalent plausibility, vice versa.

Re: The Student Registration System at WTF University

2006-07-26 15:39 • by HitScan
So when are the root servers going to correct my amazon.co and amazon.co, typos? This is a must-implement feature!


(Side note: server side correction of misspellings is for the weak of mind and spirit. Their pages should be broken and their backs lashed until they actually take the time to test their stupuid pages and type the damned names the right way.)

Re: The Student Registration System at WTF University

2006-07-26 15:44 • by HitScan
83422 in reply to 83411
Ford351-4V:
The photo bears an unholy resemblence to Cary Quadrangle at Purdue University.


No way. I sayed in CQ SE for a year and a half. No fancy curved window tops, and certainly no fancy entrance like you can kind of see in the middle of the building on the left. Also, they're much too clean and brick-colored. CQ was lighter I think, and covered in blue jean lint from the dryers.

I never said it was a happy year and a half.

Re: The Student Registration System at WTF University

2006-07-26 15:54 • by dragfyre
I just lost my will to live :(

Re: The Student Registration System at WTF University

2006-07-26 15:54 • by Ford351-4V
83427 in reply to 83422
CQ East 3rd Floor '74-'75

CQ SE 2nd Floor '75-'76

Riverview Apts. heavy drinking after that makes the memory fuzzy.

Re: The Student Registration System at WTF University

2006-07-26 15:55 • by should be working
83428 in reply to 83420
"[copied]... its student registration system from Rutgers"
LOL!  I love a good dig at Rutgers.  (NJIT grad).

Re: The Student Registration System at WTF University

2006-07-26 15:59 • by wintermyute
83429 in reply to 83420
I was wondering how many people would say that the picture looks like a particular school. To me, it looks like the quad at UIUC.

Re: The Student Registration System at WTF University

2006-07-26 16:00 • by xrT
83430 in reply to 83412
Anonymous:

Anonymous:
redirecting them to a random page would make for much more efficient code


Not a bad idea... maybe insert a promot to ask "is this the page you were expecting?" and if no is selected... just pick a new random page. Web 4.0 here we come!


Web 4.0...

So good we even skipped a number!



Re: The Student Registration System at WTF University

2006-07-26 16:05 • by Bus Raker
83432 in reply to 83413

Anonymous:
kipthegreat:
You misspelled "Eric" throughout the post.

No one is named "Enric."  That would be silly.


HAHA i almost shot water through my nose reading that one


Hmmm .. I wonder which one is 'our' Enric.


http://images.google.com/images?hl=en&q=enric&sa=N&tab=wi


Better yet, will the real Paula Bean please stand up?


http://images.google.com/images?svnum=10&hl=en&lr=&q=%22paula+bean%22


 

Re: The Student Registration System at WTF University

2006-07-26 16:07 • by random man
83433 in reply to 83429
I was wondering how many people would say that the picture looks like a
particular school. To me, it looks like the quad at UIUC.



Most definatally UIUC, I recognize the trees, and the building.  Mostly the trees.

Re: The Student Registration System at WTF University

2006-07-26 16:08 • by kipthegreat
83434 in reply to 83413
Anonymous:
kipthegreat:
You misspelled "Eric" throughout the post.

No one is named "Enric."  That would be silly.


HAHA i almost shot water through my nose reading that one


I try my best.

Re: The Student Registration System at WTF University

2006-07-26 16:09 • by Harsh
83435 in reply to 83420
Anonymous:


Is it just me, or does WTFU bear an uncanny resemblance to Harvard Yard? So let's see...it copies its CS slides from Princeton, its architecture from Harvard, and apparently its student registration system from Rutgers. Or for the latter, with equivalent plausibility, vice versa.


let's all be honest here. no one went to Harvard.  THAT is the quad at my community college

Re: The Student Registration System at WTF University

2006-07-26 16:10 • by pybs
Metaphone would probably be better than soundex, and a trie would be better than a lot of if/else statements.



No, wait.  Why not make the devs fix their typos?





Why the flush of 'academic' wtfs?  A  subtle admission that Alex has found the bottom of the barrel?



Re: The Student Registration System at WTF University

2006-07-26 16:13 • by xrT
Alex Papadimoulis:
Enric's job didn't seem to hard, either. All he had to do maintain the Student Registration System.

Why not just make Enric, or Eric or Ernic or Erinc, just pass these up to the name resolution logic page hoping it could point directly to the real person. Anyway, why not make him and several others create the SRS instead of maintaining it? Ok, let some maintain it while a new, much better app is in progress.

Unless of course the WTFU management has no idea what's going on inside their system and just "needed it to work".



Re: The Student Registration System at WTF University

2006-07-26 16:14 • by wintermyute
83438 in reply to 83433
I'm looking through some photos online now, and I'm fairly sure (although not convinced) that it's UIUC.  Good quad for a stock photo -- it's beautiful, especially in the summer.  The engineering campus was starting to look pretty good when I departed, too.

/misses UIUC

Re: The Student Registration System at WTF University

2006-07-26 16:20 • by xrT
83441 in reply to 83432
Bus Raker:

Anonymous:
kipthegreat:
You misspelled "Eric" throughout the post.

No one is named "Enric."  That would be silly.


HAHA i almost shot water through my nose reading that one


Hmmm .. I wonder which one is 'our' Enric.


http://images.google.com/images?hl=en&q=enric&sa=N&tab=wi


Better yet, will the real Paula Bean please stand up?


http://images.google.com/images?svnum=10&hl=en&lr=&q=%22paula+bean%22


 


I think she's the one...



Re: The Student Registration System at WTF University

2006-07-26 16:22 • by Thuktun
Alex Papadimoulis:
And really, who better to build and maintain a production application than those armed with only a few programming classes under their belt?


I've worked at a couple jobs where HR and the hiring managers followed this credo.

Re: The Student Registration System at WTF University

2006-07-26 16:30 • by Gud Speluhr

Alex,


For thuh luv ov G-d, wil u pleez instal an awtomatic spel-chekr trigerd by the Post butn?


In generul, I don't mynd thuh typos, butt (this week in partikular) it just maaks us reeders of TDWTF look iliterat to be mispelleeng thuh bashes uv thuh incompitans uv uthurs.


Thank ewe.

Re: The Student Registration System at WTF University

2006-07-26 16:37 • by ammoQ
83446 in reply to 83432

Re: The Student Registration System at WTF University

2006-07-26 16:43 • by Chernobyl
83448 in reply to 83404
ammoQ:
The "central servlet", done correctly, is not necessarily a WTF. They call it the front controller design pattern.


In fact, Apache Struts provides a front controller..... the bad thing is the implementation :D

Re: The Student Registration System at WTF University

2006-07-26 16:47 • by UIUC Alum
83450 in reply to 83438

I'm pretty sure that's not UIUC... the similarities are striking, but that architecture was very popular for universities for the better part of a century. Looking at some photos to remind myself of details, I think the placement of the buildings and little stuff like the exact style of the windows and chimneys don't match any pictures I can find.


I'd be interested to know what it was though.

Re: The Student Registration System at WTF University

2006-07-26 16:50 • by Shoe
83451 in reply to 83403

Anonymous:
I love linear search algorithms, nice and inefficient.  At my work there is a 2000+ line switch statement.....


What language/compiler do you use that implements a switch statement as a big linear if/else clause?


 

« PrevPage 1 | Page 2 | Page 3Next »

Add Comment