• 5 Posts
  • 39 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle



  • I work in a company with other people. it’s not a good idea to have an idea where you have to specialise in a range of things to be successful. I specialise in programming.

    also, those benchmarks translate to better user experience which means they actually use our product, and lower hosting costs.

    frameworks and patterns reduce bugs and let us create features quickly. it’s important, if you think it’s pointless maybe it’s not for you. if you want to go do a startup instead, good luck.












  • yeah the issue honestly is how much someone else has to read to understand your code. it’s weird because the whole article is about making readable code for the next person and he never stops to address the fact that leaving 10x as much code to read might also make life more difficult.

    I feel like he just wanted to make a point about how it’s nice to make types immutable and suggest other techniques can be worth implementing too, which I agree with, but honestly his premise is a trainwreck.






  • I did that once when I moved from one DB IDE to another and didn’t realise the new one only ran the highlighted part of the query.

    there were thousands of medical students going through a long process to find placements with doctors and we had a database and custom state machine to move them through the stages of application and approval.

    a bug meant a student had been moved to the wrong state. so I used a snippet of SQL to reset that one student, and as a nervous habit highlighted parts of the query as I reread them to be sure it was correct.

    then hit run with the first half highlighted, without the where clause, so everyone in the entire database got moved to the wrong fucking state.

    we had 24 hourly backups but I did it late in the evening, and because it was a couple of days before the hard deadline for the students to get their placements done hundreds of students had been updating information that day.

    I spent until 4am the next day working out ways to imply what state everyone was in by which other fields had been updated to what, and incidentally found the original bug in the process 😒

    anyway, I hope you feel better soon buddy. it sucks but it happens, and not just to you. good luck.