• 0 Posts
  • 18 Comments
Joined 2 years ago
cake
Cake day: June 27th, 2023

help-circle

  • I think the author of the article just haven’t understood how to use the ? operator yet, and don’t think they deserve being called “utterly incompetent” for it. Whether something is a monad or not is not necessarily something a programmer should have to think about on a daily basis IMO.

    I just think of rust errors as a tagged enum with either a value or an error. And the ? operator as syntax sugar for returning if something was an error. IMO that simple understanding is sufficient to do error handling in Rust. I don’t think we should gatekeep programming behind some intellectual barrier of whether or not you understand category theory. I certainly don’t understand what a monad is, but I can still write working software and do error handling without unwraps.


  • I tried it briefly. I like the idea of an alternative to VS code, that’s not some inefficient javascript electron app. But the focus of zed seems to be on collaboration in cloud and also pushing LLM tools. That’s not what I’m looking for. I disliked that it was impossible to hide the “log in to github” button (I don’t want to log into an editor). Irked me the wrong way.



  • It’s called T9 typing btw. I’m old enough (30) to have had a few phones with buttons myself before the smartphone era gained momentum. I never got really good at it (didn’t text much). My older sister by a few years is a racer at T9 typing though. I remember her phone was making clicking noises at insane rates.









  • I know how to fix this!

    bool IsEven(int number) {
        bool even = true;
        for (int i = 0; i < number; ++i) {
            if (even == true) {
                even = false;
            }
            else if (even == false) {
                even = true;
            }
            else {
                throw RuntimeException("Could not determine whether even is true or false.");
            }
        }
    
        if (even == true) {
            return even ? true : false;
        }
        else if (even == false) {
            return (!even) ? false : true;
        }
        else {
            throw RuntimeException("Could not determine whether even is true or false.");
        }
    }
    




  • TLDR: Long rant about modern smart phones.

    I’ve concluded that it is impossible to get a new phone that has the features I want. Some phone manufacturer always seems to arbitrarily declare useful features/form factors obsolete, maybe replaces it with some new gimmick and gets the hype machine going so all the other manufacturers do the same in fear of becoming irrelevant.

    I just wish that some day some company is going to create a smart phone with a reliable fingerprint reader on the back again where it is reachable by fingers on BOTH the left and right hand. Or that some manufacturer will create a phone with a smaller screen than 6 inches. Or god forbid a normal aspect ratio like 16:9 instead of the ridiculously long lightsabers they’re making now. Then maybe it would be possible to get it out of my pocket while sitting down. Missing headphone jack is just a drop in the ocean IMO. There are so many other annoyances that I didn’t use to have, but now is an issue with modern smart phones.

    If I got the chance to dictate what the manufacturers should do. I would tell them to stop. The camera is good enough. Make it smaller and not protruding out the back of the phone so much. The SOC is fast enough. Make it more power efficient instead of chasing for the next GHz. The screen is large enough, just stop. If I wanted a larger screen I would use a tablet. Do some damn QA. Test the main functionality of a phone, which is communication, not game benchmarks, not who can take the prettiest picture of the moon. Is it possible to take the phone out of the pocket without accidentally hanging up on whoever is calling you? Is it possible to send and receive to/from SMS/MMS groups? Does the fingerprint reader actually work or does it just say “sorry too many tries” every time you take the phone out of the pocket before even touching the fingerprint reader?

    Just had to get that out of my system :P