You mean… yesterday’s code.
- 0 Posts
- 124 Comments
hperrin@lemmy.cato
Linux@programming.dev•Ubuntu Pro subscription - should you pay to use Linux?English
11·12 days agoIf you need what they provide, I don’t see why not. It’s great to monetarily support open source. Devs need to eat too.
Every time you install Linux, Linus clips a penguin’s wings.
Think of the penguins. Stop using Linux.
hperrin@lemmy.cato
Linux@programming.dev•StarBook Horizon Linux Laptop Now on Sale with 32GB RAM, Wi-Fi 6E, and CorebootEnglish
91·1 month agoAn i3-N305 in a regular laptop form factor for $1100? I’m good.
hperrin@lemmy.cato
Linux@programming.dev•Valve amended the Steam survey for December 2025 - Linux actually hit another all-time highEnglish
24·1 month agoYear of the Linux desktop and all that.
hperrin@lemmy.cato
Linux@programming.dev•[SOLVED] Send commands to Linux box via e-mail?English
2·1 month agoYes, that is technically possible, but you’ll probably have to design it yourself, because I don’t think anyone else has/will. You need to really consider the security implications of this kind of setup. If anyone discovers how to send an email in the way you’re talking about to your box, they would 100% be able to take over your box.
Simple, just use a metal mesh in each hole. Make sure it’s a really thin mesh too, like practically steel wool. Pushing 1500 watts through steel wool has never caused anyone any problems ever.
hperrin@lemmy.cato
Programmer Humor@programming.dev•Op doesn't have time for interviewsEnglish
99·1 month agoHa! Easy! Go in the other room and take a picture of the bulb. Now go back to the switches and flip each one in order, while looking at the picture. When the picture of the bulb shows it lit up, that’s the switch.
- Doesn’t work with non-square icons.
- Doesn’t align with multi-line text (text wraps to underneath icon).
- Only aligns centered (no baseline).
But that’s pretty good for most cases.
Centering a div is pretty fucking easy nowadays. What’s way harder is aligning a god damned SVG icon with text.
What’s even better is the source code. It’s just true, but false.
Tell me you’re from the USA without telling me you’re from the USA.
hperrin@lemmy.cato
Programmer Humor@programming.dev•Its actually because I'm a noob 😓English
12·2 months agoJoke’s on you, all my embarrassing code is online.
Mint or Fedora. You’ll get tons of responses, and none of them are wrong, because no one can tell you what’s best for you, but those are the most popular choices among newbies, and they are very user friendly and approachable.
The best advice I can give you is try a bunch of different ones and see which one you like best. They’re free and easy to reinstall if you end up liking one over another.
Best of luck and I hope you find one that you truly love. :)
hperrin@lemmy.cato
Programmer Humor@programming.dev•It was best as a silly toy language in the 1990's...English
1·2 months agoIt is resource hungry. I’ll give you that. But it’s neither slow nor messy to look at. Have you ever used NetBeans or Eclipse?
hperrin@lemmy.cato
Programmer Humor@programming.dev•It was best as a silly toy language in the 1990's...English
11·2 months agoI’m sorry I didn’t think it was [1,2].
hperrin@lemmy.cato
Programmer Humor@programming.dev•It was best as a silly toy language in the 1990's...English
1·2 months agoHere’s my thought process: plus is for numbers and strings, so it’s gonna convert the arrays to either numbers or strings. If it converts them to 0, the answer is 0, if it converts them to 1, the answer is 2, if it converts them to strings, the answer is “12”.
You know what I didn’t say? [1,2]. Because plus is not for array concatenation. The question is meant to make you think you’ll get [1,2], because why else would you use plus on arrays?
In a language that uses plus for concatenation, you’ll see that kind of code all over, and know what you’ll get. But you never see that in JavaScript, because that’s not how we concatenate arrays.
hperrin@lemmy.cato
Programmer Humor@programming.dev•It was best as a silly toy language in the 1990's...English
21·2 months agoOk, except I did predict it. It turns them both into strings and gives you “12”. I checked it. But I didn’t mean predictable as in, you inherently know what it’s going to do, I meant predictable as in, it will follow the same basic rules in each circumstance.
So, should web pages be prone to crashing if everything isn’t perfect? I don’t know if you remember XHTML, but that was basically what happened with that. You have a “div” within a “p”? Page crashed. You have an unclosed “span”? Page crashed. XHTML was abandoned because is constantly broke the web.
Web technologies are supposed to be resilient, so throwing TypeError is the last resort for something that absolutely cannot work, like trying to add to a Symbol. Since nothing from the user is ever a Symbol (there’s no input that can give it, and it can’t be stored in JSON), it’s acceptable to throw a TypeError there.
JavaScript is meant to be fast and resilient. Its type conversions make sense when you consider those goals.
hperrin@lemmy.cato
Programmer Humor@programming.dev•It was best as a silly toy language in the 1990's...English
1·2 months agoI mean how can you define a sensible way to subtract Infinity from an array, or add an object to a string? The way JavaScript defines it is predictable, easy to compute, and handles bad code gracefully, which is a good tradeoff between doing something like matrix arithmetic on a CPU and just straight up crashing. If you’re doing silly things like that, you should know how JavaScript coerces types, but I don’t do silly things like that, so I don’t really care how JavaScript would handle it. Every language will do silly things if you force it to. That doesn’t make it a bad language.
Do you feel the same about C because C lets you take pointers of pointers of pointers until you’re addressing random memory in an unpredictable way? No, because it’s silly to do that.


I love old hardware. It took me eleven years to finally decommission a top-tier CPU I got in 2015. And that’s only because I got an extra CPU and motherboard from a work upgrade.