On Apr 23, 2009, at 11:47 PM, Erik de Castro Lopo wrote:

André Pang wrote:

On Apr 23, 2009, at 7:01 PM, Erik de Castro Lopo wrote:

My rules for scripting style tasks are something along the lines of:

- Less than 20 lines, bash is ok.
- Less than 100 lines, python, maybe.
- Otherwise Ocaml or Haskell.

- More than 1,000,000 lines, C++.

Are you kidding?

AFAIAC, C and C++ are for low level code or tasks which are highly
performance critical. Wherever that is not the case they are simply
not worth the bother.

It was more of a play on two things. First, my personal opinion is that if you have a million lines of _anything_, that's pretty insane. Break it up into completely separate programs that are independent of each other, even if you present it as a single application to the user. Second, if it is a million lines of code, the monstrosity tends to be written in C++ (or Java). I doubt you'd ever see a Haskell programmer write a single program that's a million lines of code.

And for everything between 20-100 lines, there's always zsh ;).

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
coders mailing list
coders@slug.org.au
http://lists.slug.org.au/listinfo/coders

Reply via email to