englislanguage

joined 5 months ago
[–] [email protected] 1 points 4 months ago

One example for self documenting code is typing. If you use a language which enforces (or at least allows, as in Python 3.8+) strong typing and you use types pro actively, this is better than documentation, because it can be read and worked with by the compiler or interpreter. In contrast to documenting types, the compiler (or interpreter) will enforce that code meaning and type specification will not diverge. This includes explicitly marking parameters/arguments and return types as optional if they are.

I think no reasonable software developer should work without enforced type safety unless working with pure assembler languages. Any (higher) language which does not allow enforcing strong typing is terrible.

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

I have worked on larger older projects. The more comments you have, the larger the chance that code and comment diverge. Often, code is being changed/adapted/fixed, but the comments are not. If you read the comments then, your understanding of what the code does or should do gets wrong, leading you on a wrong path. This is why I prefer to have rather less comments. Most of the code is self a explanatory, if you properly name your variables, functions and whatever else you are working with.

[–] [email protected] 3 points 4 months ago

Same question on reddit a while ago

As suggested there, I recommend to use a multimeter to identify the power socket pins. Roughly half of them should be ground. Most or all of them should correspond and be connected to the SATA power connector pins on the other side.

[–] [email protected] 10 points 4 months ago (1 children)

+1 on that. The User's guide of a similar device (source) mentions a 10-pin CPLD connector Reserved for IBM use

[–] [email protected] 8 points 4 months ago

I've seen a few people with PhD who want to be developers being put into management roles, getting quite unhappy.

That said, if this type of PhD clearly communicates they want to be developers, the often still get jobs, maybe with lower pay compared to the manager but a bit higher pay compared to the developer

[–] [email protected] 4 points 4 months ago

Wow, that's an impressive list of amateur tanks. Do they also sell real cars in the US? (Rhetorical question)

[–] [email protected] 7 points 4 months ago* (last edited 4 months ago)

Syncthing on Android has an option to only sync when on AC battery. The PC client might have a similar option. If not, you could probably configure something similar via systemd or udev under Linux.

I don't think syncthing has proper means to synchronize contacts or anything else that's not file-based though.

I use syncthing and prefer it for synchronizing files between my devices.

[–] [email protected] 0 points 4 months ago

Does the add-on work the same way in Chrome? Or does Google break it in a way similar to uBlock Origin with the WebExtensions v3 update?

[–] [email protected] 3 points 4 months ago

Is this all true for addons available from Mozilla's add-on site?

PS: Mozilla had to limit installing addons because lots of companies installed malicious addons into browsers of their users, often without knowledge or informed consent of their users.

[–] [email protected] 22 points 4 months ago* (last edited 4 months ago) (2 children)

Once again, it's mostly about the money

Do you have evidence or is this pure speculation?

How and why should Mozilla get money from Russia? Isn't it more plausible if Russia were blackmailing Mozilla?

[–] [email protected] 9 points 5 months ago (1 children)

I think we should not expect a volunteer (or small group of volunteers) to keep up with a billion dollar company

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

Yeah, that's a very useful exception.

view more: next ›