5 ms·
You could be Scott Meyers, write: ==================================================== 1992. Effective C++: 50 Specific Ways to Improve Your Programs and Desi
by belter 5y ago
You could be Scott Meyers, write:
====================================================
1992. Effective C++: 50 Specific Ways to Improve Your Programs and Designs.
1995. More Effective C++: 35 New Ways to Improve Your Programs and Designs.
1998. Effective C++, Second Edition: 50 Specific Ways to Improve Your Programs and Designs.
2001. Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library.
2005. Effective C++, Third Edition: 55 Specific Ways to Improve Your Programs and Designs.
2010. Overview of The New C++ (C++11)
2010. Effective C++ in an Embedded Environment
2014. Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14
====================================================
and you would not be able to understand modern C++ anymore...
"The Errata Evaluation Problem"
http://scottmeyers.blogspot.com/2018/09/the-errata-evaluation-problem.html http://scottmeyers.blogspot.com/2018/09/the-errata-evaluatio...
"As you may know, I retired from active involvement in C++ at the end of 2015, and in the ensuing two and a half years, I’ve forgotten enough details of the language that I am no longer able to properly evaluate bug reports regarding the technical aspects of my books. C++ is a large, intricate language with features that interact in complex and subtle ways, and I no longer trust myself to keep all the relevant facts in mind. As a result, all I can do is thank you for your bug report, because I no longer plan to update my books to incorporate technical corrections. Lacking the ability to fairly evaluate whether a bug report is valid, I think this is the only responsible course of action."
- rcurry 5y agoWow, what a response. Thank you for taking the time to reply and I think you did a far better job of summing up the challenge of being a “modern C++ programmer” than I could have dreamed of. I had no idea that Scott Meyers had bailed on the language, I’m honestly stunned to read that.
- galangalalgol 5y agoWhat is our option now? Rust? I love it but it is moving 5x the rate of c++. Static analysis may save us in this one. Good tools will tell you when you did something the "old" way. I'm not sure which part of our pipeline that is. Cppcheck, coverity or some clang checker probably.
- sseagull 5y agoI would love compiler options for enforcing better practices and prohibiting old style code (no using bare new/delete, stricter implicit casts, etc.) It wouldn’t fix everything but would go a long way. It’s a little bit of a peeve of mine that people just decided on new languages instead. But it is what it is, and I am probably not knowledgeable enough to really judge.
- ReactiveJelly 5y agoYou can think of C++17 as a new language which happens to be able to compile most C++14, C++11, and C++98 programs. The trouble is, if every new version is _technically_ its own new language, and if you have to break compatibility a little, why not just break a lot and fix everything? It's not like C++ was ever known for ABI stability anyway.
- sseagull 5y agoThe benefit is that ability to compile that old code, even if it takes some flags or marking it unsafe or whatever. There is a lot of old code that will never be rewritten but is still valuable, and I believe we will waste a lot of time just language-shifting entire ecosystems as new languages come and go. Look at python 2 to 3. There are still packages out there on python 2 that haven’t been migrated. And thats mostly the same language! (Note that my view is colored somewhat because I am a scientific programmer)
- alephu5 5y agoFor those that don't want to upgrade, why not use a pinned compiler? Everyone else does this with other languages, and overall I think the benefits outweigh the costs.
- Animats 5y agoRust? I love it but it is moving 5x the rate of C++. Static analysis may save us in this one. Yes. Rust is complicated, but the compiler is unusually good at telling you what you did wrong. Before it results in a crash. The underlying problem with C/C++ is that it still doesn't have a decent array story. " char * " is so 1970s. That can't be fixed without breaking so much. All you can do is try to paper over the problem with templates. But the mold always seeps through the wallpaper. Look at the example in the original posting that reads: FILE* fp = fopen(fname.c_str(), "r"); There it is, access to a raw pointer. Why is that even allowed any more? You ought to have to wrap "Unsafe" around it, or something.*
- zerr 5y agoTo clarify, Scott never was a practicing programmer, but a book writer who capitalized on quirky details of C++. As he explained, there is less need of such books nowadays due to the vast availability of resources on the web.
- rramadass 5y agoRight; direct to the point! I never understood people's fascination for Scott Meyers books (and i own a lot of C++ books). I felt that it sort of clued you in to the microdetails/dark corners but failed to teach actual big picture programming using those same features.
- belter 5y agoTo say Scott Meyers never was a practicing programmer but just someone who capitalized on quirky details of C++... Its kind of like, saying Donald Knuth was never a Computer Programmer, but some old faculty professor, with too much time on his hands, who capitalizes on puzzles and the natural complexity of computational theory. :-) It also does not address the core point of the post. At the moment for C++ the scene goes like this: - For every traditionally challenging feature/issue of C++ advocates will say it has already been fixed on the latest standard. So you always feel to be a proper C++ developer you have to be a "Modern C++ Developer" - You are supposed to know and use the modern features of the language but also use it according to what I call "the C++ on top of C++" called the "C++ Core Guidelines". https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines I printed them last week and its a 498 pages PDF. So of course you will have wait and rely on compilers/linters keeping up with it. https://docs.microsoft.com/en-us/cpp/code-quality/using-the-cpp-core-guidelines-checkers?view=msvc-160 https://docs.microsoft.com/en-us/cpp/code-quality/using-the-... They are not done yet, and we will soon move to the next phase in complexity in the daily life of a C++ developer. Having to troubleshoot the correct implementation of these automated checks by the different automated tools. Like many, I have to sometimes use C++ professionally. Every time I do, I feel like I am a candidate to the Darwin Awards.
- zerr 5y ago
- sseagull 5y agoWhat other endeavor could you take a break for a few years and then come back and still basically be at the same place where you left off? Pro golfer? Concert pianist? Physicist? Hell I forget what half my codebase does in a matter of weeks and have to go hunting through documentation.
- lenkite 5y agoThis means that Rust can also die once an "Effective Rust" is published and the author retires!
- jejones3141 5y agoYes, and everyone should watch Scott Meyers's awesome presentation at a D conference with the title "The Last Thing D Needs". (tl,dr version: The last thing D needs is someone like him, really to be so insanely convoluted, as C++ is, as to need someone like him.) Link to the video: https://www.youtube.com/watch?v=KAWA1DuvCnQ https://www.youtube.com/watch?v=KAWA1DuvCnQ
- squid_demon 5y agoI think it is pretty obvious that Mr. Meyers never actually programmed / used C++ himself for any real projects. That he would abandon the language after only 2.5 years of nonuse makes sense to me.