14 ms·
I learnt C++ in 2018 and have no regrets
- hellofunk 8y ago> My quest for relearning C++ started in November 2018. That’s great! I’ve been using it since 2013 and still haven’t learned it!
- deleted 8y ago[deleted]
- stinos 8y agoSpot on really. I've been actively using it for more than a decade, including a good portion of the darker things, and still won't claim 'I learned it'. I did 'learn how to use it for the particular purpose of some projects' is what I'd say. Or in other words: I'm fairly good at C++ but from time to time there's still Q&A on reddit or stackoverflow that makes me go like 'whaaaaaat?'
- jf- 8y agoAs an occasional and reluctant user of C++, this is my comment of the week.
- nallerooth 8y agoMy thought exactly. I know a few people who have been using C++ for several years who go "Oh, you can do that?" every now and then. I guess it's a blend of freedom of design and programmers being a little stuck in their ways of how a certain problem is solved.
- blub 8y agoWhat language can one say that they fully master? I've been using Python since 2008-ish on and off for various scripting tasks and small tools, I can't say that I've "learned" it. They keep adding new stuff, some things I forgot, others I never needed. I've been using C++ professionally since ~2006 and for similar reasons I won't say that I master it either. Metaprogramming is a clear weak point for me, but OTOH I find the whole exercise pointless and unpleasant. Unless one wants to be on the standards body, it's not really worth trying to learn C++ (or any other language) at 100% IMO.
- chooseaname 8y ago> What language can one say that they fully master? And does it really matter if you don't? No, not at all.
- imglorp 8y agoIt's worth pointing out one measure of complexity: the Stroustrup book (4th ed) is 1376 pages, and that was 2013. Since then there's been how many layers more on top? As a contrast, the description of Common Lisp syntax fits on a sticky note, but the library and semantics spec take about the same number of pages to describe a similar amount of functionality. The two extremes represent different locations on the syntax-vs-library complexity tradeoff continuum.
- TeMPOraL 8y ago> The two extremes represent different locations on the syntax-vs-library complexity tradeoff continuum. I'd say it's a syntax x language semantics x libraries triangle. Common Lisp may have trivial syntax, but there are some hidden gems of complexity in the language semantics level. To this day I don't really understand eval-when, and I've been using Common Lisp for the past 9 years.
- imglorp 8y agoYeah that sounds about right. It's a 3 space.
- kace91 8y ago>What language can one say that they fully master? Incidentally, after working with node for a couple years near really knowledgeable coworkers, it's been the first time in my life as a developer that I feel I have a near complete understanding of the language I'm using. Granted, most of that feeling probably comes from the small standard library (which is the root of several important issues, as we all know), and the feeling adds nothing to your life as a developer except for a vague sense of comfort, but it's still nice.
- goatlover 8y ago
- Balero 8y agoI think I read somewhere Bjarne Stroustrup rated himself 7/10 at C++.
- mindcrime 8y agoI started learning C++ about 1993 or so, and I feel like I know less about it now than I did in 2001. Of course I haven't written a line of C++ in anger since about 2003, so there's been ~15 years of changes that I haven't kept up with. Part of me wants to dive in and really re-learn modern C++, but finding time is always the challenge. Just for context, I was such a C++ bigot at one time that my car's license plate read C++HACKR and my personal website was on the cpphacker.org domain. But somehow I drifted into doing more Java and wound up mostly leaving the C++ world. Edit: heck, this conversation triggered such a pang of nostalgia that I just re-registered cpphacker.org. Maybe I'll go back to having a personal website there. I've been thinking hard about setting up a new personal site and ditching Facebook anyway...
- zwieback 8y agoYeah, I've been using it since 1992 and am now thinking of "relearning" it as well, having drifted off into C# and Python. It'll be interesting to see how things that seem natural in those languages feel in modern C++.
- nambit 8y agoYup. That's when I stopped reading.
- rhodysurf 8y agoI use it every day at work and there are days where I leave thinking its the best language on the planet and others where it makes me throw my laptop through a wall. Wouldn't have it any other way haha
- craigsmansion 8y agoWell, after learning C++ there wouldn't be any regrets left to have.
- CodeSheikh 8y agoUnless your job demanded it I can't think of a compelling reason for a Node guy to learn C++ as their go to choice of OO language. Why not Java? Even Python is a good gateway to OO for folks coming straight form Node background.
- bitwize 8y agoI can think of one: C++ is Node's extension language (being the language V8 is implemented in). If you want Node to do things not already built into it or talk to a library that doesn't have a package available for it already, you have to use C++.
- bluGill 8y agoc++ is not an OO language. C++ is a tool to get things done in the real world using whatever paradigm makes sense for your problem. Sometimes that is OO, sometimes not. C++ is very messy, but for the most part you can ignore the messy things.
- mempko 8y agoFor the most part, the world is messy ;-)
- crimsonalucard 8y agoEverything in the world is made out of a single unit: Atoms. Complexity and messiness arise from different compositions of Atoms. I feel we should build our programs the same way. Bottom up from a small set of simple primitives. Not top down like C++.
- Koshkin 8y agoThere are three sets of primitives I can recommend for you to get some experience with: the Turing machine; the Lambda Calculus; the Lisp primitives (CONS, CAR, CDR).
- russley 8y ago
- porpoisely 8y agoWhat's there to regret? For purely edification purposes, there isn't a better OOP language ( though it encompasses other paradigms as well and isn't purely OOP ) since it doesn't have training wheels. You could hurt yourself with it but it certainly allows you to explore and learn. Also, you could "learn" it in a year, but it takes you a lifetime to master it.
- tw1010 8y agoOpportunity cost.
- seanmcdirmid 8y agoC++ is not very canonical OOP. And by that I don’t just mean it’s multi paradigm nature, but it’s realization of OOP features. Using C++ teaches you mostly about using C++ and doesn’t really transfer across the paradigm.
- vasilipupkin 8y agoI think that statement would have to be classified as inaccurate. using C++ teaches you mostly about general purpose programming and it's pretty easy to go from C++ to python to Java to bash, etc.
- inetknght 8y agoI would say learning C++ didn't quite teach me what I needed to go to bash. Learning bash became easy when I learned pipelines and the GNU coreutils. Now I wish I could take what I'd learned from GNU coreutils and apply that to C++.
- lmm 8y agoNonsense. C++'s template system behaves unlike any other language (things like SFINAE and the techniques that use it do not transfer), C++-style RAII is relatively unusual, I don't think any other language requires the programmer to think about virtual versus non-virtual inheritance, the C-derived sequence point rules are obscure and much looser than most languages' evaluation rules, the exception-safety rules are unique to C++, most languages don't make you track the minutiae of a dozen different integer types with inconsistent promotion rules, textual macros are abominable, C++ has more obscure control flow constructs than most languages... meanwhile the language has no standard support for true sum types, garbage collection, unit testing, poor library tooling, a limited type system... which means you don't learn the general-purpose techniques that rely on these things. If all you know is C++ you will be able to produce a limited amount of working code in a handful of C++-like languages, sure - but even in Python or Java or Bash you'll produce very unidiomatic code if you write in C++ style. If you tried to work in e.g. Smalltalk or Erlang or even OCaml you'd really struggle. It is not a good way to learn general-purpose programming, because the language is hugely complicated and most of the complications are C++-specific.
- anuragsoni 8y ago"To round up, C++ does not dictate about its tooling, which basically gives lot of choices and flexibility. But at the same time it is making it complex for beginners to come in to projects and start projects with it." This was a big problem for me when I first started using C++. I don't remember it being too bad when I was just working on small projects and things I wanted to do at school. The problems started when moving past the "1-person" projects. Want to contribute to other projects? Chances are they all have very different build setups and configurations when it comes to building, testing, dependency management. That adds some friction even before you start taking a look at the actual code-base. I understand that a lot of these problems can occur for languages as old as C++, but I wish the tooling was a little more opinionated and worked a little better at guiding newcomers into doing things in a nicer manner.
- bluGill 8y agoC++ is commonly used for large complex projects. The problem with opinions is eventually you come across something that the opinion will not allow. For a small project an opinionated build system makes things easier and you essentially never run across something that can't work. For very large projects that is not true and so you end up fighting opinions in some place.
- anuragsoni 8y agoI completely agree, hence the reason I only talked about the experience for new comers. Maybe tools like conan[1], vcpkg[2] etc will help improve the situation for newcomers. [1] https://conan.io/ https://conan.io/ [2] https://github.com/Microsoft/vcpkg https://github.com/Microsoft/vcpkg
- islon 8y agoHaving opinions != removing choices One can have an opinionated, canonical build system and still allow unorthodox things.
- drharby 8y agoBut having an 'unorthodox' (read: not aligned with the opinion) design pattern then comes at a cost. I favor agnostic build systems specifically to permit the fair democratization of design patterns and to embrace a more earnest diversity of thought.
- pietromenna 8y agogreat article, I learned a lot from it: 1. Current setup and where to go learning (the books) 2. It also had nightmares in colleague with C++, but yes, C++11 fixed a lot of it. 3. Nice links to the other tooling. So, author, thank you for your post!
- vnorilo 8y agoMany here talk about the complexity of C++. I concede it's a huge language, and not a beautiful one. However, I wouldn't call it that difficult. Being a systems language, once you understand (roughly, sans optimization finesse) how the machine code is generated it starts making a lot of sense. Maybe C++ is even educational because so many nuts and bolts are showing. Personally I'd recommend some systems programming to everyone, but if thats not on your radar at all, maybe don't bother. C is also a fine choice.
- mempko 8y agoMany programming languages try to have perfect symmetry and because of that, fail to be useful in the real world. C++ has constructs such as template specialization that allow symmetry breaking. Symmetry breaking is what makes nature beautiful and therefore I would argue C++ IS a beautiful language. C++ is complex because the world is complex. Just as a mountain is shaped by time and the elements, C++ is also shaped by decades of experience and change. This is what also makes Bjarne one of the greatest language designers. Where most designers would have gone off making new languages, Bjarne has been polishing the C++ stone the whole time.
- crimsonalucard 8y agoThe complexity of the world arises from simplicity. All complex things in the universe in the end are just atoms. Is it better to build a complex programming language that handles real world complexity? Or is it better to build a simple programming language where complexity is an emergent property than in turn use that to handle real world complexity. One issue of building a complex programming language is that if you build the language to handle one type of complexity, it becomes hard mutate or shift that programming language to handle a different type of complexity. This is essentially the issue with whats happening with the newer versions of C++.
- TeMPOraL 8y agoI've learned 15+ years ago, and I stopped paying attention around ~2010, which is just before significant changes were made. Even though I read up on some features and concepts from C++11 and C++14, I feel so disconnected from what's going on as if what I learned was a completely different language. Can anyone recommend any source for someone with lots of pre-C++11 experience to get up to speed with current capabilities, and the current community? EDIT: Thanks everyone for the suggestions! EDIT2: I skimmed Anthony Calandra's list, and most of the new features seem indeed just cute, but not fundamental changes. Still, I want to reiterate the worry I expressed downthread: how much did the underlying semantics, the idioms, and the general way of thinking change?
- mroche 8y agoStill learning myself, but this seemed really good when I came across it a year or so ago: https://github.com/AnthonyCalandra/modern-cpp-features/blob/master/README.md https://github.com/AnthonyCalandra/modern-cpp-features/blob/...
- blub 8y agoI like the Modern C++ Programming Cookbook, since you have small recipes demonstrating the new features.
- linuxlizard 8y agoI've been in the same boat--relearning C++ after using C++98(!) for a long time. My first go-to book was _A Tour of C++_ , 2e by Stroustrup. Also _Effective Modern C++_ by Scott Meyers (of _Effective C++_ fame). Other books I've been reading: _C++ 17 The Complete Guide_ by Josuttis _C++ 17 in Detail_ by Filipek Lots of good blogs out there. Also the CPP Podcast. http://cppcast.com/ http://cppcast.com/ There are also a lot of great blogs covering new features. Also
- TeMPOraL 8y agoI used to swear by Meyers in my old C++ days; his Effective C++ and More Effective C++ were my favorite software books. But recently, in the course of catching up with modern C++, I got the impression his ideas aren't considered good in the current community anymore. Can anyone comment on that?
- seanhandley 8y ago> Within C++ is a smaller, simpler, safer language struggling to get out.” - Bjarne Stroustrup Ah, yes. I think they called it "C".
- frutiger 8y agoI'm having some difficulty imagining that C is safer than C++.
- kgabis 8y agoWell, it is. Every f*up you can have in C, you can also have in C++.
- mhh__ 8y agoOnly if you write unidiomatic (Read crap) C++. In modern C++ it is very much possible to write fast and safe code, but the tradeoff is now put into the amount of stuff the developer needs to know to be productive (Which in my experience isn't as bad as people like to go on about on here/reddit, even if it still pretty shoddy)
- smallstepforman 8y ago> Only if you write unidiomatic (Read crap) C++. Thats a bit unfair. A recent headache for my C++ project was mixing audio buffers. The buffers are cached to avoid repeated reads, the channel count differs, the sample rate can differ, the output rate can differ, and mixing has gain limiters applied etc. Lots of buffers, lots of copying, lots of boundary cases (eg. sample #1 doesnt start until t=100ms, sample #2 ends before sample #1, etc). I struggled for days getting all the buffer copying right (raw pointers to many interrim buffers). You may think that my problems were due to using "crap c++ in unidiomatic way". However, I challenge you to find a better, and as efficient method to accomplish the same goal. The end MixAudio() function looks like plain old C code from the early 80's, but how else can you tackle this problem in a modern way?
- dliebeskind 8y agoC++ is also the language to know if you’re going to be writing EOS smart contracts.
- thosakwe 8y agoI also used 2018 to learn and get proficient in C++. Honestly, I don’t really like it. The only real reason for that is that using smart pointers is verbose, but I don’t want to do manual memory management where it’s possible to instead rely on RAII. Ironically enough, though, C++ is probably the second of two languages I’d consider my “go to.”
- mattnewport 8y agoIf you're using smart pointers enough to be bothered by verbosity I think it's somewhat likely you're overusing heap allocation and / or not making enough use of standard containers. Explicitly dealing with heap allocation via smart pointers should be a tool you only reach for occasionally in most code. Heap memory management should usually be wrapped in another library class, either a standard container or a custom type and most non library code should generally be using stack allocation.
- pavanky 8y agoYou dont go from beginner to proficient in any language in 1 year, much less C++.
- thosakwe 8y agoWell, I guess "proficient" in relation to someone who had started with the language 1 year ago. There is definitely still a lot left to learn. I don't intend to claim mastery, though.
- itissid 8y ago> Because you just can’t start reading the source code of a code base from top to bottom. This is obviously not what one should do. Read the test cases first is what I do. It makes for much quicker iteration.
- aaaaaaaaaab 8y ago>Cmd+F >"Rust" >3 results T-h-r-e-e? How is this even possible?
- ixtli 8y ago> I feel that [a programming language is] just a tool to instruct a machine to do something. I can't stress enough how true this is.
- kgwxd 8y agoMachine code is just a tool to instruct a machine how to do something. Programming languages are for human-to-compiler and human-to-human communications.
- oscargrouch 8y agoWhile you are right, i see a lot of enginners making bad decisions for the right tools to use for a giving problem, based on psychology and emotional reasoning. Things might even work in the end, but you can end with a weak project that wont scale or will crumble when faced with the destructive nature of time. I know its a controversial topic, but i think a little bit of zen-budhism training of the mind can make wonders in making those sort of decisions, where the unbalanced parts of our psychology will eventually show up and cripple what could be a great thing. I am an IT enginner, but i practice a lot of self-mind vigilance to understand my decision making process, to avoid making the most confortable decisions and going for the write answer, no matter how painful and expensive it may sound. To give an example of this, i remember for instance CouchDB vs. MongoDB, where the concepts were layout in CouchDB, but it was done in Erlang, so as soon someone did almost the same thing in a language that suits a database development well like C++, the tool sky rocket and reach all of its potential. The language i see this happening the most for instance is Python. Where you have great concepts and great enginners but where a lot of them shouldn't be using Python for that particular goaç. Again here i can use Mercurial as an example of a great tool in a bad fitting language (for the given tool, as Python might be a great fit for other use cases).
- viach 8y agoOne can't just learn C++ in one year, imho.
- criddell 8y agoI think you could. I've been working primarily in C++ since 1995 and I think it's easier than ever to pick up enough to be productive.
- retro64 8y agoI've been coding heavily in C++ for now over 2 decades, and when I interview someone I typically can get a pretty decent picture of within a general 3 - 5 year range of how long they've been coding based on the various details they gave when answering the questions about the language. And yes, of course someone could have 10 years experience, or the same experience for 10 years and never grow, but in general I found I am pretty spot on. So I agree, 1 year doesn’t even begin to cut it. You need more than book knowledge, you need the experience of watching your masterpiece crumble under its own weight (sometimes several times) or have the joy of hunting some obscure bug because you failed to recognize the trap you had set for yourself. I certainly wouldn't want to scare anyone off from C++, because personally I find the empowerment is worth the pain. It just takes time to learn what to avoid.
- smileypete 8y ago>you need the experience of watching your masterpiece crumble under its own weight (sometimes several times) or have the joy of hunting some obscure bug because you failed to recognize the trap you had set for yourself. Very good point, but that's by no means unique to C++. Maybe that level of experience ;) in a related language, plus a good working knowledge of C++ would be acceptable?
- gpderetta 8y agoIt is well known that you can teach yourself C++ in 21 days: https://abstrusegoose.com/249 https://abstrusegoose.com/249
- kristofferc 8y ago
- sidcool 8y agoI am learning Rust currently and it's fascinating. The concepts are very different and forces me to thing differently. I hope that Rust soon supports things like kernel programming, asynchronous networking, GUI programming etc. that C++ is so good at.
- zanny 8y agoRust already supports kernel programming, that is what Redox is. You can do async networking today on stable with tokio and futures or on nightly with futures-await and prototype async/await syntax. You can do GUI programming with gtk-rs. Its pretty unlikely anyone is going to take on the monumental project of "write a software GUI kitchen sink suite like Qt, but in Rust" any time soon. Not because you can't, but because such projects are by their nature at minimum millions of LOCs.
- deleted 8y ago[deleted]
- mempko 8y agoI like that the author mentions the STL explicitly. The STL is one of the most beautiful libraries ever written. There are few language libraries that are as clear and well designed as the STL. Alex Stepanov is completely underrated outside the C++ community.
- pkolaczk 8y agoSome wouldn't agree: http://wiki.c2.com/?StlSucks http://wiki.c2.com/?StlSucks Personally, I find Scala standard library much easier to work with and at the same time much more flexible and powerful.
- lorenzhs 8y agoThat is pre-C++11 and woefully out of date. To pick out the first two "defects" listed: std::auto_ptr was deprecated in C++11 and removed in C++17, and std::unordered_map was introduced in C++11.
- TillE 8y agoIt's kind of frustrating how much vocal (often outraged!) C++ criticism comes from people who haven't seriously used the language in years, if ever. It's just noise. Like a few days ago I saw a bunch of complaints about how C++14 and beyond were adding so much stuff and it's just bloat or overcomplication. No! Using that stuff makes my life so much easier, whereas C++98 was indeed a miserable nightmare.
- nayuki 8y agoIt's too bad he made no mention of the concept of undefined behavior in C++. When coming from any language with consistent semantics, UB is a nasty surprise that makes you seriously question how correct your code is.
- CraftThatBlock 8y agoI'm in the exact same boat as you. I've been mostly writing JavaScript for the past 2-3 (with some Go, and more recently Flutter). I've started to learn some C++ a few days ago, mostly go get into lower level code and into game development (Unreal), and I've found it to be pretty great! I've been going through A Tour Of C++ and it's a great primer on the whole language. I also read the Learn X In Y Minutes on C++ to get a feel of it before diving in. What are some high quality, small C++ projects I could play around with and read the source code? I'd like to explore it in more practical use next.
- Kaveren 8y ago> "I have to pay: First and main concern being that the standard study materials for reading about C++ are not free." I don't think this is more than a minor issue. If you can't afford it, the book is very easy to obtain online for free, either through piracy or a paid / free trial Safari Books Online subscription. If you felt so inclined, you could pay for the book after making money with the C++ it taught you.
- gpderetta 8y agoThe last draft is always available for free from. The standard committee website. The document is definitely not a good way to learn the language.
- usgroup 8y agoSimilar experience here ... it took no time to learn c++ because it’s not the pre C11 language. You can make whole applications without touching memory management with RAII patterns; and C++ APIs are usually not the Java OOP monstrosities everyone hates. Operator overloading is just so damn useful . You can make very elegant APIs in C++ as a result.
- setquk 8y agoThere's plenty of years left to get to hate it (I learned C++ in 1998 and have kept relatively up to date)
- ryandrake 8y agoHe has no regrets, but does have a basic_regret<char, regret_traits<charT>, allocator<charT>> Welcome! As someone who’s been using C++ pretty much continuously for two decades, I think there has never been a better time to learn it. We finally have compiler competition that has resulted in robust support for the language’s great features.
- deleted 8y ago[deleted]
- ausjke 8y agowhat about the old and tested makefile with autotools? I still think they got the job done pretty well and I'm using them.
- raydev 8y agoPerhaps this is an appopriate place to ask: What is the best C++ IDE on the Mac? In particular, fully project-aware autocomplete is a baseline feature. Does emacs or Vim offer an autocomplete plugin that matches the power of IntelliJ, or even Xcode? Is CLion worth the money? Other paid alternatives?
- umanwizard 8y agoAnything with a Cquery plugin. (I personally use VS Code, but cquery is the important part)
- improv32 8y agoIf you're comfortable with emacs, irony + rtags does pretty much all the IDE-type things I need it to. You can autoconfigure rtags based on your build system (supports basically all of them). you get variable type hints, function arg hints, contextual autocomplete (including template stuff), jump to definition, find references, you can fuzzy find and jump to methods/identifiers/symbols across your project, compiler warnings highlighted inline, it's a pretty good setup. I use the doom-emacs distribution which has it all configured and ready to go, im sure spacemacs also has a good setup
- anuragsoni 8y agoI haven't used CLion so can't comment on that, but I have tried a few other alternatives. QT Creator [1] has always worked very well for me. If you want to stick with vim there is YouCompleteMe[2]. You can also try using any editor that supports the LanguageServer protocol [3] and then use a C++ language server to provide cross references, hierarchies, completion and more. Microsoft has a language server plugin for vscode [4], there is also CCLS [5], cquery [6] or clangd [7] which can be made to work with both vim and emacs. [1] https://www.qt.io/download https://www.qt.io/download [2] https://valloric.github.io/YouCompleteMe/ https://valloric.github.io/YouCompleteMe/ [3] https://langserver.org/ https://langserver.org/ [4] https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools https://marketplace.visualstudio.com/items?itemName=ms-vscod... [5] https://github.com/MaskRay/ccls https://github.com/MaskRay/ccls [6] https://github.com/cquery-project/cquery https://github.com/cquery-project/cquery [7] https://clang.llvm.org/extra/clangd.html https://clang.llvm.org/extra/clangd.html
- hannofcart 8y agoOne does not just "learn" C++.
- chubot 8y agolike let me read the source code of a open source software today To me, this is the most powerful reason to learn C and C++. If you know these languages, you can read the codebases of all the things you use and contribute to them (every browser in existence, every Unix in existence, most user space tools, many GUI tools, many low-level libraries that mobile apps use). Even if everybody stops writing C/C++ today, you'll still be using software written in C/C++ for decades. And of course, that's a joke -- there's still at least 10x more C/C++ being written every day in the world than any other language that compiles to native code (Rust, Go, etc.)
- timvisee 8y agoI wonder what you'd think about Rust.
- blt 8y ago> started learning C++ in November 2018 > blog post in January 2019 > "learnt" in past tense
- johnvega 8y ago"C++ is hanging around for a long time ( 34 years till date according to Wikipedia). It is powering some of the world’s oldest and stable piece of software written over all these years." Autodesk AutoCAD (36+ years old) CAD software is one of those piece of software that is still widely used today and very likely used to design physical products many people use today from your toothbrush, office chairs, towering skyscraper buildings to parts of a jet plane you've flown in from your last vacation.
- tessant 8y agomight want to work on language classes next
- master_yoda_1 8y agoWhy you think anybody regret learning c++?
- barbecue_sauce 8y agoI'll take this opportunity to plug Bo Qian's C++ videos on youtube if anybody is interested in learning modern C++. They are to the point, code-focused, don't waste time on basic syntax, and cover a lot of ground (lvalues and rvalues, move semantics, inheritance types, etc.). Only issue is they are only current to C++11.
- pknerd 8y agoI studied C++ during university days and after that I never got a chance to learn it seriously due to my job commitments as a web developer. I did work on C# but not C++ professionally. I always admired my friends who could write good C or C++ code. So many times I wish to learn it seriously but these new editors for web development and Python made me lazy enough that I wish to have some environment and way to write and compile C programs easily. I heard modern C++ is way better than what it was in early 2000. I want to give it a try, hopefully, I will be able to learn and implement Pointers properly.
- Barrin92 8y agoI had the same problem and I decided on start building a few Qt apps for command line tools I had made. This worked quite well for me because it wasn't too complex or large, you tend to write in a 'modern' style (although the downside here is I guess that qt is also somewhat idiosyncratic) and you get a build tools so you don't need to worry much about that.
- pknerd 8y agoI forgot to mention that I did work on Both QT 3.x in the last decade. I liked it because I was working on VB at that time and was dying to find something similar for Linux(Was exploring RH those days). It did not help me to improve C++ though.
- Skunkleton 8y agoI have spent my whole career writing C or C++. While it is true that I write code at a different layer of the stack than is common for languages like C#, I wouldn't say it is particularly admirable. There are intermittent cool things that I get to write in C (data structures, protocol stacks, etc.), but for the most part it is just plumbing. There are lots of cool things that people get to implement higher up the stack too.
- pknerd 8y agoWill you recommend some source? I mostly have a Web Developer and Python background
- dana321 8y agoI learned it this year, with cmake. Then i moved onto go. I tried rust, but they keep changing it and breaking modules i need to use!
- pornel 8y agoRust in stable releases hasn't made any serious breaking changes since 1.0 in 2015. There were tiny breakages in edge cases caused by more or less bug fixes, in line from breakages you might get when upgrading GCC to a newer version. If you find your dependencies are breaking: • Keep a lockfile (Cargo.lock) committed in your project, so that your deps won't suddenly get updated to some newer, potentially buggy/incompatible version. • If you're updating dependencies, also update the compiler. It's possible that new versions of dependencies require latest version of compiler.
- newdaynewthrow 8y agoHi, I guess I'm a little out of the loop... Why would someone generally have regrets? What language "should" be learned in 2018 instead of something like C++ (which it sounds like is becoming obsolete)