Huh? What part felt hackyish to you? In my opinion python is quite the opposite, as the extensive standard library offers a solution to so many problems.
i dont have a problem why my code doesnt compile. I dont even HAVE a software TO compile
I'm going to hazard a guess and assume that you are on Winblows. Get this nifty thing called "mingw".
Don't actually use MingW, learn how to use proper tools like Msys2, WSL, Visual Studio or VS+Clang.
lol @ proper tools
I see these threads everywhere and they are basically all the same. Full of obscure and personal experiences because of lack of the ability to make up a comprehensive answer.
People will fight over each other and it's all just frustrating to read from a perspective like yours. I've been there. Lots of conflicting answers and off topic conversations.
Don't worry too much about it.
The most standard way of learning C++ on Windows is by downloading the Visual Studio 2017 Community Edition.
The most common way of learning is by making a Console Application.
Here is a nice video tutorial series I used when learning C++ around 10 years ago. It's pretty great. The Visual Studio version in the videos is an older version but the code is the same.
If you want a bit more of of a read then you have http://www.cplusplus.com/
I wouldn't worry that much about which language to learn first. Eventually you'll branch out and maybe learn C# and other languages, but the "programming" part is still the same.
You missed my point entirely, instead of spending time on the things that actually matter in AI, you're worrying too much about the language you're using. If your only goal is to learn C++, than you can disregard what I said. But if your ultimate and more important goal is AI than I strongly suggest you work with a language that already has wide-appeal for the subject area. I don't know why you are trying to force yourself to learn C++ when there's simply no need to for your interests.
Claim "lack of ability" for the reason of lack of "comprehensive answer" and then go on to recommend Visual Studio and "New Project -> Console Application"
Don't listen to this guy. Get a real *nix environment and a copy of this: Stroustrup
I can use your post to prove my points ;)
Anyone with the half of the minimum brain required to learn C++ would also know how to use Google by now.
lol, be snarky all you like, I know very well who is who.
You do realize that using Google, while helpful, doesn't provide the personalized responses that a thread like this does, right?
Learning C++ inevitably means you will learn C, because C is a subset of C++. However, learning C before Learning C++ is not the same as just learning the syntax. C++ and C have different design paradigms (C is not OOP, for starters). However, much of the C standard library has a C++ equivalent/improvement meant to optimize things or avoid memory leaks. This post is kind of good at explaining the difference between C++ and "C with Classes"
https://www.reddit.com/r/learnprogramming/comments/2gnqkc/c_what_is_not_c_with_classes/ckkx49b/
You have to be retarded to think that "knowing some Lua" warrants personalized responses.
Well I don't see how it doesn't. It seems like you're the only person here who minds. An easy solution to that by the way: Close the thread and stop reading it instead of insulting people.
You're really underestimating the background someone needs to learn from stroustrup and these minimalistic envs. It's better to put effort in learning actual concepts than fighting with MingW or *nix.
Here's a really good (but long) talk about how C++ should be taught/learned:
tldr: you don't need to learn the "C" parts of C++ to learn C++.
https://youtu.be/YnWhqhNdYyk
learning C first will teach you the wrong habits in C++, so I'd argue if anything you should learn C++ first so you can learn to write idiomatic C++, and it won't be too hard to learn to write idiomatic C afterwards
That's wrong. Have you ever written either before?
It's not wrong though. Many people use C++ like C. If you do that, why use C++ at all? Just use C.
Just because you learned C first doesn't mean that you have to go all Indian and stick to C ways when you learn C++.
Heck, what am I fighting here? Go ahead and try to learn C++ without mastering C first - you only have your own ass to fall upon on.
please don't assume that people have never programmed before just because they have a different opinion than you about something that's highly subjective
you seem to be assuming that everyone else is an idiot and you know better than them, which would be fine you actually knew better, but you don't
so please do yourself a favor and think about how to fix your disproportionately sized ego before posting again
Yeah, okay, sorry.
One question though: How do you know what I know? I have been programming for 15 years now.
still doesnt mean you know everything better
I didn't claim to know everything better but I am damn-well sure that if there is one thing that I'm better than anyone in this thread it would be C++, lol
Programmers, especially new ones, who switch to new languages tend to bring idioms with them that don't apply. I've seen many people learning C++ coming from a Java background, and they use new and delete all the time and complain about manual memory management. When in truth if you follow modern C++ idioms you never need to use new and delete. Obviously memory management in C++ isn't always just allocating memory and forgetting about it (it often is though), but following idioms makes it so much easier.
The same can happen going from C to C++ (and probably the other way to some extent) or any other languages. I've had to deal with Python code that read like C. It was disgusting.
im not planning to learn C first and then C++, this will just take ages..
my college doesnt teach C++ anymore and we start from Java immediately, wondered why since C is pretty much considered the base to start
To add:
C++ Primer, 5th Edition - one of the best books for learning C++. It starts with C++11. It uses idiomatic modern C++ practices throughout, has good practice exercises, and avoids encouraging or fostering some of the bad habits I've seen in other tutorials.
Effective Modern C++ - a good next step after starting to understand the language more, as it covers a number of important but difficult points like move semantics and such, while also covering nice features to have around
C++ 17 STL Cookbook - it's Packt so it's not perfect but you can probably use "alternate sources" to find a PDF somewhere. It helps show off some of the new features to C++17 though, and some of those are really powerful. Same with C++14.
Downside is that depending where you work you might not get to use new C++ semantics.
All I know is that you lack the ability to concede ground in an argument, and that your later apology is, well, a bit late.
Your jab at students who don't do well with C++ is rather unfair: its a pain to deal with them showing up and mucking about in your codebase, absolutely, but their lack of knowledge/experience is not usually their fault. C++ has some of the most dreadful teaching practices and coursework around it. Instead of using your position to spit down on others and toss insults, maybe use that lofty position to raise others up by helping people out. In turn, that can only improve your own skills in the end.
Sorry, I forgot that you people live in the first-world and think that absolutely nothing is your fault. Just wait for your professors to cook up a course so that you can C++ too.
My anger is justified.
Sorry, you need to Log In to post a reply to this thread.