she/they, non-binary transfeminine individual based in Berlin

  • 0 Posts
  • 42 Comments
Joined 1 year ago
cake
Cake day: June 19th, 2023

help-circle






  • the is_even package does not provide much worth indeed because it simply negates is_odd and thereby all its benefit.

    It’s dependency is_odd on the other hand provides at least some additional checks (it also checks if the value is a valid integer below the max int value)

    And while I would indeed see uses for such methods (especially with the other checks, no simple oneliners) in some cases, especially in testing: This is stuff you write yourself, throw it in a e.g. NumberUtils class and everything is fine. You do never depend on an external library for that. The benefit (not spending a few seconds to write it) does not outweigh any of the drawbacks that come with external libraries.






  • Honestly, a Modulo-Captcha wouldn’t be that bad of an idea?

    Sure, it’s not really “non-dev-proof”; but I guess a simple “To enable pasting, please type result to the following formula: 5%3” would at least stop some people that will glady ignore the warning because obviously nobody wants to let you hack other Facebook accounts, but those guys told me it’s fine - but will already be confused and then feel smart by entering 0.15 because 5% of 3 is 0.15 … and wonder why it doesn’t work


  • How you could somewhat rebase manually (to understand the effect; or because you like to handle the merge conflicts more granular or be more selective):

    We assume we have the branch “Feat” which was started on an old version of “Main”, and now want to rebase it:

    • Rename “Feat” to “Old” (does not happen during rebase, but we kinda need it for this demonstration)
    • Create “Feat” at the newest (or wherever you want) commit of “Main”
    • Cherrypick all commits from “Old” into “Feat”

    Et viola - you kinda manually rebased “Feat” on “Main”



  • solution 1:

    numbers 1 to 10 on the first row
    arrow under 3 with text “smaller”
    arrow under 10 with text “bigger”

    solution 2:

    “10 has more numbers/digits”

    Both would be - imo - thinkable and sufficient solutions at quite young age.

    (keep in mind that this is before they get asked “is 5 divisible by 2” and “No” or “Only with remainder 1” are the expected answers.)




  • Guess the difference is what you grew up with and therefore intuitively prefer:

    • allegedly american thinking: This baby sucks X gallons. Let’s see how far I can get with it

    • allegedly non-american thanking: I need to drive roughly X 1/2 hundred kilometers, and that will burn that much fuel.