Application developers are not being forced to integrating with systemd at all. They are choosing to do that because it helps them. The only developers negatively affected by this are the ones developing other init systems that don’t want to provide the same features the application developers want to use.
- 0 Posts
- 15 Comments
nous@programming.devto
Privacy@programming.dev•Vincent says "Our cloud data is absolutely secure, so you don't need to worry"English
26·21 days agoIf they claim it is absolutely secure then they don’t understand security at all and very likely have some very lax security practices.
nous@programming.devto
Programming@programming.dev•Cyclomatic caps: the limit is the lever, not the warningEnglish
5·27 days agoThree branches and a fifteen-line ceiling sounds generous until you write against it.
I disagree with this. There is a lot of situations where breaking these rules results in more readable code and trying to follow them strictly results in code that is far harder to read overall. Sometimes colocated code is the more readable solution. There is no hard and fast rule that can make code more readable. Only general guidelines that don’t always work.
This has Uncle Bob vibes which just takes this to the extreme - thinking you can only have 1 branch and 5 lines in a function. It does not solve the complexity problem. It just spreads it around and thus makes the whole program and logic flow harder to read as you need to make far more jumps through the code to understand it.
nous@programming.devtoHacker News@lemmy.bestiver.se•Switzerland proposes banning profiling-based ads to minorsEnglish
1·1 month agoCan we just ban it for everyone? If it is bad for minors it is bad for adults.
They need a basic remote API and SKD first. Now we have that anyone can implement these local daemons/translation layers if they want to. This is still early days.
They could at least have implemented a shell
They do have an interactive shells:
You can also run interactive shell. Just type ./proton-drive and then the commands directly.
Though the commands are not the same as Linux equivalents that is IMO not a big concern. Similar things like AWS S3, or even ftp also don’t have the exact same commands. It is really a trivial thing to learn how it works.
And again, anyone is free to build on this now if they want to.
I would not be surprised to see a fuse fs popup at somepoint around this.
Where’s sftp? s3? smb?
I would highly suspect this is because they don’t want to handle encryption and decryption on their servers where ever they can. Yes they need encryption for emails they receive but for every thing else they want to have as end to end protected as they can. Which means client side encryption and decryption for almost every thing. That is the big feature that a lot of people are buying into from them.
All these protocols don’t feal with encryption on the client at all. Which means if they supported them they would need to handle encryption and decryption on the server side. Which I doubt they want to do and likely work hard to avoid at all.
nous@programming.devtoHacker News@lemmy.bestiver.se•500k facial scans at UK stations yield no arrests, 1 false positiveEnglish
7·2 months agoAnd how many ex’s were stalked by the police in that time?
You assume they don’t already have a job and we’re just looking for other opportunities. Not everyone is unemployed before they apply for other jobs. If anything that is a good time to look as it gives you stronger position to negotiate from.
nous@programming.devto
Programming@programming.dev•Good Refactoring vs Bad RefactoringEnglish
01·2 years agoOr just
thing.age()which is fine and is fairly obvious it will return the age of the thing. And that is what is done in most languages that dont have computed properties.get_on a method really adds no value nor clarity to things. The only reasonfoo()is ambiguous is because it is a bad name - really just a place holder. Missing out the brackets here adds no value either, just makes it hard to tell that you are calling a function instead of just accessing a property.
nous@programming.devto
Programming@programming.dev•Good Refactoring vs Bad RefactoringEnglish
01·2 years agoMake its usage cleaner? I don’t see how a property does that at all. We are talking about
x.foovsx.foo()really. And IMO the latter tells you this is a function that needs to do some work even if that work is very cheap.x.fooimplies that you might be able to set the value as well. But with computed properties maybe not. Which IMO makes the program a bit harder to read and understand as you cannot simply assume it is a simple assignment or field access. It could be a full function call that does different things depending on other values or even if you are setting vs getting the value. I prefer things being more explicit.
nous@programming.devto
Programming@programming.dev•Good Refactoring vs Bad RefactoringEnglish
0·2 years agoFunctions do something, while properties are something.
This is my argument against them. Computed properties do something, they compute a value. This may or may not be cheap and adds surprising behavior to the property. IMO properties should just be cheap accessors to values. If it needs to be computed then seeing a function call can hint the caller may want to cache the value in a variable if they need to use it multiple times. With properties you need to look it up to know it is actually doing work instead of just giving you a value. That is surprising behavior which IMO I dislike in programs.
nous@programming.devto
Programming@programming.dev•Good Refactoring vs Bad RefactoringEnglish
0·2 years agoOr just a function. IMO computer properties are an anti pattern. Just adds complexity and confusion around what is going on - all to what? Save on a
()when you access the value?
nous@programming.devto
Programming@programming.dev•What are your programming hot takes?English
1·3 years agoYou can create some really ugly code in spite of the forced indentation in python. Indentation does not really help here at all. In all languages you can correctly or incorrectly format things. A code formatter strictly applying a coding standard helps far more here than indents vs bracers. Take a look at black it takes the pep8 standards and adds more strict things on top making code look a lot more consistent and thus makes it easier to read.
And all formatters will indent code consistently, so having it as part of the language parser does not really help improve readability at all. And even without a formatter everyone I know will still correctly indent their code no matter the language used. But sometimes forcing new lines to have a meaning does make things worst - just look at pythons lambdas which have to be a single line.
nous@programming.devto
Programming@programming.dev•What are your programming hot takes?English
2·3 years agoIn unit testing, a “unit” does not have to be the smallest possible section of code. It can be a while class or module or even set of related classes/modules. Testing individual functions in isolation leads to brittle tests that easily break during refactoring. Testing overall system behaviour results in more robust tests that require fewer changes during refactoring which gives you more confidence then you have not introduced a regression.



Define ‘actually out of ram’. If it is writing to swap then it is out of ram. That ram might not all be used by application memory, it could be used by the filesystem cache. Both are important for performance of applications. If you only favour application memory then it it will constantly dump files it has recently read and might be still required by applications rather then dropping some unused application memory instead.