Live data from Hacker News

LearnCPP: Website devoted to teaching you how to program in C++

learncpp.com

51–60 of 145 posts

Re: LearnCPP: Website devoted to teaching you how to program in C++

#51

I wish there was a good place to learn “the other parts” of C++, the build systems, using static analyzers, testing, dependency management, etc. I’m thinking something like MIT’s “missing semester” course which teaches the boots on the ground part of software like how to use Git. https://missing.csail.mit.edu/ Maybe these resources exist for C++ and I just never found them. I think a lot of “modern” languages get thi…

I feel the same way. I remember in one of my failed attempts to learn C++ I had been at it for a few weeks, and was excited to start my own little project in it. I needed to use a piece of software on GitHub and I just could not figure out how to get everything to build. It was a terrible experience that put me off the language.

Pulling in dependencies in C++ when you come from something like Python or Ruby is the absolute worst. I just recently fought through a big mess of this, the gist of it is ExternalProject[1]

1 https://cmake.org/cmake/help/latest/module/ExternalProject.h...

Re: LearnCPP: Website devoted to teaching you how to program in C++

#52
post #26

The cookie popup is truly annoying though. There's no way that this website is in any form of compliance with GDPR...

> There's no way that this website is in any form of compliance with GDPR...

Doesnt seem like it needs to be

Re: LearnCPP: Website devoted to teaching you how to program in C++

#53
post #40

As a newbie into programming, I get pulled all the time by people to learn my first compiled language either in C++ or Rust. Every time I ask even the most innocent question in any forum it becomes a shitshow, and I can see, I'm late to the party here in HN.

I'm just a little further down the road than you are and the best course seems to be to learn a little C++ first because it will help inform why Rust works as it does. Then when you try Rust, if you hate it, you've still got C++.

I used to agree with this, but I would actually now suggest doing the inverse.

Rust will beat you over the head with a way of thinking that carries nicely back to C++, and the tooling (Cargo, etc) is more comparable to what someone coming from another language ecosystem would know. Smaller things like Rust's decent support for functional programming seems to click with everyone I know who's dabbling from the JS world.

Re: LearnCPP: Website devoted to teaching you how to program in C++

#55
post #47
post #40

Earlier quoted context omitted.

I'm just a little further down the road than you are and the best course seems to be to learn a little C++ first because it will help inform why Rust works as it does. Then when you try Rust, if you hate it, you've still got C++.

We'll be waiting for you on the Zig side :>

I like zig, the simplicity, and explicitness especially, the meta programming is really cool, but having now experienced the borrow-checker, I don't think I'd ever want to program without one. Rust isn't simple, and on occasion, it isn't sufficiently explicit for me, but it has a borrow-checker.

For those reasons I'm very excited about Austral. The borrows, linear types, and the notion that anything that isn't explicit is wrong, all appeal to me.

Re: LearnCPP: Website devoted to teaching you how to program in C++

#56
I am always grateful that people spent their time to create resources like this. This looks good and I would recommend it to someone who isn't a total newbie.

I also find it very interesting to look at the pedagogy of these sites. In the case of this site, it starts with a lot of history and computing. This is common for books, but asking a new user to wade through so much preamble before any 'meat' is asking a lot. In the first part where code is shown/explained:

https://www.learncpp.com/cpp-tutorial/statements-and-the-str...

is a lot of upfront jargon for a newbie to process. ('pre-processor directive')

It does do a good job of showing how to set up visual studio. However these days, a htttp://repl.it is surely a MUCH easier way to get up and running.

I wrote a very small ultra-beginner guide for a young relative to learn C. It gets right into what C code looks like, makes connections to the math they have seen in school, and tries to hold back terms until they are really needed (omitting details where needed)

It isn't polished designed for widespread use, but I think for the truest beginners its better than other guides I found on the web.

https://avsteele.com/C_Programming/

Re: LearnCPP: Website devoted to teaching you how to program in C++

#57
post #29

[flagged]

Sorry, but Rust is doomed to be forever solely used for meme startups and nth rewriting of basic UNIX utilities.

Similarly, sorry, but C++ is doomed to be forever solely used for (a) maintaining codebases that noone wants to maintain but doesn't have a choice, and (b) organising cpp conferences to maintain self-confidence of a crowd of programmers whose skill set is becoming more and more outdated.

/s /s

Re: LearnCPP: Website devoted to teaching you how to program in C++

#58
post #47

Earlier quoted context omitted.

We'll be waiting for you on the Zig side :>

I like zig, the simplicity, and explicitness especially, the meta programming is really cool, but having now experienced the borrow-checker, I don't think I'd ever want to program without one. Rust isn't simple, and on occasion, it isn't sufficiently explicit for me, but it has a borrow-checker. For those reasons I'm very excited about Austral. The borrows, linear types, and the notion that anything that isn't explic…

Nothing wrong with that, besides I think the people that only stick with one language are rare these days. It was more humor than anything, and I agree with you. I spent the last year or year and a half or so using Rust quite a bit more than I'd originally anticipated, and it's been cool in a sudoku way that tests my chin scratching abilities from time to time..

Re: LearnCPP: Website devoted to teaching you how to program in C++

#59
post #42

Earlier quoted context omitted.

I haven't done any C++ since 2015ish but your link seems incredibly outdated. Sure you'll learn some C++ syntax, but you'll learn the C++ from 20 years ago, not the modern C++ with smart pointers and all that stuff which is basically turning it into a new language.

Is it a bad idea to learn from Stroustrup's 'Principles'?

as someone that has done a lot of commercial C++ teaching in his time, i would say that this is one to avoid for a beginning programmer. stroustrup is not, imho, one of the worlds great teachers, and i would not recommend C++ as a first programming language. more experienced programmers should go with TC++PL.

Re: LearnCPP: Website devoted to teaching you how to program in C++

#60

C++ is huge and growing every 3? years (C++17, 20, 23...) is it really possible to master or can you only ever get to the point of being good enough to be dangerous?

a lot of c++ is there to support library writers worried about efficiency, rather than application programmers concerned with good-enough, maintainable code if. like most people, you are in the latter category, you can write pretty good code without worrying about all the bells & whistles of the later releases.
Post reply on HN