• 4 Posts
  • 28 Comments
Joined 1Y ago
cake
Cake day: Jul 03, 2023

help-circle
rss



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


on the one hand, yes, I write software and take showers when I’m stumped because it’s a great way to think through it.

on the other hand the world didn’t need an article about it.


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’m happy people are sharing stuff to Lemmy, it’s been a little quiet.

I definitely value the Forbes article over the MSN but we might not be talking about it if we hadn’t seen this post. let’s not be too critical when people are participating positively.


that’s literally the whole point of this?

the point of this is a new youtube is unlikely to take off because people can’t start using it without missing all their regular content.

this means you can keep all your regular content and add new sources, with the same creators, which means they can start to move to new platforms and take their followers. that’s how we’ll replace youtube.


it’s so good, wish I’d found it sooner


My new favourite password manager
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.
fedilink

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.


it’s free and convenient? if there was another reliable, free git host with a polished web interface and decent cli for features like issues, sure, I’d consider moving to it. I’m not in the market though, I have other work to do

also the github actions workflows are brilliant.



yeah, the comic describes it as “the virtually impossible” and directly notes we’ve spent 50 years trying. it’s just a really interesting perspective that it was a recent truism that this stuff is virtually impossible, and we’ve solved it and a huge number of other very difficult problems in less than a decade.

I’m not saying we aren’t building on centuries of work, i’m saying the rate of recent progress is remarkable. I feel like you missed the point on purpose in order to have a hot take.


they did good

edit: tbh honest i think it was around 5 years ago i started being able to identify things with google lens on my phone. they worked fast!


We can get a computer to tag the birds, answer questions about them, and generate new pictures of them.
fedilink

sort of? are you saying you just really like both, or no man’s sky makes you want to play starfield? either way it’s all good, it was just a head scratcher for me.



it’s fine to learn with. preferable even. I lead a team of devs writing/maintaining four related front-end applications and at a point you really need a better language.


do I get updates? I own word 97, I’m not thrilled I can still use it…

also, what is it?!


would transpilation of C libraries help with the lack of libraries however?


I’m actually cool with that. have a big dataset? charge a fee to use it for training


I’d rather like it if they train it on stuff I say. I want the AI of tomorrow to reflect my thoughts.

seriously I would much prefer gold tier journalism and news sites let it crawl so when people use it to make choices in the future they’re guided to better choices.

it is honestly so hard to know what will happen though, it’s so complicated it’s virtually guaranteed we’re not correctly anticipating the consequences of any of this. I’m not really even talking about the AI, I’m talking about the effects on society which are a lot more complex.


ahhh that makes sense. i was remembering microsoft getting broken up/fined and wondered how an “everything company” could possibly avoid that. turns out you have to have a monopoly to start with, which might have been an issue before he tanked twitter. so i guess genius move, 5d chess etc



I think personal micro-blogging (mastodon) and posting forum-style topics (reddit) can have different words?


he literally named his kid Xæ

dude just loves throwing out Xs

like an illiterate narcissist handing out unsolicited autographs


lol I clicked on the x.com link, then tried to close the “you should log in” shit by tapping the logo.

it just looks like a close button… 😂



good article and I appreciate this isn’t the point, but on a personal level I feel like both at once is pretty bad.

Generally you can have something fast or have something stable and you’re always striking that balance. Sucking at both at the same time should be a red flag.