d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Spelled Numbers To Digits? Java
Prev12
Add Reply New Topic New Poll
Member
Posts: 576
Joined: Mar 5 2012
Gold: 0.00
Warn: 10%
Aug 12 2012 03:25am
am i the only one who found this hilarious? i can't imagine why you would require replacing words with numbers but damn. that's why i quit programming work.
Member
Posts: 4,605
Joined: Sep 15 2011
Gold: 9,464.00
Aug 12 2012 12:50pm
Quote (girl0ngirl @ Aug 12 2012 02:25am)
am i the only one who found this hilarious? i can't imagine why you would require replacing words with numbers but damn. that's why i quit programming work.

being bad at programming is a great reason to quit.
Member
Posts: 789
Joined: Jan 21 2006
Gold: 22.00
Aug 12 2012 02:12pm
Quote (Furio @ Aug 10 2012 06:25am)
Since I couldn't find a lib for this, I wrote the damn thing out. It's not working for this exact reason. I was taught that it was only correct to use "and" in numbers when referring to the decimal. So one hundred and thirty-nine would be 100.39. Apparently this isn't universal as I have some people using several ands in one number. I also have fuckers not using hyphens in numbers like twenty-five. What a waste of time this turned out to be.


If it's not working, then you didn't have enough error checking code and error messages to help the user. It isn't the users, it's the programmer.

Using two ands in one sentence? Throw and error and them know that and means period. Have a help command. There are many other solutions. Sounds like lazy programming to me.

Member
Posts: 13,630
Joined: Dec 4 2009
Gold: 0.00
Aug 13 2012 01:23am
Quote (koa_wolf @ Aug 12 2012 01:12pm)
If it's not working, then you didn't have enough error checking code and error messages to help the user. It isn't the users, it's the programmer.

Using two ands in one sentence? Throw and error and them know that and means period. Have a help command. There are many other solutions. Sounds like lazy programming to me.




This post was edited by BreakPoint on Aug 13 2012 01:23am
Go Back To Programming & Development Topic List
Prev12
Add Reply New Topic New Poll