This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

I'm pissed off!

 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just a rant, but damn I'm having to work with extremely poor Jsp files!!!
You guys wont believe, my Jsp file has 1300+ lines of java code written in it inside scriplets!!!
And, since its a Jsp file, I cant trace the code like I normally do using eclipse...
How am I supposed to understand this code and implement new features!?? God Help Me.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

How am I supposed to understand this code and implement new features!??


By reading comments inside the scriptlet Don't tell me they didn't left you any comment ? I understand your pain, I've gone through it too a few years ago.
 
v ray
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no , no comments , I'm looking at the User Interface, looking at the backend code and figuring it all out piece by piece!
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[v ray]: You guys wont believe, my Jsp file has 1300+ lines of java code written in it inside scriplets!!!

Oh, we may very well believe it. Try to look at the good side: your company is employing you to clean up the mess left by the previous developer. Yes, maybe they made bad design choices, or maybe (just maybe) they were encouraged to make those bad design choices by shortsighted management. Either way, now you're being employed to fix the situation. If the original solution had been perfect, you probably wouldn't have your current job at all. So suck it up and make the best you can of the situation.

Having said that, yes - I agree that JSP files with excessive scriptlets are a sign of the devil. Responsible/competent programmers should minimize this as much as possible. However: maybe you should view poor code from other programmers as a sign of opportunity, rather than a threat. Crappy programs by someone else == something to be fixed later, maybe by you.
[ July 04, 2007: Message edited by: Jim Yingst ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Crappy programs by someone else == something to be fixed later, maybe by you.


Computing needs optimism, and patience
 
v ray
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, its not as simple as being patient and cleaning up someone's mess so that I have truly done some great service to the company...there is a deadline in which I have to get the job done, so obviously the frustration comes when I need days to figure out what is going on in the code...
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stop crying here and go and do your job there you will meet your deadline
 
author
Posts: 23912
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by v ray:
Well, its not as simple as being patient and cleaning up someone's mess so that I have truly done some great service to the company...there is a deadline in which I have to get the job done, so obviously the frustration comes when I need days to figure out what is going on in the code...



Unfortunately, this is probably what caused the problem in the first place. I bet that your predecessor wanted to clean up the mess to, but due to deadlines, he/she just added to it. And if management doesn't realize the problem, and budget time to clean it up, I'll bet you'll do the same.

Henry
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ha! The guy next to me inherited one that prints to about 75 pages of Java in a jsp. One method, directly translated from the original COBOL. Hope that makes you feel better.
 
v ray
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Henry Wong:


Unfortunately, this is probably what caused the problem in the first place. I bet that your predecessor wanted to clean up the mess to, but due to deadlines, he/she just added to it. And if management doesn't realize the problem, and budget time to clean it up, I'll bet you'll do the same.

Henry



Well, I am supposed to implement 2 new features in 5 days, how can anyone expect me to clean up this mess?
Also, this project wasn't done by our company, it was subcontracted and this is the result .
 
Sheriff
Posts: 67618
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

it was subcontracted



That explains SO much.
 
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which IDE are you using? May be it already supports debugging.
There are some JSP debug tools. But I didn't find a free one. You can try these links (free trial)
1.Eclipse plugin
2.JspDebug
 
v ray
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not so proud to say that I added another scriptlet and implemented what I need to do, because for someone reason, the action class doesn't do anything...
 
reply
    Bookmark Topic Watch Topic
  • New Topic