View Single Post
Old 09-01-2025, 03:07 AM   #4
nana77
Fanatic
nana77 ought to be getting tired of karma fortunes by now.nana77 ought to be getting tired of karma fortunes by now.nana77 ought to be getting tired of karma fortunes by now.nana77 ought to be getting tired of karma fortunes by now.nana77 ought to be getting tired of karma fortunes by now.nana77 ought to be getting tired of karma fortunes by now.nana77 ought to be getting tired of karma fortunes by now.nana77 ought to be getting tired of karma fortunes by now.nana77 ought to be getting tired of karma fortunes by now.nana77 ought to be getting tired of karma fortunes by now.nana77 ought to be getting tired of karma fortunes by now.
 
nana77's Avatar
 
Posts: 517
Karma: 860470
Join Date: May 2025
Device: Kobo Forma
Can I ask how did you learned it? I mean, if you was to get a job that requires a language you didn't used, was you to get it before a job interview? (As I don't think it would be feasible to learn those in 24 hours - despite some books mentions it LOL).

I'd tried the first 4 chapter of C++ by Bjarne Stroustrup, 4 times ( ), not sure if it counts.
Anyway, I'd liked his way to present it, also mentioning that the book doesn't has to be read linear.
There is this article that might be interesting - imho:
http://harmful.cat-v.org/software/c+...it_for_you_all
Quote:
Interviewer: Yes, but C++ is basically a sound language..
Stroustrup: You really believe that, don’t you? Have you ever sat down and worked on a C++ project? Here’s what happens: First, I’ve put in enough pitfalls to make sure that only the most trivial projects will work first time. Take operator overloading. At the end of the project, almost every module has it, usually, because guys feel they really should do it, as it was in their training course. The same operator then means something totally different in every module. Try pulling that lot together, when you have a hundred or so modules. And as for data hiding. God, I sometimes can’t help laughing when I hear about the problems companies have making their modules talk to each other. I think the word ‘synergistic’ was specially invented to twist the knife in a project manager’s ribs..
Interviewer: I have to say, I’m beginning to be quite appalled at all this. You say you did it to raise programmers' salaries? That’s obscene..
Stroustrup: Not really. Everyone has a choice. I didn’t expect the thing to get so much out of hand. Anyway, I basically succeeded. C++ is dying off now, but programmers still get high salaries - especially those poor devils who have to maintain all this crap. You do realise, it’s impossible to maintain a large C++ software module if you didn’t actually write it?
Interviewer: How come?
Stroustrup: You are out of touch, aren’t you? Remember the typedef?
Interviewer: Yes, of course..
Stroustrup: Remember how long it took to grope through the header files only to find that ‘RoofRaised’ was a double precision number? Well, imagine how long it takes to find all the implicit typedefs in all the Classes in a major project..
Interviewer: So how do you reckon you’ve succeeded?
Stroustrup: Remember the length of the average-sized ‘C’ project? About 6 months. Not nearly long enough for a guy with a wife and kids to earn enough to have a decent standard of living. Take the same project, design it in C++ and what do you get? I’ll tell you. One to two years. Isn’t that great? All that job security, just through one mistake of judgment. And another thing. The universities haven’t been teaching ‘C’ for such a long time, there’s now a shortage of decent ‘C’ programmers. Especially those who know anything about Unix systems programming. How many guys would know what to do with ‘malloc’, when they’ve used ‘new’ all these years - and never bothered to check the return code. In fact, most C++ programmers throw away their return codes. Whatever happened to good ol' ‘-1’? At least you knew you had an error, without bogging the thing down in all that ‘throw’ ‘catch’ ‘try’ stuff..
Interviewer: But, surely, inheritance does save a lot of time?
Stroustrup: Does it? Have you ever noticed the difference between a ‘C’ project plan, and a C++ project plan? The planning stage for a C++ project is three times as long. Precisely to make sure that everything which should be inherited is, and what shouldn’t isn’t. Then, they still get it wrong.. Whoever heard of memory leaks in a ‘C’ program? Now finding them is a major industry. Most companies give up, and send the product out, knowing it leaks like a sieve, simply to avoid the expense of tracking them all down..
I like the fact that on some - also very early - schools there are programming lessons, alongside maths.

Last edited by nana77; 09-01-2025 at 05:15 AM. Reason: the link is not https, otherwise it seems not to work
nana77 is offline   Reply With Quote