I can see it going both ways. Talking about execution times, this would be an exaggeration, but then, these memes always are.
- 0 Posts
- 23 Comments
waigl@lemmy.worldto Programmer Humor@programming.dev•Repeat after me "this problem isn't bothering me". There! fixed itEnglish13·1 year agoGoing by what OP thinks “Chaotic Evil” means for sysadmins, they have clearly never heard of BOFH.
Writing good comments is an art form, and beginner programmers often struggle with it. They know comments mostly from their text books, where the comments explain what is happening to someone who doesn’t yet know programming, and nobody has told them yet that that is not at all a useful commenting style outside of education. So that’s how they use them. It usually ends up making the code harder to read, not easier.
Later on, programmers will need to learn a few rules about comments, like:
- Assume that whoever reads your code knows the programming language, the platform and the problem domain at least in general terms. You are not writing a teaching aid, you are writing presumably useful software.
- Don’t comment the obvious. (Aside from documentation comments for function/method/class signatures)
- Don’t comment what a line is doing. Instead, write your code, especially names for variables, constants, classes, functions, methods and so on, so that they produce talking code that needs no comments. Reserve the “what” style comments for where that just isn’t possible.
- Do comment the why. Tell the reader about your intentions and about big-picture issues. If an if-statement is hard to parse, write a corresponding if clause in plain English on top of it.
- In some cases, comment the “why not”, to keep maintenance programmers from falling in the same trap you already found.
In a language that has exceptions, there is no good reason to return bool here…
waigl@lemmy.worldto Programmer Humor@programming.dev•As someone not in tech, I have no idea how to refer to my tech friends' jobsEnglish3·1 year agoAs someone who is in tech… not sure, either.
Also, almost all of that is written in C, which is a successor to B, which is a simplified version of the Basic Combined Programming Language. There was never an A.
waigl@lemmy.worldto Selfhosted@lemmy.world•Encrypted fileshares in the local network?English1·1 year agoWell passwordless.
Same thing in this context. But sure, an encrypted partition would work.
waigl@lemmy.worldto Selfhosted@lemmy.world•Encrypted fileshares in the local network?English3·1 year agoDunno about ideal, but it should work.
It does have quite a bit of overhead, meaning it’s not the fastest out there, but as long as it’s fast enough to serve the media you need, that shouldn’t matter.
Also, you need to either mount it manually on the command line whenever you need it or be comfortable with leaving your SSH private key in your media server unencrypted. Since you are already concerned with needing to encrypt file share access even in the local network, the latter might not be a good option to you.
The good part about it is, as long as you can ssh from your media server to your NAS, this should just work with no additional setup needed.
waigl@lemmy.worldto Selfhosted@lemmy.world•Encrypted fileshares in the local network?English2·1 year agoInteresting. Though it does seem to to require your private key to be unencrypted…
waigl@lemmy.worldto Selfhosted@lemmy.world•Encrypted fileshares in the local network?English8·1 year agoIs sshfs an option? Unfortunately, I don’t think you can put that into /etc/fstab, though…
waigl@lemmy.worldto Mildly Infuriating@lemmy.world•Being forced to download the Reddit app onto my phone to view any 'NSFW' post, even though I'm on my desktopEnglish1·1 year agodeleted by creator
waigl@lemmy.worldto Mildly Infuriating@lemmy.world•Teams apparently can't call when using FirefoxEnglish29·1 year agoThere is more information in there that isn’t actually true and only supposed to trick some old web servers into treating it a certain way than there is actually correct information,
It mentions three different browsers, only one of which is actually true, and three different rendering engines, none of which is actually what’s used.
waigl@lemmy.worldto Mildly Infuriating@lemmy.world•Teams apparently can't call when using FirefoxEnglish621·1 year agoSidenote:
HTTP user agents have become absolutely bonkers over the years.
Wait, they managed to forge Let’s Encrypt certificates? While it explains the attack on TLS (though technically not https as originally claimed, not that it makes much of a difference), that’s even worse…
Really? That’s a rather big claim, and would change a lot for me if true. Do you have anything by the way of a source?
Also, how do you MITM https traffic without one of the parties just handing you their keys?
In your case, instead of getting a dedicated server and putting proxmox on it, I would check if it might not be cheaper to just get individual virtual servers directly.
Other than that, sure, I have been a customer for many years now, and I have always been a fan of Hetzner’s price to quality ratio.
waigl@lemmy.worldto Mildly Infuriating@lemmy.world•Price of electricity in Finland peaks at 2.35€/kWh today. Keeping my tiny granny cottage warm costs me over 50 euros for a single day. It's negative 25C (-13F) outside.English87·1 year ago50 Euros a day is insane. That’s a good portion of what I pay for a whole month.
waigl@lemmy.worldto Mildly Infuriating@lemmy.world•Price of electricity in Finland peaks at 2.35€/kWh today. Keeping my tiny granny cottage warm costs me over 50 euros for a single day. It's negative 25C (-13F) outside.English8·1 year agoSometimes circumstances leave you little choice…
Files and directories starting with a dot are hiden by default. You are aksing for this stuff if you manually unhide them.