3,054 karma · joined Jun 6, 2012 (14y ago) · 1,030 submissions
comment 10y ago · link · parent
getDescription simply needs to return a Description object while getTitle returns a Title object. Duh.
Only in the final rendering should it get turned into a string and there it should only accept a Title type for doing so.
Okay, I'm kind of joking, but this is seriously the solution if you really want to get down to it - primitive overuse is the problem, so wrap it in a type that makes it explicit. You need cheap and easy types to take full advantage of this sort of thing.
EDIT: And even with those reading code developed in such a way may go overboard at some point. I'm not sure as I haven't really seen it done to the fullest extent possible. Typically even when taking a fairly strong advantage of such a type system, unit tests and stuff are still used, but theoretically you could enforce their parameters entirely in the type system. Of course, that enforcement can also be incorrect, but it does make it clearer in many cases.
comment 10y ago · link · parent
comment 10y ago · link · parent
I run devops though for a small business and we've avoided the issue entirely using runit for our software.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
I can get a device like a OnePlus 3 for about 60% of the price and it has better hardware to boot. In terms of storage, RAM and CPU it's more comparable to a OnePlus 2 which is about 40% of its price.
Keyboard is nice, but not double the price and lose features I rely upon like AdAway and XPrivacy kind of nice.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
https://f-droid.org/repository/browse/?fdid=org.schabi.newpi...
comment 10y ago · link · parent
comment 10y ago · link · parent
If you're paranoid, configure your SSH server to only accept Curve25519-based key exchanges, only use AES with authenticated modes or CTR+ETM or chacha/poly1305, and only take ed25519 or long RSA authentication keys.
Assuming your clients are up to date it should work without any major impact. I also strongly recommend rejecting NIST "random" curves in your hostkey verification, better RSA or ed25519 than the current default of the somewhat questionable ECDSA-based keys.
comment 10y ago · link · parent
Hmm... http://twister.net.co/ maybe? The biggest issue is going to be mobile, but if you have enough people firing it up on servers and stuff, you'd probably be okay. And then of course you realize that there's also the even bigger issue of actually getting people to use it. You're fucked there unless you have some serious marketing talent, which most people capable of writing such a thing in the first place lack.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent