• 5 posts
  • 45 comments
Joined 3 years ago
Cake day: July 3rd, 2023
  • 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 I’ve really noticed it’s hard to find info and therefore use any project that does this.

    and it must suck because anyone new, instead of finding the answer to their question in a forum archive from when it was first asked, has to log in and ask it again.

    whenever I have dumb noob questions on setup and I see a discord link I give up a little.

  • I just made a github action that merges anything updated in master into feature branches automatically. you get pinged if there’s a conflict but the automerge keeps drift to a minimum so it’s less common and fixed sooner.

    better than merging poorly tested/reviewed code.

    and yeah, a small team of superstars doesn’t need reviews so much, but most teams have a range of devs with different levels of experience and time working with particular parts of a large codebase. Someone more senior or more expert derisks people picking up tickets and improves code quality.

    it also leads to plenty of good conversations about the best way to implement, so overall it’s a win.

The one I linked might be a good one, I think I’ve used it but I’m on holidays so I can’t check.

The real wisdom here is, where possible, implement a basic configuration class and serialise it out to a file using a library, then only tweak it.

In your class you can have everything strongly typed and assigned and so forth and all the joy of a good IDE helping you along, then you can use the tiniest console app to just serialise it to a file for you and the syntax is guaranteed to be perfect because it’s a tested library.

You don’t even really have to learn yaml and it’ll be perfect. If you need to tweak it it’ll still be pretty easy because all the values and structure will make it clear what’s happening.

Obviously less useful for people who aren’t devs, but we are so we might as well play on easy.

  • 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’ve always hated the idea of using a subscription/cloud hosting for password management. I feel like I should have a LOT more control over that stuff and I don’t really want to hand all my keys over to a company.

All my secrets have been going in a highly encrypted archive with a long passphrase, but obviously that isn’t convenient on all devices. It’s been fine, I can open it on any computer but it’s not super quick. It does have the advantage of being able to put in multiple files, notes, private keys but it’s not ideal.

Anyway, finally found something that isn’t subscription, and has a similar philosophy - a highly encrypted archive file, and it’s open source and has heaps of clients including web browser plugins so it’s usable anywhere, and you can sync the vault with any file sync you like.

Thought you guys might appreciate the find, password managers have always been a bit of a catch 22 for me.

Note for android i found keepassxc the best app, and i’m using KeePassHelper browser plugin, and the KeePassXc desktop app as well as the free official one. Apps all seem to be cross platform.

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

  • use it for home assistant. I’m astonished because my test install from years ago on a pi that’s around 7 years old is going with no intervention aside from updates. it’s crazy robust.

    for a while my laptop was slow and I needed a test local environment rebuilding with webpack so I set up a newer pi that ran the Dev servers so my laptop didn’t choke. I’ve got a better laptop now.