Go back
Geek Request for info on JSP, Servlets, Beans

Geek Request for info on JSP, Servlets, Beans

General

Russ
RHP Code Monkey

RHP HQ

Joined
21 Feb 01
Moves
2450
Clock
15 Nov 04
Vote Up
Vote Down

Originally posted by Edwardipov
Hmmmmmmm. Point taken - to a point 😉 not sure about indentation confusing things, it's never been a problem for me - each to their own though, as you so rightly say...
Sorry, I am not saying indentation is confusing. I am saying that when code is indented without braces, it is easy to miss the fact that additional braces are needed - because the indentation implies the structure of the code, and that example was trying to illustrate how the intended result can be very different from what you get. Not making much sense here, am I? Why don't these forums support indentation! Russ! Fix it!

-Russ

Ragnorak
For RHP addons...

tinyurl.com/yssp6g

Joined
16 Mar 04
Moves
15013
Clock
15 Nov 04
1 edit
Vote Up
Vote Down

Originally posted by Russ

if (postOnSaturdayNight)
if (supplyInformationOnJSP)
GeekStatus="FullGeek";
else
GeekStatus="ProvisionalGeek";

Hehe,

I got to agree with Ruzz here.

When I was looking through your code, I could only think of one word. And to quote a friend of mine looking through my code in university...
'durty, durty, DURTAY, durtydurtydurty!!!'

EDIT: All is forgiven, when I click on reply and quote, I saw your indentation which is chucked out within the forums. Russ! Fix it! 😉

; D

E
mid-table mediocrity

east london hellhole

Joined
05 Mar 04
Moves
10528
Clock
15 Nov 04
Vote Up
Vote Down

Originally posted by Crowley
Nazi...

And btw. surely the use of an enum would have been better than a String variable for GeekStatus? 😛

No geek points for me, posting on a Monday morning...
enums will be incorporated into release 2 build 3, scheduled third quarter 2005.

C
Not Aleister

Control room

Joined
17 Apr 02
Moves
91813
Clock
15 Nov 04
Vote Up
Vote Down

Originally posted by Edwardipov
enums will be incorporated into release 2 build 3, scheduled third quarter 2005.
Yup, can't use them static finals either so enums are the way to go.
Can we get the source? We can do it as an opensource project to make sure it's efficient and secure...

Just remember your indentation 😛

Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More.