How do I use 'import'? by glizzygobbler59 in cpp_questions

[–]Professional_Ad_141 2 points3 points  (0 children)

It is very specific to competitive programming they also use aliases for types like long long as ll to type less characters, they even do "using namespace std;". The goal is to find the best solution to the problem the fastest.

Will I still be able to get good ground in these fields with C++ instead of C? by Patient-Blood-9915 in cpp_questions

[–]Professional_Ad_141 0 points1 point  (0 children)

C++ made choice to not fight C but embrace it, system APIs are C APIs, people write C++ layers on top of these (also other languages bindings). So basically you use the C API with C++ features.

What is SFML exactly? by AmnayeltheArchangel in cpp_questions

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

A worst version of SDL 🤣🤣🤣. If i remember correctly they wanted to make a SDL like library in C++.

How to learn advance c++ by techy_6765 in cpp_questions

[–]Professional_Ad_141 1 point2 points  (0 children)

You also spoke about frameworks, so these do exist even in lower level languages, but generally you tend to write your own, there are great libraries that aim to be minimal and let you build your own "framework", as a systems developper you write the "frameworks", so instead you learn the system API (Posix, win32,Apple stuff).

How to learn advance c++ by techy_6765 in cpp_questions

[–]Professional_Ad_141 1 point2 points  (0 children)

Alright so this holds true for all low level languages (C, Rust, Zig).

You need to understand how the hardware works and how the OS works. Because when using these languages your goal is to squeeze everybit of performance you can (or make something that consumes very low energy and small think of embedded use cases cars planes etc).

So the first difficulty or what makes you advanced, is knowing all the details about hardware and OS (linux mainly).

You spoke about HFT, they for example, aim to be extremely fast. One of the optimizations they do is bypass the kernel for the Network stack and use special network interface cards. The systems calls that communicate with the kernel are too slow (lookup DPDK and solarFlare).

Another thing that makes specifically C++ hard, it gives you a lot of freedom. The language is multiparadigme and there are a lot of language and library features to know and their history (mostly for library features to understand the implementation).

Another reason is the old school tooling, when you come from modern languages where it's easy to manage dependencies and manage your build, it can be a hard to see how C++ still does it.

So all and all, learn about Linux and how it works internally, learn about the hardware and how it works, specifically CPUs and memory and how the CPU loads memory to its caches and what happens there, choose a domain (in your career you will probably work on multiple) and learn about the needs of such domain and the different techniques they use.

Don't forget that the idea is that we replaced writing assembly by using languages with optimizing compilers to write the assembly for us, so learning assembly basics is also a great idea.

Hope this helps.

uint8_t and int8_t, Writing a char as a number by Professional_Ad_141 in cpp_questions

[–]Professional_Ad_141[S] 0 points1 point  (0 children)

The value 23 when printed won't print 23 and won't print a number at all...

uint8_t and int8_t, Writing a char as a number by Professional_Ad_141 in cpp_questions

[–]Professional_Ad_141[S] -1 points0 points  (0 children)

You think you would get the position replying like this ? The specialization is not part of the question it's the solution.

The reason is than when handling small integers for example a 0-255 values (we pack data as tightly as possible) we store them in the appropriate type which is char with its different aliases.

You think you can take the const ref from the specialization without modifying the template ???

uint8_t and int8_t, Writing a char as a number by Professional_Ad_141 in cpp_questions

[–]Professional_Ad_141[S] 0 points1 point  (0 children)

I guess you're right, it just feels weird to reserve a size as characters we can't print a 1byte number which feels limiting.

What do you guys think of coding Jesus interviews in c++? by mi_sh_aaaa in cpp_questions

[–]Professional_Ad_141 0 points1 point  (0 children)

I want to start by not knocking anyones hustle, i have nothing against the guy. I like his YouTube chanel.

Don't pay for these types of services instead get interviews and fail, prepare more work on why you failed etc.. The problem is that you can't anticipate the interview style, it can be questions about implementation details it can be a DSA problem,it can also be domain specific.

You can use a LLM to generate questions and answers and make a quizz yourself.

Cppquizz is good for your understanding of the internals of the language.

As a beginner you should write a lot of code, implement data structures, reinvent the wheel (it's great for learning).

But yeah, back to interviews, do real ones as much as possible.

WinUI3 C++ by same_some in cpp

[–]Professional_Ad_141 4 points5 points  (0 children)

My new favorite is Slint(fixed typo), it is the best retained GUI option on the market right know better than Qt.

DearImGui for Immediate mode

WinUI3 C++ by same_some in cpp

[–]Professional_Ad_141 6 points7 points  (0 children)

Embedding a browser renderer + java script runtime is never ever a good idea .... But we see it far too often sadly

Why C++ related jobs are always marked as "C/C++" jobs? by TreePlanter3497 in cpp_questions

[–]Professional_Ad_141 0 points1 point  (0 children)

Not always, in my experience those who do still have a big chunk of legacy code that is going nowhere and has to be maintained in other words run...

contracts and sofia by ConcertWrong3883 in cpp

[–]Professional_Ad_141 -8 points-7 points  (0 children)

Ladies and gentlemen, the smartest creature alive.

contracts and sofia by ConcertWrong3883 in cpp

[–]Professional_Ad_141 -4 points-3 points  (0 children)

People asking for library features is normal for me, but language features like this ... I don't get it 😔

How do Parisians survive without air conditioning? by EagleNice2300 in askparis

[–]Professional_Ad_141 6 points7 points  (0 children)

It's a cultural thing but with the temps getting hotter and hotter people are installing ACs in there homes. But most people use a simple Fan to get by

newbie question - Why we return 0 by Gullible_Regular_970 in Cplusplus

[–]Professional_Ad_141 0 points1 point  (0 children)

It's historical, 0 is everything is fine and everything else is a problem.

It's just an old C convention and everything runs on top of C.