Linked by MOS6510 on Thu 10th Jan 2013 23:25 UTC
General Development "For years I've tried my damnedest to get away from C. Too simple, too many details to manage, too old and crufty, too low level. I've had intense and torrid love affairs with Java, C++, and Erlang. I've built things I'm proud of with all of them, and yet each has broken my heart. They've made promises they couldn't keep, created cultures that focus on the wrong things, and made devastating tradeoffs that eventually make you suffer painfully. And I keep crawling back to C."
Thread beginning with comment 548303
To read all comments associated with this story, please click here.
Sorry, C++ is a PITA.
by sergio on Fri 11th Jan 2013 02:37 UTC
sergio
Member since:
2005-07-06

C++ is too big for low level stuff and too complicated for higher level stuff. It's almost impossible to master the language... really really hard (at least for stupid people like me... and We're the 99% xD).

I think the smart way to go is plain old C for system level stuff and Java or C# for user level stuff.

Android is the perfect example of this kind of mixture. Profit.

Reply Score: 3

RE: Sorry, C++ is a PITA.
by kwan_e on Fri 11th Jan 2013 02:54 in reply to "Sorry, C++ is a PITA."
kwan_e Member since:
2007-02-18

C++ is too big for low level stuff


Why are you using all the bells and whistles of C++ for the low level stuff?

and too complicated for higher level stuff.


Qt seems to be doing all right.

It's almost impossible to master the language... really really hard (at least for stupid people like me... and We're the 99% xD).


Mastering the entire language is only really necessary if you're creating libraries for wide consumption. The difficult C++ features are there to achieve generalization while still retaining static pre-compile type checking.

Reply Parent Score: 6

RE[2]: Sorry, C++ is a PITA.
by radix on Fri 11th Jan 2013 10:54 in reply to "RE: Sorry, C++ is a PITA."
radix Member since:
2012-02-07

Mastering the entire language is also necessary when working in teams or dealing with code somebody else wrote (so this affects perhaps 90% of programmers). Some people think it's necessary to use every feature language provides.

Reply Parent Score: 2

RE: Sorry, C++ is a PITA.
by Soulbender on Fri 11th Jan 2013 04:59 in reply to "Sorry, C++ is a PITA."
Soulbender Member since:
2005-08-18

Because Java never results in over-engineering and complexity....

Reply Parent Score: 5

RE[2]: Sorry, C++ is a PITA.
by lucas_maximus on Fri 11th Jan 2013 13:28 in reply to "RE: Sorry, C++ is a PITA."
lucas_maximus Member since:
2009-08-18

It depends whether it has the word "Enterprise" attached to it.

Reply Parent Score: 5

RE[2]: Sorry, C++ is a PITA.
by sergio on Fri 11th Jan 2013 19:55 in reply to "RE: Sorry, C++ is a PITA."
sergio Member since:
2005-07-06

Even the stupidest people, like myself, can read Java code and get a general idea of what it does. It's a very simple and beautiful language to read.

Over engineering is not a language problem. You can over-engenier in assembler if you want.

The problem with C++ is the language complexity itself, It's difficult with or without over engineering.

Reply Parent Score: 2

RE: Sorry, C++ is a PITA.
by moondevil on Fri 11th Jan 2013 07:44 in reply to "Sorry, C++ is a PITA."
moondevil Member since:
2005-07-08

I am more than happy to never touched C again since 2001.

Even clang and gcc are now done in C++.

Reply Parent Score: 3

RE[2]: Sorry, C++ is a PITA.
by ebasconp on Fri 11th Jan 2013 21:24 in reply to "RE: Sorry, C++ is a PITA."
ebasconp Member since:
2006-05-09

Maybe you did not put a .c extension to your code; but C++ is an extension of C; so, you need to know C concepts (pointers, arrays, etc, pointers to functions, struts, mallocs, etc.)
.

Reply Parent Score: 2

RE: Sorry, C++ is a PITA.
by l3v1 on Fri 11th Jan 2013 13:43 in reply to "Sorry, C++ is a PITA."
l3v1 Member since:
2005-07-06

C++ is too big for low level stuff and too complicated for higher level stuff.


Uhmm, no. It's just a language. Bloatness and overcomplication is caused by the coder doing all the wrong things.

All in all, while I'm not old myself, I still I'm fairly "weird" in not trusting coders who don't know c and/or c++. If they know, but choose to use something else for a specific task/project, and they have an explainable reason why, that's OK with me. Not knowing it, or not using it for reasons like the quote, is a no-go.

Reply Parent Score: 5

RE[2]: Sorry, C++ is a PITA.
by lucas_maximus on Mon 14th Jan 2013 11:12 in reply to "RE: Sorry, C++ is a PITA."
lucas_maximus Member since:
2009-08-18

I don't know C++ or C. I always find it infuriating that this attitude still exists that you must know C/C++ to be "good".

Reply Parent Score: 2