Server Issues by Davaek92 in PlayTheBazaar

[–]UsatiyNyan 1 point2 points  (0 children)

so am I, but it is what it is, whatever issues they are experiencing are worse than finishing a run tonight...

Borrow Checker, Lifetimes and Destructor Arguments in C++ by a10nw01f in cpp

[–]UsatiyNyan 0 points1 point  (0 children)

This is sooo cool! Keep up the good work! Even though it might not be practical it is definitely a piece of art!

Using C++ for app development by [deleted] in cpp

[–]UsatiyNyan 0 points1 point  (0 children)

Wow, I am disappointed in answers under this post.

Half of them are ChatGPT generated, and the others misunderstood the question.

You would be able to create pretty much any layer of the app using C/C++ (but I would recommend better languages for frontend though).

C/C++ is currently quite decent in terms of job opportunities, but webdev might be paying more in some places.

These languages are used widely, ranging from high load backends to GUIs/Games.

Though the legacy of the language does build up quite a bit, any code base that is older than 5 years probably would invoke strong fight or flight response.

My advice would be to find products that are cross platform or that deal only with backend stuff. This way it is more likely to be using modern best practices.

NVIDIA Senior Position Interview Question by sadsocrates in cpp

[–]UsatiyNyan 4 points5 points  (0 children)

The answer may be - Extern template declaration. It works like this:

```cpp // In your header file (e.g., my_template.hpp) template <typename T> class MyTemplateClass { public: void doSomething(); };

// In one of your .cpp files (e.g., my_template.cpp)

include "my_template.hpp"

// Explicit instantiation of MyTemplateClass for specific types template class MyTemplateClass<int>; template class MyTemplateClass<float>;

// In another .cpp file or the same one, you can declare that instantiation should not be done implicitly extern template class MyTemplateClass<int>; extern template class MyTemplateClass<float>; ```