6 ms·
I've been a C developer (among other things) for about 20 years or so, but I've always described my C++ skills as being "in the C with objects" range, I might h
by pacaro 13y ago
I've been a C developer (among other things) for about 20 years or so, but I've always described my C++ skills as being "in the C with objects" range, I might have to change that to being "nearly in the C with objects" range.
- xerophtye 13y agoYep, with C and C++ , you can't really say you are an expert.
- hamidr 13y agoI wonder how's salary comparing to other programming languages?
- pjmlp 13y agoThat is the same with any language. An expert should not only know the language as defined by the standard or canonical implementation, but also the majority of implementations for the said language and consequent deviations from the official language semantics. Ergo, no one is actually a real expert in a specific language.
- xradionut 13y agoKay is an expert in Smalltalk and Wirth is an expert in Oberon. Stroustrup is an expert at nailing legs to a dog and calling it an octopus.
- pjmlp 13y ago> Kay is an expert in Smalltalk and Wirth is an expert in Oberon. No, they are experts on the implementations they created, not on the other ones that were created.
- eruditely 13y agoThat standard is too arbitrary and stringent.
- jgreen10 13y agoI didn't have any trouble with the C examples, but with C++ it just puzzles me why people would want to use a language like that in the first place. What does it buy you except bigger head aches?
- widdershins 13y agoIt buys you the speed of C (or close), with nice abstractions. And when you use destructors correctly, it can provide pretty much automatic memory management too, much safer than C. And it's pretty simple to avoid all these warts, just... you know don't write them. On the other hand I don't have any experience with old C++ codebases, which is where you're likely to find this hellish stuff.
- dman 13y agoRAII.
- jgreen10 13y agoYou don't need RAII if you don't have exceptions. Separating allocation and initialization is a good thing.
- dman 13y agoRAII is used for idiomatic cleanup from a function. In C the way to handle that would be to have a cleanup section in every function and then doing a goto to that which adds clutter to the function.