by fleitz · 13y ago · 0 comments
A good developer with no knowledge of IEEE754 might do something like this:
float hourlyWage = hourlyWageTextbox.text.floatValue();
While a hacker with intricate knowledge of IEEE754 might insist that everyone do the following: string hourlyWage[] = hourlyWageTextbox.text.split('.')
int hourlyWage = hourlyWage[0].to_int * 100 + hourlyWage[1].to_int
It's essential to get rid of all these hackers who just slow down the dev process with extra unnecessary code. After all a quick unit test will show that there's no benefit from all the extra work of storing currency values as cents.The rabbit hole goes deep. Be careful when you think you've reached the end of it.
A "developer" is usually someone who just codes for money, isn't into it, and therefore probably sloppy.