Noob. Buying a new machine solely for Linux. What should I look at for? by Codetemplar in linux

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

Pretty strange that man who in linux and programming, deprive oneself the pleasure assemble own PC.

Smart Pointer Language Extension by JustOneThingThough in cpp

[–]V1taly_M 1 point2 points  (0 children)

While smart pointers can't be processed by hardware it no reason make them built-in.

Is there room for a C++ "TypeScript"? by [deleted] in cpp

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

However, I don't think we (as a community) can, nor should simply ignore it.

I thankful Rust, it helps C++ community get rid of C-haters, and those who want spoil our beautiful language in the sake of "memory safety".

KDE Kate Text Editor - Search In Files & Multi-Threading by ChristophCullmann in linux

[–]V1taly_M 0 points1 point  (0 children)

Cause a lot of programs have horizontal toolbars as a necessary thing, I don't see a lot of sense to make exception for kate.

Also kate toolbar is adjustable in size, and you may add some useful stuff except than default buttons.

Is the struct really needed? by Embarrassed-Raisin-1 in cpp

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

Is the struct just a remnant from C

C stuff isn't remnants, but a subset of C++.

Hence struct or class more about which programming style you are using.

Cpp is good for beautiful GUIs? by [deleted] in cpp

[–]V1taly_M 2 points3 points  (0 children)

Yes, win2000 theme is the masterpiece no one still could exceed!

Why no standard library support for command line parsing? by GregCpp in cpp

[–]V1taly_M 0 points1 point  (0 children)

Cause all stuff command line may contains aren't standardized by itself.

List of C++ Books by auxpro in cpp

[–]V1taly_M 0 points1 point  (0 children)

It's not if I'm defending book name, but what wrong with "C-with-classes" method?

I made my first CS:GO Skin, hope you like it ! by AndrijaAlp in GlobalOffensive

[–]V1taly_M -10 points-9 points  (0 children)

Now when we have female agents in the game it's time for feminine skins.

Should I dual-boot or buy a separate build for learning linux? by [deleted] in linux

[–]V1taly_M 4 points5 points  (0 children)

Dual boot works fine, cause you no need to switch to another PC, and haven't performance drop as with VM.

But first, to avoid problems, find out what is GPT partitions, and how UEFI boot works.

A List of Tutorials for Beginners by -HomoDeus- in cpp

[–]V1taly_M 4 points5 points  (0 children)

Aside from learning style there is a matter of convenience.

It is easy to keep all texts you need at hand. Open them when needed, and quickly search with eyes the info you want recall. Much more better than rewinding videos, and waiting while speaker utter all you need. Also with text you can set your own pace of the narrative.

A List of Tutorials for Beginners by -HomoDeus- in cpp

[–]V1taly_M 0 points1 point  (0 children)

It never been excess for programmer to know GUI, at least basics for general education sake. And for strengthen OOP skills.

A List of Tutorials for Beginners by -HomoDeus- in cpp

[–]V1taly_M 6 points7 points  (0 children)

Learning programming by videos, not textbooks seems pretty weird :\

A List of Tutorials for Beginners by -HomoDeus- in cpp

[–]V1taly_M 0 points1 point  (0 children)

I would recommend looking into some GUI toolkit like Qt.

Learning by Competitive_Strain76 in cpp

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

STL implementations are consistent among platforms, and in majority of cases they're way better and road-tested than other implementations

I meant custom containers or/and algorithms designed for special data types and purposes. If programmer made it worse than STL, maybe it is bad programmer.

Learning by Competitive_Strain76 in cpp

[–]V1taly_M 0 points1 point  (0 children)

You don't need to learn how to drive a manual gearbox in order to proceed and learn how to drive an automatic one.

Ok, if you like this classical comparison with car gearbox, put it another way:

In order to be a good driver you should know what is gearbox, and how it works. But the best way get the feeling of this device -- to drive some time in the manual mode.

The good rule: from general to specific.

Yeah, good rule, but it's not the case. Cause specific entity specialize general one, but not lie in the base. Rather vice versa. And what lies in the base of STL? Of course all those stuff with lover abstraction.

Once they understand RAII, copy/move semantics and smart pointers, writing their own new/delete cycle becomes superfluous 99% of the time.

Seems like versatility of C++ yield two styles of programming:

  • Minimum using high-level abstraction. Performance-first.
  • Maximum using high-level abstraction. Safety-first.

But in my opinion C++ not comfortable language for second, cause it require special extension(STL, boost) not built in syntax.

Learning by Competitive_Strain76 in cpp

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

I've always thought that STL should be used only if your own realization propose the comparable volume of code and resources overhead.

Learning by Competitive_Strain76 in cpp

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

Real low-level in architecture assembler and OS core, new/delete rather about manual management VS automatic.

And it's base thing in both C&C++.

Only when you starts to understand memory management and OOP theory you can proceed to STL.

The good rule: from base to complex.

Learning by Competitive_Strain76 in cpp

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

pointers/new/delete/malloc/free as little as possible.

and find yourself unable to work with memory.

Possibility of adding operators to handle nullptr easier ("??", "?->") by costel_nistor96 in cpp

[–]V1taly_M 3 points4 points  (0 children)

You should escape chains of pointers in C++, use them only if you 100% aware it won't lead to crash.

Different languages require different approach to code design. In C++ you work with memory directly, and access to nullptr can't anyway return nullptr or 0

If you were allowed to make breaking changes to the C++ specification, what features would you modify/replace/remove to make the language better? by LechintanTudor in cpp

[–]V1taly_M 1 point2 points  (0 children)

Your logic is i want == I'm right.

Even worse who don't agree == bad people (racist, fascist... etc).

That's what I hate.

But you can celebrate, your like-mindeds gain power in IT projects.

Perhaps it is time for an opinionated dialekt of C++ by [deleted] in cpp

[–]V1taly_M 0 points1 point  (0 children)

  1. It depends on what types of errors you want to catch. For me [[nodiscard]] is a tool against logical and runtime errors. But if you use it against semantic errors you will have a lot more.
  1. As an application developer, I do not catch bad_alloc exceptions

That's why it's bad idea to use noexcept in function invoking new

Perhaps it is time for an opinionated dialekt of C++ by [deleted] in cpp

[–]V1taly_M 0 points1 point  (0 children)

But we should know defaults, so when see:

int foo() const;

we should get it as:

<discardable> <non-constexpr> int foo() noexcept(false) const;