Today I witness a mouth fight between 2 groups of programmer at local 'geek bar' (Markham, ON) which I almost got myself into it! Lol just went to pickup some whiskeys and shit just blew out...
More like a lame of long age debate rather than a 'battle' (although we got some quite nasty body languages were going on!).
I have been using over 20 different programming language for different purposes. I like the most is C, OOC, Python, TASM, BASIC, Delphi, C# and recently Go.
So, what was the topic? Simple: Is C or C++ better at general programming purposes?
Which is better?
Hold on a sec. Aren't we all programmers? So we all gotta ask and act like a proper programmer!
Better at what? And why is it better?
C was developed by Dennis Ritche and innovated by Ken Thompson between the years of 1969 - 1973. It is a structured imperative and procedural language; or we shorten that as system programming language. it's a non-linear language that allow variables to flow freely. C was used to develop UNIX system; world first proper OS.
Here is the reason why I still adore C:
C advantages:
+run-time: sized array of stack (therefore faster runtime!),
+Freedom of array uses. Hoora for who used languages before OOP generation.
+Safe static initialization = crash compiling avoidable.
+No extra riff raff library. Look at C++...
+Shorter code calls.
for example we use free(x); or free(x_array);
while C++ you gotta:
int *x = new int;
int *x_array = new int[10];
delete x;
delete[] x;
lol...
OR>>
C get line:
get_line(is)
C++:
is->get_next_line()
C secret weapons:
- Multi different language implementation >> hacker's best friend (most malwares are in C or ASM).
- Standard ABI >> Every programmer's best friend.
Still love C++? Check out OOC! Oh yeah.
O la la.
VicariousE
What's your opinion of Perl?
BTW, wasn't assembly once called machine code?
Should've taken that crap course in HS, but I thought I could get the books on C pretty cheap since they were working on C+ at the time....
Wurfel-Waffles
Perl? An old camel that left walking alone on the desert? Hehe, Perl is better than PHP and Python is better than both of them. Perl's runtime is super quick since it designed for small processing things. I believe Perl is still in place although I see lesser people use it now. All you see is either PHP, Ruby or Python.
The reason why they stop using Perl because of its code calls (officially we call syntax length; but who care). In PHP you can import array straight after you called the array functions. In python? all you gotta do is... import something! Perl? Call array (use some_thing) first then after that you can import variable. A pl file contain more codes than PHP and double the amount of codes in a py file! That's how silly is Perl!
Assembly isn't machine code actually. It is a level higher than machine code (binary 1/0). All you gotta do is... to know English. Push, mov, loop, call, add, pop, lea, leave, ret (return). The hard part is logic. Remeber in any ASM, once you get/print/loop element... you gotta return it. Just like C codes. Secure coding lol.
C books and manual are extremely cheap around. Look fore bookstores that sell stuff that older than 90s.