Re: [dev] [OT] What's wrong with C++?

From: Paolo <lordkrandel_AT_gmail.com>
Date: Sat, 11 Sep 2010 02:40:02 -0700 (PDT)

>One of my maxims is that "everyone mistakenly thinks that the kind of
>programs that they write are the kind of programs everyone writes".

There are arguments against C++. Nothing more than that.
I'd use Python to check md5 hash of my downloads

$alias md5.="python -c \"import hashlib; print hashlib.md5(open('$1').read()).hexdigest()\"

Should I write md5.py, I could port it on M$Win and with Autohotkey I could make it
start when I middle-click a file on explorer and pop the result up in the tray,
with 3 more lines of code.

Of course this could suck less. Python and Autohotkey require interpreters and libraries.
Who cares. I could write it in C of course. But this is the first thing that comes to my
mind that gets the job done, sucks relatively, it's damn fast to write, easy to read and
it's good to me because I use those interpreters for a load of things.

>> Why program in C++ when you can do it in C, making the program simpler and better?
When you can't make the program simpler and better, or you need to do it faster
than you do in C, just write C++ or whatever.

This is just the place where people write about C, little overheads and simpler programs.

-------
Wyrmskull <lordkrandel_AT_gmail.com>
Received on Sat Sep 11 2010 - 11:40:02 CEST

This archive was generated by hypermail 2.2.0 : Sat Sep 11 2010 - 11:48:02 CEST