MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingbydoing/comments/1qe29x/cdc2zrp/?context=3
r/programmingbydoing • u/[deleted]
[deleted] — view deleted post
4 comments sorted by
2
The "canonical" way to do it is
if ( name.compareTo("Carswell") < 0 ) blah if ( name.compareTo("Jones") < 0 && name.compareTo("Carswell") >= 0 ) blah
You don't care WHAT the number is, just if it's less than zero or not.
0 u/[deleted] Nov 11 '13 [deleted] — view deleted comment 2 u/TheChance Nov 11 '13 StackOverflow is your friend and already contains answers to most basic programming questions. I'm not chastising you for asking here; ask wherever! Just be aware of SO. It will make your life much easier.Edit: bad browser macro is bad. 2 u/holyteach Nov 11 '13 Stack Overflow is good for experienced programmers. For students I've seen a lot of abominable code that came from SO. 2 u/holyteach Nov 11 '13 Yeah.if ( name.equalsIgnoreCase("outside") )
0
[deleted] — view deleted comment
2 u/TheChance Nov 11 '13 StackOverflow is your friend and already contains answers to most basic programming questions. I'm not chastising you for asking here; ask wherever! Just be aware of SO. It will make your life much easier.Edit: bad browser macro is bad. 2 u/holyteach Nov 11 '13 Stack Overflow is good for experienced programmers. For students I've seen a lot of abominable code that came from SO. 2 u/holyteach Nov 11 '13 Yeah.if ( name.equalsIgnoreCase("outside") )
StackOverflow is your friend and already contains answers to most basic programming questions. I'm not chastising you for asking here; ask wherever! Just be aware of SO. It will make your life much easier.
Edit: bad browser macro is bad.
2 u/holyteach Nov 11 '13 Stack Overflow is good for experienced programmers. For students I've seen a lot of abominable code that came from SO.
Stack Overflow is good for experienced programmers. For students I've seen a lot of abominable code that came from SO.
Yeah.
if ( name.equalsIgnoreCase("outside") )
2
u/holyteach Nov 11 '13
The "canonical" way to do it is
You don't care WHAT the number is, just if it's less than zero or not.