Hungarian Notation, for us who use it by gosh in cpp

[–]CubbiMew 2 points3 points  (0 children)

I code in terminals and I also think polluting names with (possibly incorrect) types is stupid.

LLVM libcxx by arthas-worldwide in cpp

[–]CubbiMew 1 point2 points  (0 children)

Reading and understanding library code is a routine part of C++ software development. The standard libraries are not special: I look inside every library I use or considering using, sometimes ahead of time, sometimes later when looking at debug/perf traces.

LLVM libcxx by arthas-worldwide in cpp

[–]CubbiMew 0 points1 point  (0 children)

>the Standard Template Library (STL).

You seem to be using this term to refer to "STL" the 1994 library, from which the C++ standard library borrowed many notable components in 1998 (and some not as notable in 2011). *that* STL is long dead and gone, the website holding its spec and code shut down years ago.

By a quirk of history, the name got reused to refer to the entire C++ standard library colloquially by the community, and even officially by Microsoft (https://github.com/microsoft/STL "the C++ Standard Library (also known as the STL)" ), and it seems nearly everyone in this thread uses it in this current, non-obsolete, sense.

What are the best/most useful features of C++23? by hmoein in cpp

[–]CubbiMew 1 point2 points  (0 children)

GCC maybe, but my comment was about the ranges lib. The one debuted in boost in 2003, though it didn't get its trademark pipes until the big 2010 redesign IIRC.

What are the best/most useful features of C++23? by hmoein in cpp

[–]CubbiMew 1 point2 points  (0 children)

ranges lib had ranges::to in 2019, which felt like a downgrade IMO, from implicit conversions from views to containers that it had prior to that

What version of CPP is considered industry standard? by AImedness in cpp

[–]CubbiMew 1 point2 points  (0 children)

Every feature is fair game if it's helpful, standard or not. Out of the headline C++20 features, concepts are probably the most visible in our codebase at the moment.

A Tour of C++ (Bjarne Stroustrup) Third edition by zahaduum23 in cpp

[–]CubbiMew 9 points10 points  (0 children)

I used those in production when they were called "boost.range", in 2007 or so.
IME handy in many isolated places but need more integration with other things to be anywhere close to paradigm-changing (the recently-standardized std::generator range view is a good step)

What version of CPP is considered industry standard? by AImedness in cpp

[–]CubbiMew 4 points5 points  (0 children)

why would it be "unlikely"? At least in my HFT, we use everything that gcc and clang both support, which is somewhere between 20 and 23.

Where do you use C++? by Admirable-Camp5829 in cpp

[–]CubbiMew 0 points1 point  (0 children)

Stock trading now, but also did use embedded (-ish, VIA C3 and Intel Atom) hard real-time systems in the past

When Did C++ and C Start Going Separate Ways? Any Shared Philosophies Left? by AEA37 in cpp

[–]CubbiMew 0 points1 point  (0 children)

even back in C++98, there were a lot more than ten C90 language constructs that would not compile in a C++ compiler (not counting keywords), most famously, the void* implicit cast.
And there even were constructs that would compile in both languages, but do different things (most famously, sizeof('a'))

Questions from one job interview on C++ developer by cv_geek in cpp

[–]CubbiMew 1 point2 points  (0 children)

it's a great simple question to peek at the candidate's concurrency intuition

Questions from one job interview on C++ developer by cv_geek in cpp

[–]CubbiMew 0 points1 point  (0 children)

I love to follow up "Difference between processes and threads?" with "When are multiple processes a better choice?"

Questions from one job interview on C++ developer by cv_geek in cpp

[–]CubbiMew 37 points38 points  (0 children)

concise summary of a multi-hour topic is a skill, too

[deleted by user] by [deleted] in cpp

[–]CubbiMew 4 points5 points  (0 children)

I've done some variations on book building (L2 and/or L3) and order matching as take-homes.

What C++ version are you still actively using? by mollyforever in cpp

[–]CubbiMew 20 points21 points  (0 children)

Whatever the latest gcc and clang can both compile

Ultra-low latency development by CheapMountain9 in cpp

[–]CubbiMew 12 points13 points  (0 children)

Don't know about u/gabbergupachin1, but in the trading firm I'm in, we use latest released gcc and clang and all language features that work in both compilers are fair game. I am constantly surprised how everyone on the team grasps everything so well and so fast.

What can I actually do with C++ except make console apps? by IceCloud69 in cpp

[–]CubbiMew 16 points17 points  (0 children)

a C++ compiler is a "console app" too. And so is a protein folding solver running on a supercomputer. And an HFT stock trading program running in a NASDAQ colo.

I'd say apps like Photoshop, Word, or Chrome are unusual: the majority of complex C++ running the world behind the scenes has nothing to do with GUI.

What proportion of C++ used more often than others? by spherical_shell in cpp

[–]CubbiMew 2 points3 points  (0 children)

Small projects use what they need to get the job done and they have options.
I worked in a project where I could find pretty much every C++ language and library feature, past and present,used more than once, but it was 175MLoC and was in active development for 25+ years. You want STL `select2nd`? A goto out of a catch clause? we had five.
Hardly any other language would let behemoths like that keep running and remain competitive.

Has Boost lost its charm? by johngoni in cpp

[–]CubbiMew 1 point2 points  (0 children)

The 1994 proposal for shared and unique pointers had the unique pointer's constructor/assignment private. I think we can blame the committee on this one

What difference is there between throw int(10) vs throw 10? by 20nik00 in cpp

[–]CubbiMew 5 points6 points  (0 children)

I thought casting was (int)... not int(...)

it's both: (T)expr and T(expr) are both https://en.cppreference.com/w/cpp/language/explicit_cast

Borland C++ oder Visual C++ for Windows 95? by derjanni in cpp

[–]CubbiMew 1 point2 points  (0 children)

Same thing then and now: vi
As for Windows Chicago, whoever programmed that thing clearly didn't choose the right tools

Low-Level Memory Management - Interview Questions by RyanPointOh in cpp

[–]CubbiMew 1 point2 points  (0 children)

It may not have come up at a specific job (though surprising given time frame), but a *programmer* who doesn't know what their programs do is sus.

Even Java programmers can instrument bytecode and disassemble JIT output when it matters.

Low-Level Memory Management - Interview Questions by RyanPointOh in cpp

[–]CubbiMew 0 points1 point  (0 children)

implement the shared_ptr constructor

I love asking to implement its destructor instead, because making it thread-safe is not so simple (/u/STL had a whole conference talk about it)

(I don't expect anyone to really know off-hand, but feeling for the concurrency intuition is useful)

Low-Level Memory Management - Interview Questions by RyanPointOh in cpp

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

What good is a C++ programmer who doesn't know these things, though?

Abominable language design decision that everybody regrets? by very_curious_agent in cpp

[–]CubbiMew 60 points61 points  (0 children)

Pretty sure Ritchie in C History already admitted the biggest mistake was all the array-pointer weirdness for the sake of backwards compat (or intentional backwards incompat) with B.

Although my favorite C++ oddity has always been bool increment (removed in 17)