Sounds like what a lot of beginner programmers do as well.
- 1 Post
- 79 Comments
For my own Rust project I require myself to have a comment for every unwrap call that explains why that unwrap will never panic. For everything else I let the function return an error, with help of the anyhow crate and error contexts.
Be careful, the actual logging can happen at a later time, and because the log function may take a reference to the value, if you modify r it may show the modified version of r in the logging instead of the original r.
Using -F with tail is even better than -f because it handles files getting truncated or getting created.
Exactly! This is why the server should just send a clear error message. 99% of the time the client just wants to show the error message to the end user, and not have to wrangle all kinds of normalized data into one.
This looks so over-engineered. Most of the time you only need an error message. Make the message clear enough so that it can be shown to the end user.
Everyone in this thread: PHP sucks because it was bad when I last used it 20 years ago.
Those haven’t existed in PHP anymore for a very long time.
Well better late than never.
darvit@lemmy.darvit.nlto
Privacy@lemmy.dbzer0.com•What People Think Privacy/Security Is
2·10 months agoThis is why you should always have a backup method of logging in. For hardware security keys they always recommend having a second key as backup.
darvit@lemmy.darvit.nlto
Free and Open Source Software@beehaw.org•Open Source Android Games That Look Amazing! (On F-Droid)
4·1 year agoLoving Flowit! Thanks for the recommendations.
darvit@lemmy.darvit.nlto
Programmer Humor@programming.dev•(How to trigger programmers (and make them irrationally angry)
3·1 year agoIt’s fine, we all know what you meant.
darvit@lemmy.darvit.nlto
Programmer Humor@programming.dev•(How to trigger programmers (and make them irrationally angry)
16·1 year agoActually it’s [object Object]
darvit@lemmy.darvit.nlto
Privacy@lemmy.dbzer0.com•Mozilla deletes promise to never sell Firefox data.
3·1 year agoUpload, download, transmit, display, or grant access to content that includes graphic depictions of sexuality or violence,
darvit@lemmy.darvit.nlto
Environment@beehaw.org•2024 will be the hottest year on record, even hotter than expected
2·1 year agoThanks it works now.
darvit@lemmy.darvit.nlto
Environment@beehaw.org•2024 will be the hottest year on record, even hotter than expected
2·1 year agoYour diagram didn’t load, but otherwise good comment.
You mean like those amateur wrestlers wearing singlets?
darvit@lemmy.darvit.nlto
Technology@beehaw.org•Researchers uncover critical vulnerability in Microsoft's Multi-Factor Authentication, allowing attackers to gain access to user accounts such as Outlook emails, OneDrive files, Teams chat, and more
8·1 year agoThat’s a totally different point though, on which I agree.
darvit@lemmy.darvit.nlto
Technology@beehaw.org•Researchers uncover critical vulnerability in Microsoft's Multi-Factor Authentication, allowing attackers to gain access to user accounts such as Outlook emails, OneDrive files, Teams chat, and more
8·1 year agoThere’s no reason to self-backdoor the authentication mechanism if you already have access to the account’s data. Also it sounds like you are very smart.

I doubt that’s how it works, because the gas company could just set the pressure on the pipes, like how divers have a certain pressure when breathing out of a tank with varying pressure.