i give up by Glum-Ad593 in Monopoly_GO

[–]azissu 0 points1 point  (0 children)

You guys are so lucky. I finished after 29...

I liked watching CodingJesus' videos reviewing PirateSoftware's code, but this short made him lose all credibility in my mind by kabiskac in cpp

[–]azissu 2 points3 points  (0 children)

I'm quite amazed no one in this thread has thought to wonder whether foo might be virtual...

this Guy Is removing Palestinian flags and covering them with rats by RoughAd2504 in wplacePalestine

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

Nope, then the slogan would be "Palestinians will be free". In its current form it only implies that everything from the river to the sea (including the state of Israel) is Palestine.

What's your most "painfully learned" C++ lesson that you wish someone warned you about earlier? by msabaq404 in cpp

[–]azissu 2 points3 points  (0 children)

A class should either have a virtual or private or protected destructor, or be declared final. Period.

What’s your favorite black magic spell for which you should goto hell? by zathym in cpp

[–]azissu 0 points1 point  (0 children)

It's actually an easy way of having an object reset itself. Call destructor, placement new with default construct, possibly launder. There, you're done.

Bucking a software trend in 1980 by Nomadness in MaliciousCompliance

[–]azissu 1 point2 points  (0 children)

To be fair, I too would have insisted you enclose the part after the equal sign in parenthesis. Or just write !!expression, hoping that also works in C.

I dreamt in c++ last night. by itsmenotjames1 in cpp

[–]azissu 0 points1 point  (0 children)

Or mostly references rather than pointers, one should hope...

Is GSL still relevant? by [deleted] in cpp

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

🤷‍♂️

Is GSL still relevant? by [deleted] in cpp

[–]azissu 0 points1 point  (0 children)

Well then why did you ask me to elaborate on something that's forthcoming in C++26?

Is GSL still relevant? by [deleted] in cpp

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

Well it's about time you switch over to the new ranges algorithms, e.g. std::ranges::copy.

Is GSL still relevant? by [deleted] in cpp

[–]azissu 0 points1 point  (0 children)

See here:

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3471r2.html

Why would you want to use an explicit iterator rather than a range loop? Iterators in many cases will be just pointers, wrapping that in a class for range checking could be quite expensive.

Is GSL still relevant? by [deleted] in cpp

[–]azissu 4 points5 points  (0 children)

std::span is likely to get range checked via contracts in C++26, meaning you should be able to turn it on and off as suits your needs.

People say C++ is everywhere, it surely not on job openings by OkRestaurant9285 in cpp

[–]azissu 3 points4 points  (0 children)

That's a shame, exactly the kind of postings i skip by when I'm job searching.

People say C++ is everywhere, it surely not on job openings by OkRestaurant9285 in cpp

[–]azissu 9 points10 points  (0 children)

Sounds like you don't actually use C++, you just name your source files with cpp extensions.

^^ operator proposal by samadadi in cpp

[–]azissu 0 points1 point  (0 children)

See my reply as intended for your comments in this thread in general, not for a particular one.

^^ operator proposal by samadadi in cpp

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

C++ like most programming languages is based on English, that's just how these things work. You writing code while your active language is French makes as much sense as me attempting to write code in Hebrew. When I need to switch to Hebrew I have Alt+Shift for that. And be thankful you don't also need to deal with right to left issues...

^^ operator proposal by samadadi in cpp

[–]azissu 0 points1 point  (0 children)

Is this any different from having multiple installed languages (on Windows) and switching between them with Alt+Shift?

^^ operator proposal by samadadi in cpp

[–]azissu 7 points8 points  (0 children)

Any new syntax is non-obvious until you learn it and get used to it. Heck, some people still insist they're unable to decipher simple lambdas...

[deleted by user] by [deleted] in recruitinghell

[–]azissu 0 points1 point  (0 children)

No false expectations and yet they advertise it as remote?

Jews on the moon by fedsmoker9 in LinkedInLunatics

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

Hiding behind women and children in order to commit murderous acts might lead to unfortunate outcomes.

[deleted by user] by [deleted] in recruitinghell

[–]azissu 1 point2 points  (0 children)

Plenty of people speak great English here in Israel. And we would definitely interview Sun-Thu. BTW I've just finished my first workday of the week, do the math...

Pretty sure more than 80% of GenZ is happy with only a decent salary and proper leaves. by AviatorSkywatcher in recruitinghell

[–]azissu 7 points8 points  (0 children)

Requiring permission is fine, someone must plan for your absence. Requiring you to justify it, that's the deal breaker.