News for hackers. Stuff that matters.
Re:A repository of modern C++ code samples curated by the co... by SCHiM on Tuesday April 07, 2015 @08:15AM (#9333380)
Would be useful if it grows and gets a easily search able index.

I can't count the number of times I couldn't be bothered to write boiler-plate C++ to eg. strip a string [0].

I know that if I google the question I'll get a stackoverflow question with the answer. A dedicated site would be an improvement in my opinion. Mostly because of over-zealous mods on SO that confuse the reality of SO with their personal vision of what is good for SO.

[0] http://stackoverflow.com/questions/216823/whats-the-best-way... There we go.

Re:A repository of modern C++ code samples curated by the co... by sftrabbit on Tuesday April 07, 2015 @08:40AM (#9333505)
My biggest concern with Googling for these things is that the Stack Overflow answers range from bad practices, to good C++03 practices, to good C++11/14 practices. It's difficult to know exactly what the state-of-the-art is.
Re:A repository of modern C++ code samples curated by the co... by a3n on Tuesday April 07, 2015 @08:55AM (#9333586)
Keep in mind that many shops are explicitly at C++03, or some other less-than-current state of the art, on purpose.
Re:A repository of modern C++ code samples curated by the co... by sftrabbit on Tuesday April 07, 2015 @08:58AM (#9333608)
Very true, and the site will be a little less useful for those people. I am also planning to add a note to every sample stating which standard it depends on, which should make this problem a bit better.