4 ms·
also it doesn't help that java is staggeringly inconsistent. Even something as simple as getting the size/length of something in the core Java API is inconsist
by mindstab 17y ago
also it doesn't help that java is staggeringly inconsistent. Even something as simple as getting the size/length of something in the core Java API is inconsistent:
array.length
string.length()
arrayList.size()
awesome. How could I not remember that. And how about number type conversions?
Interger.parseInt
Interget.toString
BigInteger.valueOf
oh yeah, common sense.
verses something like ruby
7.toString
"7".toInt
A sane and consistent API goes along way to not requiring you to memorizing a epic amounts of useless API and essentially going API spelunking.
Also with java it does seem that alot more of the coding is just calling more API to do things, plugging things together, rather than actual coding and problem solving.
- brianto2010 17y ago> ...verses something like ruby 7.toString "7".toInt do you mean... 7.to_s # Convert to string '7'.to_i # Convert to number
- mindstab 17y agoha yes, even better, my bad
- camccann 17y agoOn the bright side, at least you don't have to deal with a language that includes functions such as mysql_escape_string(), mysql_real_escape_string(), and mysql_no_really_i_mean_it_this_time_escape_string().