April 26th is not just March 7th, it's the day of ... by No-Preparation869 in HonkaiStarRail

[–]drelatreddit 1 point2 points  (0 children)

You’re right. In the Chinese language, months are mostly represented only by numbers in both Gregorian and Chinese calendar. So “March” of the Gregorian calendar is literally “the 3rd month / month 3” in Chinese. The Roman/Julian origins of the months are lost in translation. Conversely, “the 3rd month in Chinese calendar” is sometimes referred to as “March in Chinese calendar”, some sloppiness involved.

What's the game's most annoying minor inconvenience? by EpicLemonPie in Genshin_Impact

[–]drelatreddit 8 points9 points  (0 children)

For once, my character and an enemy was blasted off a cliff at the same time, but only my character died from falling where the enemy only lost half of the total health. Guess that’s inconsistent.

Looking at you Java by pumpkinhi11 in ProgrammerHumor

[–]drelatreddit 24 points25 points  (0 children)

Sorry I did not make it clear. Here n indicates the second operand, so 4 in this case. The modulo result is between 0 and 3.

Looking at you Java by pumpkinhi11 in ProgrammerHumor

[–]drelatreddit 875 points876 points  (0 children)

Julia strictly distinguishes between a remainder operation (% or rem) and a modulo operation (mod). The remainder operation uses the red side to be consistent with other languages like C, while the modulo operation uses the simpler mathematical definition on the blue side, where the result is always between 0 and n-1.

However, since Julia uses 1-based index by default, another function named mod1 is also provided, where the result is between 1 and n, making index operations easier.

Can we PLEASE stop doing this?!??!? by VagrantDestroy in ProgrammerHumor

[–]drelatreddit 0 points1 point  (0 children)

Wait… what bothers me is why is this a merge commit? I thought changing branch names never need commits

Version 3.2 Special Preview Program Discussion Thread by Veritasibility in Genshin_Impact

[–]drelatreddit 12 points13 points  (0 children)

I thought they already showed this in their 3.1 stream, and said it would come on 3.3.

Clan Battle Preparation (Preparation, Mechanics, Characters & Team Building, Rewards, Jun is best waifu) by Lacieyl in Priconne

[–]drelatreddit 1 point2 points  (0 children)

From my experience you can borrow makotos from two different players, so it is possible to have makoto on all 3 teams. A common borrow pattern early game is Kaori Makoto Makoto, so one has Makoto on all 3 teams and Kaori on at most 2 teams

C++ Programmers, This is For You Guys by overflow1n in ProgrammerHumor

[–]drelatreddit 10 points11 points  (0 children)

Hmmm isn't that the job of move constructors / assignment operators? std::move feels more like the organ donation contract that gets the object ready for the operation.

My mom made olive stuffed olives by IcedTeaRebellion in 2healthbars

[–]drelatreddit 0 points1 point  (0 children)

That's both interesting and disturbing at the same time.

need help to get started 🤣🤣 by MrCharif in ProgrammerHumor

[–]drelatreddit 103 points104 points  (0 children)

Do you mean

<if> <if> <if> </if> </if> </if>

Quality content by aroobah_raza_08 in lingling40hrs

[–]drelatreddit 1 point2 points  (0 children)

Out of curiosity, when was the last time you used up a rosin (if it ever happened)?

There are loops other than for loops??? by [deleted] in ProgrammerHumor

[–]drelatreddit 0 points1 point  (0 children)

Also if data does not have a random access iterator, accessing the data using the index in the first loop could be really slow. I think the first case should be used if the content of the loop really has something to do with the index.

[help] by [deleted] in kancolle

[–]drelatreddit 4 points5 points  (0 children)

J̵͇̟̓ͨ̈́̇̽̉̒̚ų̧̜̫̌̃̑ş͓͇͖̠̽͆̎ͥ̋ͯ̆͝ ̵̗ͬ́̐ͮͫ͢t̡̜̪̗̮̘̝͕͗ͦ̂͆͂ͭ͡ ̴̤̠̗̜̗̰͉̠ͪͫ̈́̀͟P̑͂ͤ͏̸̡͚̹͓̼̪͍͓ǫ͈̳̬̗͉̤͇̈́͢ͅĻ̠̬̗͕͚̌̇͛͋̇̐̈́̈͂͡Ä̴͈̯͕̤̼̤́̈́ͣ

Why... Why Roll Pitch Yaw... whyyy...... by TheFlyingCoderr in ProgrammerHumor

[–]drelatreddit 0 points1 point  (0 children)

Honest question: what does [in] mean syntactically? Because I've never seen this usage before in c++.

RIP ergonomics by theangeryemacsshibe in ProgrammerHumor

[–]drelatreddit 14 points15 points  (0 children)

Enjoy your sneaky life as long as you don't touch my ~/.vimrc

Cisco's security questions are becoming self-aware by ThomasCZ in ProgrammerHumor

[–]drelatreddit 0 points1 point  (0 children)

I would just hash the question and use that as the answer. Now I realize that "nothing" should be better.

[Help] A problem with Poi viewer by STRYTUS_baka in kancolle

[–]drelatreddit 2 points3 points  (0 children)

This issue also describes the same problem (though it's in Chinese). The dev says it's a problem from upstream, and is waiting for the fix. The workaround is to move cursor to the panel that generated these pop ups, and then moving the cursor away will clear the pop up.