devdad

@devdad@programming.dev

This profile is from a federated server and may be incomplete. Browse more on the original instance.

devdad,

But…. They’re cunts. Lovely cunts. Cunts I’d do anything for. But still cunts.

devdad,

That’s not an intro, it’s a work of art wrapped in cocaine.

devdad,

As someone who uses programming.dev as my daily instance, I’d be happy to help.

I’ve got over a decade of experience as a software engineer, with over 5 in Go.

devdad,

Google definitely has its moments of returning crap results, but you chose a terrible example.

Results from both docker and redis, on topic for exactly what you asked for.

Why even use Google at all, when you could search docker hub If that’s what you knew you wanted.

devdad,

I don’t drink

devdad,

Haha yeah it’s weird how NOT drinking is weird. I couldn’t care less what other people do, nor what they think of me; drinking is just no longer appealing to me

No idea why you got downvoted so bad, I guess I did have the benefit of your edit when I read your reply.

devdad,

Which do you agree with?

Edit: There is maybe one that’s semi-ok (reversing a linked list) but it’s not a red flag if an engineer can’t do it on the spot.

In my decade+ career, I’ve used a linked list in production code…… maybe twice? Thats not to say they aren’t useful, but I don’t make a habit of committing stuff to my memory unless I’m going to use it.

Could I do it? Absolutely. Could I do it without searching it up? Yea. Would I search it up anyway? 100%

devdad,

Definitely this. I run a home lab, six servers, and I use Synology Photos because it’s so much better than the self hosted alternatives.

devdad,

Sort yourself out. It’s embarrassing.

Question for the Ergo Mechanical Keyboard community

Hello adn welcome to my plea for help! I’ve been PC gaming for a very long time, and in the beginning I used a split dome keyboard, it was fine for what it was. I switched back to standard keyboards though and have been using them for years. I’ve been a fan of corsair mechanical keyboards for the last 15 years, the last 4...

devdad,

Clearly you need more practice with it 😏

devdad,
  1. It was a joke
  2. Maybe proof read your messages before you send them. It was FULL of mistakes.
devdad,

Men are people too, so “can people not be terrible” is still accurate…

devdad,

What are you going on about?

Nobody in this thread has said “not all men”.

The top comment said “can people just not suck”, then OP responded saying “actually, in this case, only men suck”.

devdad,

My dog absolutely loathes fireworks. She gets incredibly stressed.

Unfortunately nothing we’ve tried has worked to calm her down. She has several beds, we’ve tried calming sprays you plug into the wall, white noise, the lot.

The funny thing, we tried to desensitise her by playing firework noises on the TV. Even with the TV up full volume, sound bar with full bass, she walks around like nothing is happening - doesn’t care in the slightest.

But the faint sound of a firework (or a wheelie bin moving sometimes) and she’s shit scared.

devdad,

I have no skin in the game for the app itself, I just saw your post on the “front page” while scrolling and shitting….

there are 30,000 files

I’m more intrigued why you appear to be managing this with files. Why not use a database?

Edit: you’re also not handling misses very well. I just tried a random string and got the below error. That doesn’t tell me if it was my fault or a server error.

An error occurred while processing your request. Please try again later.

devdad,

Yeah, that error message is left over from an earlier version where I sharded by acronym length instead. At that time, there would always be a file. The problem was the files were getting to be huge at the 50 character length (20MB) and performance went to shit on poor mobile connections. So I refactored to shard by first 4, and files dropped down to a few K each and became a lot snappier.

I don’t think that’s necessarily true. I just tried a random string, and I got the correct 404 response back, but it doesn’t look like the app handles that case and it just prints that error on any error.


<span style="color:#323232;">            .catch(error </span><span style="font-weight:bold;color:#a71d5d;">=> </span><span style="color:#323232;">{
</span><span style="color:#323232;">                </span><span style="color:#795da3;">console</span><span style="color:#323232;">.</span><span style="color:#0086b3;">error</span><span style="color:#323232;">(</span><span style="color:#183691;">"Error fetching or processing the JSON file:"</span><span style="color:#323232;">, error);
</span><span style="color:#323232;">                displayError(</span><span style="color:#183691;">"An error occurred while processing your request. Please try again later."</span><span style="color:#323232;">, tableBody);
</span><span style="color:#323232;">            });
</span>

Anyway, I wasn’t trying to shit on it. Good job :)

devdad,

The 404 should just say the same message as “acronym not found”. It just means the first 4 letters didn’t match a file on the backend; I didn’t enumerate all the blank json for A-Z*4.

Yeah, but it doesn’t translate to the site. That’s what I’m trying to say :) Your catch above doesn’t distinguish between 404 or anything else (5xxx) and displays An error occurred while processing your request. Please try again later for all eventualities. So, regardless whether the acronym wasn’t found or there was a genuine server error, the same error message is displayed.

It was a really challenging project to process all the data. As with most large datasets, there are tons of pain points. Like 60% of the time spent was parsing out the song name from the janky first line of metadata. Some pain I dealt with over the project off the top of my head:

I honestly have no idea what you had to drag it all out from, but it looks well implemented from the small amount I played around with it. I’ve never used Firebase, but it looks like you got it working so that’s a good job too.

It’s probably just my old man brain that saw you were doing this all with files and it felt odd. That’s not to say it’s wrong, it’s just different to what I would have done.

There’s a bunch of advantages to databases, like indexes and partial/fuzzy text matching - but I can certainly understand why you went this route if you needed to keep costs down and didn’t want to bother with any DB maintenance.

Well done :)

devdad,

If you’re talking about a SimpleLogin, you CAN email from it. I forget the exact terminology (I can check if you need) but you can generate a forward address that you email and the receiver (Spotify) will see it as If you have emailed from your forwarding address.

devdad,

Unsure if your asking seriously (if not, whooosh to me), but it’s an open source alternative to Plex.

Plex is a media server that you run to host your TV shows and movies. Think of a self-hosted Netflix.

devdad,

It doesn’t say you only breathe once every two minutes, though.

You just reset the timer more frequently than once every two minutes. It doesn’t change the fact you only have two minutes from each breath.

devdad,

Right. I personally struggle with a lot of the “terms” these days - not because I think they are wrong, only because I don’t always understand what they mean.

On Reddit, when I saw them used, I would ask for clarification and I’d learn something.

Being dismissive to people trying to learn isn’t going to bring them into the ally space.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • rosin
  • slotface
  • ngwrru68w68
  • InstantRegret
  • PowerRangers
  • kavyap
  • tsrsr
  • DreamBathrooms
  • tester
  • everett
  • hgfsjryuu7
  • khanakhh
  • GTA5RPClips
  • vwfavf
  • Durango
  • cubers
  • tacticalgear
  • ethstaker
  • cisconetworking
  • normalnudes
  • modclub
  • anitta
  • All magazines