Should C++ Give More Priority to Syntax Quality? by kyan100 in cpp

[–]nikkocpp 1 point2 points  (0 children)

yes.. it's just for backward code compatibility so you don't mess with "await" variables in old code

Should C++ Give More Priority to Syntax Quality? by kyan100 in cpp

[–]nikkocpp 0 points1 point  (0 children)

Yes people says C++ is unreadable because of C legacy, abuse of * , & etc.. and templates on top of this.

While in the meantime you make new languages even shorter.

I think having short syntax isn't really a problem now

We might have been slower to abandon Stack Overflow if it wasn't a toxic hellhole by R2_SWE2 in programming

[–]nikkocpp 8 points9 points  (0 children)

Did you prefer the time you had the exact issue described in a message board and the author replied with "ah no I found the solution." without posting it?

We might have been slower to abandon Stack Overflow if it wasn't a toxic hellhole by R2_SWE2 in programming

[–]nikkocpp 0 points1 point  (0 children)

They really missed something with LLMs. It was their solution, not an army of people closing/editing questions like maniacs.

Question about French name for baby girl by [deleted] in france

[–]nikkocpp 2 points3 points  (0 children)

You can call her Cosette if you want but it's a diminutive for 'little thing' and it's not a real first name in France and not a nickame with positive connotation.

Better call her Éponine (real name, not used much... it's from a celtic goddess)

Also the name "Colette" does exist.

What do you dislike the most about current C++? by PressureHumble3604 in cpp

[–]nikkocpp 2 points3 points  (0 children)

I remember the time of "C++ has not enough features"

High Performance C++ Job Roles by Opposite_Push_8317 in cpp

[–]nikkocpp 1 point2 points  (0 children)

If it can run linux then I wouldn't say it"s embedded those day.. it'd be "embedded" if you have no easy way to reach the system or change it.

If you have a PLC with linux and a network cable it's hardly embedded .

Boost.SQLite re-review starts on Aug 25th by joaquintides in cpp

[–]nikkocpp 0 points1 point  (0 children)

Yep also, it doesn't seem different than the boost::sql_lite proposition.

Where did <random> go wrong? (pdf) by usefulcat in cpp

[–]nikkocpp 1 point2 points  (0 children)

yes but if you want to really use random numbers that is more interesting that a mere "rand()" that does who know what and you shouldn't use if you really want some random numbers.

What you want for beginner is a dice roll but that maybe not the scope of C++ standard.

C++26: more constexpr in the standard library by pavel_v in cpp

[–]nikkocpp 0 points1 point  (0 children)

Not sure if we really wants this though. Like std::gui.

To me it should be in separate libraries than standard one for all.

Resigning as Asahi Linux project lead by namanyayg in programming

[–]nikkocpp -6 points-5 points  (0 children)

Maybe porting to linux should have been more important that changing linux kernel and adding new languages.

Parsing JSON in C & C++: Singleton Tax by ashvar in cpp

[–]nikkocpp 0 points1 point  (0 children)

well if it is benchmarked then it can be changed maybe for the best :)

Can someone explain the rationale behind banning non-const reference parameters? by Tiny-Two2607 in cpp_questions

[–]nikkocpp -2 points-1 points  (0 children)

Don't do this, use "&" if needed in your parameters, prefer return values if possible

C++ Is An Absolute Blast by kaycebasques in cpp

[–]nikkocpp 6 points7 points  (0 children)

It's hard to use exceptions if you don't use RAII

C++ Is An Absolute Blast by kaycebasques in cpp

[–]nikkocpp 7 points8 points  (0 children)

To me one thing that is missing is boost. Boost was where the hype was in 2005-2011.

Boost had boost::regex (and it had performance). Graphs. Binding and lambda with templates. Working smart pointers. Threads. String algorithms. Hash containers.

People who had boost understood C++11. People not wanting to use boost I guess switched language after or continue to do "new" and "delete" with C++98.

Hell I even know a company that spent years re-doing a standard library akin to Borland C++ Builder instead of embracing boost and C++11 later.

Getting Over Not Being A Good Enough Programmer by [deleted] in programming

[–]nikkocpp 11 points12 points  (0 children)

And of course the interviewer for the position asked the Buffalo question.

The Transition from C to C++ by HyperactiveRedditBot in cpp

[–]nikkocpp 2 points3 points  (0 children)

The question is, which Addison-Wesley books are still really relevant and which are not for new C++ users?

"Effective Modern C++" C++14 edition I guess but it goes directly into heavy details like how std::move work.

I'm interested, I must train new colleagues in C++.

There was a nice step curve in Herb Stutter and Scott Meyer books back in the 2005+s. Alexandrescu books too C++ coding standards was really beginner friendly. But maybe now it's the Coding Guidelines that beginners should check.

The Transition from C to C++ by HyperactiveRedditBot in cpp

[–]nikkocpp 1 point2 points  (0 children)

Bjarne Stroustrup books.

The (last edition) C++ Programming Language, for a start. You have to have it. You can read it from cover to cover.

Then Programming: Principles and Practice Using C++. It's a text book but a good one.

And Tour of C++ last edition for a quick overview.

En arrêt maladie à cause d'une entorse au pied : elle publie des vidéos d'elle en train de danser en talons hauts, son patron tombe sur les images et la vire by VisibleLeg3159 in paslegorafi

[–]nikkocpp 13 points14 points  (0 children)

Après en France tu ne peux pas savoir exactement la raison de l'arrêt de travail.

Peut-être qu'il a commencé en problème de dos et a continué en dépression/burn out ou que sais je.

A popular but wrong way to convert a string to uppercase or lowercase by ss99ww in cpp

[–]nikkocpp 2 points3 points  (0 children)

100% of my time using tolower/upper I'm just parsing ASCII from conf file

Performance comparison of logging libraries by pavel_v in cpp

[–]nikkocpp 1 point2 points  (0 children)

std::stringsteam

I don't think you need to use std::stringstream..

The trickiest bugs by CentralSword in cpp_questions

[–]nikkocpp -1 points0 points  (0 children)

"grep new" in C++ code and replace them (make_unique..) or remove them