[ home / rules / faq ] [ overboard / sfw / alt ] [ leftypol / siberia / hobby / tech / edu / games / anime / music / draw / AKM ] [ meta / roulette ] [ cytube / git ] [ GET / ref / marx / booru / zine ]

/tech/ - Technology

"Technology reveals the active relation of man to nature" - Karl Marx
Password (For file deletion.)

Join our Matrix Chat <=> IRC: #leftypol on Rizon

File: 1669311214048.png (107.05 KB, 169x255, 1621459814328.png)


Does anyone have a site or video playlist to learn C++ from scratch?

I'm doing terribly in my course's Programming class because I'm completely lost and didn't do any assignments



Do the assignments, attend the lectures, go to tutoring.

This one is famous but I never did it:


Thank you i'm gonna check it out

Attending lectures now is only for minimal attendeance, I already skipped way too many classes and now I'm at a total loss


File: 1669323866388.pdf (4.11 MB, 197x255, posix_c.pdf)

learn c first


My course uses C++ in the programming class


C++ is like 75% C, only thing missing is the classes and objects


Also the w3schools tutorial is a good reference for continuing from C into C++


If you think it's just fancy C then it's pretty obvious that you have not seen any modern C++ codebases.


I linked an interview with Alan Kay in the Java thread, where he also said very insightful things about C++.
>SF To what do you attribute the long-term love of Smalltalk? There is a certain set of languages that I would assert people seem to love, not just use. I know many people who love C. I know very few who love C++, even though they may make their living on it.
>AK You have to be a different kind of person to love C++. It is a really interesting example of how a well-meant idea went wrong, because [C++ creator] Bjarne Stroustrup was not trying to do what he has been criticized for. His idea was that first, it might be useful if you did to C what Simula did to Algol, which is basically act as a preprocessor for a different kind of architectural template for programming. It was basically for super-good programmers who are supposed to subclass everything, including the storage allocator, before they did anything serious. The result, of course, was that most programmers did not subclass much. So the people I know who like C++ and have done good things in C++ have been serious iron-men who have basically taken it for what it is, which is a kind of macroprocessor. I grew up with macro systems in the early ’60s, and you have to do a lot of work to make them work for you—otherwise, they kill you.

Even with the standard library and boost, C++ is a thin layer over C, which can face much of the same issues if you're not careful, including int overflows, pointer corruption and memory leaks. projectM-SDL had stack corruption that only surfaced when linked against musl libc, until someone groveled through their codebase and eliminated enough string allocation leaks for it to work.


An interview from 2004 that is only tangentially related is not helping your case. People use modern C++ very differently from C. You can bitch about their common issues but that won't help OP.


What does C++11 fundamentally change about this dynamic?


OP is just gonna do the codecademy course probably


It's not just a "thin layer over C", people write C++ in a very different way than they write C. It requires a different approach. It's like saying C is just a thin layer over assembly.

Unique IPs: 7

[Return][Go to top] [Catalog] | [Home][Post a Reply]
Delete Post [ ]
[ home / rules / faq ] [ overboard / sfw / alt ] [ leftypol / siberia / hobby / tech / edu / games / anime / music / draw / AKM ] [ meta / roulette ] [ cytube / git ] [ GET / ref / marx / booru / zine ]