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

help-circle
  • The worst is when people don’t know how the system works, and then won’t listen to answers

    Like I was at a job and product was going on about “our system has no concept of project owner. We have all these projects but there’s nothing unifying them under a single owner. We need to build this!”

    I was like “… what? That’s just not true. There’s a “company” object that does that. It’s got a foreign key with project in the database. I guess it’s a weird name but it’s there”

    It took several back and forths over multiple meetings. They eventually got on the same page and I saved us doing a whole useless project, but they did insist I rename it to “account” in the database and code. I would’ve rather left it because that could’ve been dicey, but alas. (The rename did go out fine, but I had to go looking for every reference.)









  • The current system is nonsense, and allows the rich to control too much media (and thus culture). There are some movies or books that are hard to find “legitimate” copies of, because the “rights holders” don’t want them out there, or a complicated confluence of “well the movie has music in it” or whatever.

    The main thing I would like to see protected is for some nobody who makes a cool creative work to get credit. I don’t want someone to make a cool cartoon, and then Disney just swoops in and makes their own movies and tv shows based on it while the creator is left in the dust. But I also don’t want people to be able to hold onto an idea for decades, either.

    I feel like anyone should be allowed to go make a Lord of the rings movie without needing permission. That shit is old now. It’s just part of our culture.

    Some sort of “you have exclusive rights for 3 years” plus “you must attribute previous works to their creators” might work for me.

    I’m not a scholar I’m just shooting from the hip, but it was really annoying not being able to find a"legitimate" copy of spinal tap to stream recently.




  • 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”.









  • There was a website where users could request something or other, like a PDF report. Users had a limited number of tokens per month.

    The client would make a call to the backend and say how many tokens it was spending. The backend would then update their total, make the PDF, and send it.

    Except this is stupid. First of all, if you told it you were spending -1 tokens, it would happily accept this and give you a free token along with your report.

    Second of all, why is the client sending that at all? The client should just ask and the backend should figure out if they have enough credit or not.