• 1 Post
  • 1.12K Comments
Joined 2 years ago
cake
Cake day: July 3rd, 2023

help-circle


  • jjjalljs@ttrpg.networktoScience Memes@mander.xyzI dunno
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    8 hours ago

    I like and respect teachers, but I’m a software developer and I’m telling you that adding extra parenthesis often adds clarity and makes the whole process smoother. You exist in a whole other context that has norms and assumptions that do not apply to what I’m talking about.

    You being technically correct is irrelevant.



  • jjjalljs@ttrpg.networktoScience Memes@mander.xyzI dunno
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    9 hours ago

    That’s because it’s already clear as is, as per the rules of Maths.

    More people evaluate 2+3x4 incorrectly than 2+(3x4). So, no, your answer does not hold up to my observed reality. You can throw as many “well technically” and “well actually” as you want, but that’s not going to fix the bug or make a pr.


  • Used hinge. It’s the least bad, as of this year anyway.

    Most people who use dating apps are, frankly, bad at it. People send garbage messages with garbage profiles. People half-ass it and expect the other folks to carry the whole thing. I feel like I could write a short book on how to do it better.

    Condensed into like three bullet points it’s

    • Ask questions. Do not dead-end the conversation and expect them to do all the work
    • actually ask them out. Like, in the first conversation after you clear any must-have deal breakers (eg: if you have a kid)
    • put stuff you want to talk about in your profile. Don’t be “clever” and respond to “what are you looking for?” with “my keys”. This is where you give the other person topics to talk about. (Also if you are tired of people asking about the stuff you put in your profile, change it you doofus.)

    Being “an introvert” doesn’t excuse you from being present and engaged. The other person isn’t going to be that interested in someone who responds every couple hours with “lol”. If you can’t muster up the energy to have a real conversation, you aren’t ready to date.






  • Many years ago I had to explain to a coworker how progressive taxation works. He was like “that’s a great idea! We should do that! It’s stupid that now your pay goes up but you take home less because you get taxed more”

    I had to tell him, yes it is a good idea. It’s how it works now. You don’t get more pay and suddenly your whole income is taxed more.

    He’d had no idea




  • I’ve seen some garbage slide through code reviews. Most people don’t do them well.

    I’m doing contract work at a big multinational company, and I saw a syntax error slide through code review the other day. Just, like, too many parenthesis, the function literally wouldn’t work. (No, they don’t have automated unit tests or CI/CD. Yes, that’s insane. No, I don’t have any power to fix that, but I am trying anyway). It’s not hard to imagine something more subtle like a memory leak getting through.

    In my experience, people don’t want to say “I think this is all a bad idea” if you have a large code review. A couple years ago, a guy went off and wrote a whole DSL for a task. Technically, it’s pretty impressive. It was, however, in my opinion, wholly unnecessary for the task at hand. I objected to this and suggested we stick with the serviceable, supported, and interoperable approach we had. The team decided to just move forward with his solution, because he’d spent time on it and it was ready to go. So I can definitely see a bunch of people not wanting to make waves and just signing off on something big.


  • Python.

    • It’s pretty easy to get going.
    • the debugger is very good. Being able to put a breakpoint and interactively fuss with it is so much better than print statements and crying
    • you can (and should) use type annotations, but they are optional
    • it’s on most machines already, but you don’t want to fuck with the system install of it. On Linux and Mac you can use pyenv or similar if the system came with a version you can’t use. (Don’t teach anyone python 2.)
    • the standard library is very good.

    You could also do JavaScript, as that’ll work on any modern browser. However, JavaScript is a deeply cursed language. It’s really bad at like every level.

    I don’t recommend it unless your top priority is “it is definitely available everywhere” and “these are future web developers”.