hikaru755

joined 1 year ago
[–] [email protected] 4 points 11 months ago* (last edited 11 months ago) (2 children)

It's easier to understand, easier to review for correctness, and less likely to cause problems with additional changes in the future. Even though it sounds counterintuitive, software developers generally try to write as little code as possible. Any code you write is a potential liability that has to be maintained, so if you can instead just call code that others have already written and that has been tested, you'll want to do that. (Note that "less code" doesn't mean fewer lines of code, it means less logical complexity, which is often, but not always, also less in terms of characters/lines)

[–] [email protected] 13 points 11 months ago (12 children)

Using YearMonth.atEndOfMonth would have been the easier choice there, I think

[–] [email protected] 1 points 11 months ago

At the danger of being whooshed here - with Goat simulator specifically, I think it's pretty obvious that the game is overall not meant to be taken seriously, including the title.

[–] [email protected] 16 points 11 months ago

This is why you don't use any singular storage medium without backups

Ftfy. Using any medium as the exclusive location of your data without any backup is a stupid idea, but if you're gonna be that careless, using Google Drive is one of the less stupid options out there. The chance that google fucks up in an irrecoverable way is infinitely lower than you fucking your local storage up or your house burning down.

Privacy is another factor to this of course, but if we're just looking at the security of your data, using only Google is way better than using only your self hosted solution.

[–] [email protected] 18 points 1 year ago (2 children)

Also what would happen if a user, who has no idea what they are doing, uninstalls edge without having another browser available?

I guess not allowing the current default browser to be uninstalled while there is no other program available that can be made the default browser would be a simple and viable solution here.

[–] [email protected] 1 points 1 year ago (1 children)

For those not willing to give up on convenience, on Android, there's Lockdown mode, which will temporarily disable access via biometrics and force the use of your PIN/password to get into your device. Not sure about other brands, but on Pixel, you can enable it by long-pressing the power button and tapping on "Lockdown".

[–] [email protected] 29 points 1 year ago

Not if the site is actually GDPR compliant they are not. You are only allowed to set tracking cookies after consent has been obtained, which cannot be assumed before the visitor has made a choice.

[–] [email protected] 2 points 1 year ago

I'm not sure why I have .protonmail@protonmail

Sounds like you did something wrong when choosing your email address? I have [email protected], which looks just fine imo. Unless I'm misunderstanding what you're talking about

They also don't let you import calendars on the calendar app

At least in the wepapp, this works fine for me, I imported my previous Google calendar no problem and am also subscribed to my girlfriend's calendar.

import passwords on the password app

I imported my passwords from 1Password and that worked flawlessly. Can't speak to other password managers.

You're basically working off a browser extension because you can't do them on the webpage and they don't have clients.

This is hopefully gonna be fixed soon, a standalone proton pass app for desktop is in the works according to their public communication :)

[–] [email protected] 2 points 1 year ago

That has nothing to do with the ampersand, it's just that post titles and bodies in general have different fonts. It's just easier to notice in the ampersand since it's so different between the fonts.

[–] [email protected] 1 points 1 year ago

There are some cases though where the code is just complicated for reasons outside of your control, in which case "what" comments are good - but they should never be taken at face value, but only used as a first step in understanding the code. There's a significant risk of the code not actually doing what the comment says.

[–] [email protected] 2 points 1 year ago (1 children)

Oh, that sounds really cool! At what time does this validation happen? While you code, or later at build time?

[–] [email protected] 2 points 1 year ago (3 children)

I'm not talking full blown ORM here, not a fan of those either. I'm talking about some light weight wrapper that basically just assembles SQL statements for you, while giving you just a little more type safety and automatic protection against SQL injection, and not sacrificing any performance. I'm coming from the JVM world, where Jooq and Exposed are examples of that kind of thing.

view more: ‹ prev next ›