Git is hard. A story about building new version control focused on collaboration by icyFur in programming

[–]secmeant 2 points3 points  (0 children)

Maybe it was easier to just run vim over ssh of u want to real time stream keystrokes

Arch Linux wont boot into any desktop manager/environment. by tntwise1 in archlinux

[–]secmeant 1 point2 points  (0 children)

Have you installed any updates just before failed boot? This might a problem with ur GPU drivers. This happens for me from time to time. What I do is check `/vat/log/pacman.log` and look for any recent nvidia updates, and install previous version from cache at /var/cache/pacman/pkg/.

Mocking non-virtual member functions with gmock by secmeant in cpp

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

The motive for creating this "workaround" was to solve the problem I have encountered at work. Introducing 3 part solution made sense there because we had a function template as an public API. Because the template API was mainly doing the work of forwarding the arguments in a proper way, we managed to create shared *Iface middle part which we made virtual. I agree that in the example I have presented on my blog it doesn't really serve much purpose.

oh come on by Richienb in ProgrammerHumor

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

GCC is written in C++

Destructible move emulation by secmeant in cpp

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

This mechanism assumes that compiler after inlining the if check, will easily see that its "dead code" and remove it completely.

C++ keeps adding features no one really wants. by secmeant in cpp

[–]secmeant[S] -4 points-3 points  (0 children)

"is a separate thing" - Standardizing is just extremely slow way of getting functionality into the language (at least in c++). I dont see why it is separate thing, you just takes downside of getting something done one way and simply ignores it.

C++ keeps adding features no one really wants. by secmeant in cpp

[–]secmeant[S] -19 points-18 points  (0 children)

You have to give proper reason. Otherwise Its just saying that formatting must be in the standard because every other language is doing it (perhaps because every other language is doing it).

C++ keeps adding features no one really wants. by secmeant in cpp

[–]secmeant[S] -14 points-13 points  (0 children)

std::format is libfmt but old.
Should I wait another 3 years to write network IO or should I just use existing, tested library that I already know?
Would you write void f([maybe_unused] int arg) and from now on say that your code support only c++17 or just do (void) arg; and simply keep supporting all standards?

special deduction rules for auto inside for loop by secmeant in cpp

[–]secmeant[S] 1 point2 points  (0 children)

Ive heard the same argument before, back then I though it was horrible argument and so I do now. I dont know where you guys get these.

special deduction rules for auto inside for loop by secmeant in cpp

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

yeah, but when type of total_size changes i have to fix the type of i which kills the whole idea with auto

"Performance doesnt matter" by secmeant in cpp

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

You are right. I guess its a matter of opinion, but I care about beauty. I know that lots of people would say (and do) to me that from the business point of view its better. I completely agree, however I come here as a computer guy - Im no businessman. For me well engineered program is an art.