Hacker News new | ask | show | jobs
by steveklabnik 6030 days ago
I can't actually find a link to the study in the 5 minutes before work, so I guess we'll have to throw that out.

It's not that you'd make errors in typing, of course your compiler will check those. It's that code you don't write is bug-free, and every line you do write has a non-zero chance of containing a logic (not syntax) error...

But anyway, it's very easy to write 3x LOC in Java. If you don't write much smaller Python code, you don't know how to code in Python. I can't think of a single task (mind you, I'm a Rubyist, so I very well could be wrong) that would take less in Java, and even ones with identical LOC, you still have things like

    BufferedReader myFile = new BufferedReader(new FileReader(argFilename));
vs

    myFile = open(argFilename)
1 comments

our example is an api not a language issue though. Theoretically you could create an equivalent api to your open(filename) example. There is no reason you can't and thus the API vs Language point my post was actually about.