After many headaches trying to get Numba to work with Python, I decided to just go out and learn C++. This was my main resource and can highly recommend.
LearnCPP: Website devoted to teaching you how to program in C++
11–20 of 145 posts
Re: LearnCPP: Website devoted to teaching you how to program in C++
#12Re: LearnCPP: Website devoted to teaching you how to program in C++
#13As a Java dev who learned C++ at university the hate towards C++ is misplaced. C++ is a no thrills language which lets you have freedom but freedom to also shoot yourself in the foot 100+n ways, but this gives you a good foundation as a developer IMHO. Every time I think about garbage collection in Java, I can appreciate that I am not having to write code to destruct an object or worry about passing references incorr…
Re: LearnCPP: Website devoted to teaching you how to program in C++
#14[flagged]
There are many places where C/C++ (and many other non-Rust languages) are still used, and where it would not be feasible at this time to fully rewrite them in rust.
Modern resources like the OP posted should be encouraged, as they actively teach about proper use of the language, and foot-guns to avoid (e.g. don't use c-style strings + strcpy, use smart pointers, etc).
Re: LearnCPP: Website devoted to teaching you how to program in C++
#15As a Java dev who learned C++ at university the hate towards C++ is misplaced. C++ is a no thrills language which lets you have freedom but freedom to also shoot yourself in the foot 100+n ways, but this gives you a good foundation as a developer IMHO. Every time I think about garbage collection in Java, I can appreciate that I am not having to write code to destruct an object or worry about passing references incorr…
https://stackoverflow.com/q/147130/1593077
and my particular answer:
https://stackoverflow.com/a/48046118/1593077
in essence, with Modern C++, it is relatively easy to just not produce garbage which needs to be collected :-)
Re: LearnCPP: Website devoted to teaching you how to program in C++
#16[flagged]
Why do you think C++ is like smoking?
https://www.zdnet.com/article/programming-languages-its-time...
Re: LearnCPP: Website devoted to teaching you how to program in C++
#17As a Java dev who learned C++ at university the hate towards C++ is misplaced. C++ is a no thrills language which lets you have freedom but freedom to also shoot yourself in the foot 100+n ways, but this gives you a good foundation as a developer IMHO. Every time I think about garbage collection in Java, I can appreciate that I am not having to write code to destruct an object or worry about passing references incorr…
I haven't used Java since school so I'm curious about modern Java. Do you need to worry about circular references preventing garbage collection or are there easy tools to detect such cases?
Re: LearnCPP: Website devoted to teaching you how to program in C++
#18As a Java dev who learned C++ at university the hate towards C++ is misplaced. C++ is a no thrills language which lets you have freedom but freedom to also shoot yourself in the foot 100+n ways, but this gives you a good foundation as a developer IMHO. Every time I think about garbage collection in Java, I can appreciate that I am not having to write code to destruct an object or worry about passing references incorr…
I haven't used Java since school so I'm curious about modern Java. Do you need to worry about circular references preventing garbage collection or are there easy tools to detect such cases?
Re: LearnCPP: Website devoted to teaching you how to program in C++
#19As 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.
Re: LearnCPP: Website devoted to teaching you how to program in C++
#20> When an initializer is provided after an equals sign, this is called copy
> initialization. Copy initialization was inherited from the C language.
>
> int width = 5; // copy initialization of value 5 into variable width
>
That's not quite right. Consider the following program:
#include
struct A {
A (const A& other) : x{other.x} { std::cout
The constructor used here will not be the copy constructor. There will be just a single construction, of a1, and it will be the "int ctor", i.e. `A(int x_)`.See it on GodBolt : https://godbolt.org/z/eT8soWMxE
I don't know if this characterizes other parts of LearnCPP, haven't gone through it myself.