• 46 Posts
  • 450 Comments
Joined 1 year ago
cake
Cake day: June 23rd, 2023

help-circle






  • steventhedev@lemmy.worldto196@lemmy.blahaj.zonemath rule
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    11 days ago

    ~~You know the counting numbers? 1, 2, 3, so on?

    There’s infinitely many.

    But there’s fewer of them than the “reals”, which are numbers like 1.5, 42.7, and pi (basically all the whole numbers and all the ones in between).

    This diagram is showing the “Continuum Hypothesis” which says that there might be some set of numbers that are “in between” the counting numbers and the reals in terms of size. We (humanity) do not yet know for certain if it’s true or not.

    This is obviously a gross oversimplification that probably gets some important details wrong.~~





  • Once upon a time, I accidentally created a folder named “~” in my home folder (the company provided scripting framework would inconsistently expand variables, so the folder had a ton of stuff inside it).

    I ran “rm -rf ~” and only panicked when I started to wonder why it wasn’t taking too long.

    Good news is that it only managed to get halfway through my local checkout of aosp before I stopped it. Bad news was that it nuked most of my dotfiles.










  • Ew no.

    Abusing language features like this (boolean expression short circuit) just makes it harder for other people to come and maintain your code.

    The function does have opportunity for improvement by checking one thing at a time. This flattens the ifs and changes them into proper sentry clauses. It also opens the door to encapsulating their logic and refactoring this function into a proper validator that can return all the reasons a user is invalid.

    Good code is not “elegant” code. It’s code that is simple and unsurprising and can be easily understood by a hungover fresh graduate new hire.