Ruby is lol Object Oriented. That's why you can do -5.abs. In Java you would have to do Math.abs(-5), but Ruby is lol Object Oriented so you don't have to do that shit.
Unless you want to do say 1012.log10. Sorry, seems you have to do Math.log10(1012) after all.
Name:
Anonymous2006-03-20 20:24
Oh, that brings up another pet peeve of mine: not only does the documentation suck, the python bunch don't comment much either. They expect you to read the code. Oh, wait, I don't have time for stupid minutiae in your code.
Talk about lack of discipline. They're no different from the perl and ruby twits in this regard. Maybe even worse.
Name:
Anonymous2006-03-21 7:11
>>41
I don't have enough experience working on others' Python code but the couple of projects I looked at have no documentation. I like how Python forces people to indent their code, but I still have to read all the crap if you have a function which accepts parameters like (a, pn, x, lol) and no docstring. It's a pity and not Python's fault though; in fact Python made documentation strings part of the language with the purpose of helping documentation.