21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 5y ago · link · parent
The most prescient thing I saw about the Panama Papers leaks was that the biggest reason so few americans were present in those is that America is basically already a tax haven for rich people.
A flat income tax rate is not progressive by the usual definition, even with a flat deduction (imagine trying to scale _that_ to inflation and the endless debates). And we already have a solution for what you propose: gradual increase in the tax rate based on income levels! It has the added advantage of actually handling inflation (since the dollar amounts will go up over time anyways), and don't require a single "big tax number".
If you believe what you say, just argue to remove various deductions and exceptions. We already have percentage-based tax system, there's no need to be that much cleverer.
comment 5y ago · link · parent
The non-charitable reading is that they're implying that "access to information" is the blocker from NKers just rising up and accepting "western" norms, and _if only they knew how amazing society could be_, they would change their minds.
It's the same brainworms as the liberal "oh, if only you knew all the facts then you would agree with me". It implies some sort of objective truth that western society has found, yet these societies haven't.
Educated people in NK know about voting and democracy. It's not some super well-kept secret to keep the masses down. Censorship is just applied in much more banal ways (preventing too much embarassing information about people in power from spreading, and making it hard for any form of opposition to organize itself)
comment 5y ago · link · parent
Yes you can learn to be a script kiddy and plan heists without having the pledge of allegiance as part of a balanced breakfast. Books and random websites and stuff!
Not to mention that people from NK or China don’t just explode from logic errors after discovering Facebook.
And yes people have ways of getting around internet blocking stuff for “reasons”. They get exposed to minion memes and come out without being totally radicalized.
comment 5y ago · link · parent
My dream would be to do a gig of performance tuning for these companies on their store platforms, cuz they clearly need it.
comment 5y ago · link · parent
It happens consistently enough that I'm very convinced there's a state machine bug in the UI between the autocomplete and the language picker.
You don't even have to be _that_ language proficient to end up with English/Qwerty + some random other language. So weird that this is so buggy.
comment 5y ago · link · parent
comment 5y ago · link · parent
Not to mention that all this futzing around is usually indicative of leaky abstractions up the wazoo.
There are hard things in programming, sometimes. It's hard to write iterative quick sort without introducing off-by-one bugs. But most shit is easy, and a lot of hardness is around just busted tooling.
comment 5y ago · link · parent
This is far from the first "french mathematicians with a 10-year-old's sense of humor" thing, and probably won't be the last, but all this "oh it's just a word in French" is, from my undrestanding, bait.
To be honest, I'm not super convinced the process discussed the article is happening in much good faith either. But that's just my opinion and heavily biased towards my own experiences interacting with people from Inria.
comment 5y ago · link · parent
RasPi have that consistency factor and the "game boy" factor of kinda being able to throw one against a wall and for it to work.
It's not the best programming experience but at least it'll be consistent. (Part of this is a Python problem tho tbh. Every Django Girls thing is half "go through the code" and half "try to figure out what weird situation your computer is in", even for Macs)
comment 5y ago · link · parent
I'm not tone policing but contesting the premise that "aggressive tone" = "direct". For example
>(Windows took a different approach and got it right. In Windows, it's okay for multiple DLLs to provide the same symbol, and there's no sad and desperate effort to pretend that a single namespace is still cool.)
>(Windows got this right, where multiple DLLs can provide the same symbol)
There you go. Shorter, and not wasting 3 lines to express your feelings, and _you can still say Windows got it right_.
My feeling is that you can go in and describe a thing succinctly and to the point, and actually get your opinion across! It will be more effective, shorter, and your opinions are backed up with fact! No fluff needed.
comment 5y ago · link · parent
I think the difficulties around relationship building in this time are deeply linked to whether you are able to socialize "through a computer" well or not. I'm not really talking about Zoom etc so much as just text chat or the like. There are definitely people more and less comfortable at it.
comment 5y ago · link · parent
By asking for changes to be done in a highly-available way, you reduce coordination efforts needed for release. "Our main branch is always deployable" is a great default! And while actualy DB schema changes aren't multiple times a day, even on a relatively small team simple DB changes come into the pipeline once a week? Most aren't backwards-incompatible, but the beauty of it is that we don't even have to consider that much, because of this strategy.
Maybe the "no downtime" stuff is unreasonable. In my case, we are a relatively small team servicing a good amount of customers (who do time-sensitive work), so the effort here is worth it. But if you can get away with it (with downtime windows being big enough to recover from issues), then it's definitely gonna be easier.
comment 5y ago · link · parent
- engineers/CS staff tend to want to work during working hours
=> it is hard to plan for downtime during normal working hours.
If you want to deploy multiple times a day, and if you want to be able to merge in new code into your main branch, and you don't want to have to gate in merges etc for "deploy windows" with downtime, a great solution is to just do the extra work to avoid downtime on simple stuff.
I think the irony is that you really need to already be a certain size to do downtime-centric workflows reasonably without asking a bunch of people to do stuff at weird hours.
comment 5y ago · link · parent
I guess this is partly my fault, cuz I said this list was pedantic but I didn't go in deep enough ("rollback if something is clearly blowing up" for example).
I mean yeah, don't delete the old data until you're sure! But you know what? If I'm moving two booleans into an enum with 4 states (or less states but I checked the production database to confirm a case didn't exist), I feel pretty confident about doing that data move and not having some secret data being missed.
You can use logic/math/data analysis to determine you are handling every case! And yeah, you can make mistakes, but the variety of mistakes become much smaller. And this is all in the framework of having backups of your data, having reviews, letting time pass to reduce uncertainty... just run of the mill "run stuff on computers and editing multi-tenant data" stuff.
comment 5y ago · link · parent
If you had a Django plugin that, like, let you say “oh the previous version of the app that was deployed had this model shape, so during this migration I need to do X/Y/Z” using the git info, you could do more.
But that would be a leaky abstraction and would run into a sort of coordination problem mid-deploy (what states are other machines in?). There might be some restrictions you could place to make this work though
comment 5y ago · link · parent
There is one thing though, and that is that a lot of these transformations end with more information, so you can usually recover the old state if you ever needed to (or write some compatibility shim for whatever reason)
I had a whole part about rollbacks (and an intuitive proof about why each step was needed and not being able to skip any) in my notes for this, but I decided to leave it out cuz I couldn’t do it justice just yet.
There are so many little details to cover in this space, and honestly the vocabulary and tooling are a bit poor so it’s hard to be succinct
comment 5y ago · link · parent
I think that making it so that people who have a lot of accumulated wealth are asked to put more into the collective coffers is an extremely obvious and fair-ish way of doing things. Much more so than dumb things like "roads should be paid for by gas taxes" (we don't pay for libraries with book taxes! Or schools with child labor income tax!)
comment 5y ago · link · parent
Though... even though things like estate taxes have these rules (either "first million isn't taxed" or "primary residence isn't taxed" etc, depending on jursidiction), most people tend to not actually read the details and assume that the gov't wants to take the family farm.
No, I don't think it's your god-given right to hand down a $2 million townhouse without paying taxes.
2812.
The pedantic checklist for changing your data model in a web application(rtpg.co ↗)
310 points · by rtpg · 5y ago · 98 comments
comment 5y ago · link · parent
My experience (real world, for actually existing code) is that property tests often require a lot of fiddling with the data generation, in order to actually stress your system in interesting ways. If you just throw "totally random" data into your system, you won't be testing very interesting properties. Amazing assurances and payoff from doing it, of course! Just like... "just generate random arbitraries" works a lot less when you're working with 100 field structs and only 10 or so "matter" in senses you care about.
To my knowledge I have not seen a property testing toolkit that leverages code coverage in the way fuzzing does.
comment 5y ago · link · parent
Classic example for me is how Mac will fuse the top bar and a maximized app's toolbar. I want the top bar sometimes! But I like it not being a permanent fixture if the app I'm using needs it.
A lot of people want the DE for when they need it, and want it to not be in the way when they don't. That's what a lot of people mean by that IMO.
comment 5y ago · link · parent
Imagine anyone working on GNOME stuff reading this! There have been leaps and strides in making Gnome stuff stable and work out of the box. I remember using Linux 5 or so years ago, and if I wanted to do GUI configuration of X/Y/Z, almost all the time it was some random app that someone just uploads to sourcefourge, with random likelihood of working. Now I have basically all the coverage I need just from out of the box Gnome stuff (I'd love for pavu-control to get brought in but...)
So much stuff just works. Someone needs to do an indiegogo about the file picker, but it _also_ basically works, and the design of gnome stuff in general has transitioned well to widescreen monitors etc.
Not to mention insanely neat stuff like the Gnome Builder [0], even if that doesn't affect my day-to-day.
Y'all are ungrateful, and really discounting how well stuff works now compared to how it used to (Yes, even in Gnome 2!). Gnome's been great to me
comment 5y ago · link · parent
I have a lot of qualms about a lot of stuff, but I feel like there is a lot of great payoff for GNOME to continue being able to maintain/improve stuff, especially as its my daily driver.
(I know this is anathema to a lot of people but I would gladly support something like Canonical having an OSS fund that it pushed patreon-style on its desktop OS, though to be honest I don't know what the admin costs for something like that would be)
comment 5y ago · link · parent
Especially given that everyone and their dog was using moment.js for the longest time, it's always a bit surprised me that spec improvements didn't try to get more coverage for the "generalzied formatting" stuff. Maybe this stuff is all just calling OS internals