Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 5y ago · link · parent

OK so they buy you the phone.

Shouldn't the thing _actually be_ "if they want you to have Slack on your phone, they should pay you for availability during off hours"? The phone buying is a basically one-time cost from their perspective.

comment 5y ago · link · parent

You think that the legislature exists in a vacuum? That it writes out all these loopholes for fun? That other nations are just broken with their simpler tax code? This is yet another "American exceptionalism" thing where _somehow_ America is the only developped nation in the world with this level of issue yet seems to think it's sort of... intrinsic to the world.

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

I mean "lets purge our academics of non-believers" is a practice applied in basically every society, for time immemorial.

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

Exposure to “Western”/civilized values? What are you even talking about?

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

It is bonkers to me how bad stores are in general, except for Steam. Nintendo’s e-shop is so slow, and the PlayStation Network stuff is soooooo impossible to use that it usually takes me at least 2 tries to buy a thing even when I want it. Do these companies not realize that this loses them money??

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

For me it's even weirder cuz I feel like I get (for example) English autocomplete with a french keyboard and French with English.

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

kinda interesting, but looking at this table 2G phaseouts will basically take more time in developped nations than elsewhere. Probably a big case of how there's a lot of technological leapfrogging in developping nations cuz they tend to only have access to really cheap commodity stuff (so they end up getting stuff replaced more quickly). Very much the "fancy hotel wifi" problem IMO

https://www.emnify.com/en/resources/global-2g-phase-out

comment 5y ago · link · parent

Xonsh is also my daily driver for years and years. Combined with direnv I have really not missed much of anything from other shells. So much stuff either works out of the box or has some little hacky wrapper to handle it.

comment 5y ago · link · parent

The fact that real programming is a mess isn't like... important! It's entirely incidental and almost entirely due to this kind of attitude of "well I got it working on my machine" that slows down making real progress

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

I remember reading (and I don't have a source for this so this is total hearsay) that basically when Coq/CoC was chosen, it was chosen with the awareness of the "sounds like cock lol" factor being a plus.

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

Yeah but then you're in the "manage a bunch of really old hardware" business.

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

People will stay? None of the places I was in on IRC have stayed.

Some other thread is saying that 40% of the userbase had hemoraged already

comment 5y ago · link · parent

This is recalling the old Linus debates, but the aggressiveness _doesn't improve the clarity_, and is basically upping the word count.

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

This conversation, when I've had it with people, usually ends up with the same conclusions: people would like to see their coworkers face-to-face like.... a couple times a month. People have deep relationships with others without needing to see them 5 times a day, after all!

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

Sorry, I guess the rationale here is more that DB schema changes (at least for most "basic" web applications) go through the same codebase as normal application changes, so it's in the same pipeline of changes as other changes.

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

- people tend to want to use many systems during working hours

- 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 mean... I understand the notion of fucking up a migration, of actually introducing data loss etc.

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

Par of the problem is that tools don’t really have a notion of “behavior of system 2 releases ago”.

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

Original author here. I do think it’s good to think about rollback strategies (especially given that your change might go out with something else that might need rollbacks).

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

Taxes are a tool in the toolbox to organizing society for progress as a whole.

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

There is such a stupidly easy solution to this, which is to set a lower limit for whatever rule applies.

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

I think Prop testing is great, but stuff like AFL (with instrumentation to basically find your conditionals for you, and working backwards to modify data for it) is very different from property testing.

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

I think this is a legitimate question! Saying you want the UI to get out of the way _can_ mean that you still want the DE for the 10% of the time you need it, but for the 90% of the time you don't, you want it to be unobtrusive.

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

I had a bad feeling the comments section would be filled with dorky, off-base rerun complaints and whining about UX and the "oh it's all mobile design" tropes that has barely been true for years.

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

[0]: https://wiki.gnome.org/Apps/Builder

comment 5y ago · link · parent

same, setting up a recurring donation.

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

I'm glad we're getting further and further down all this, just waiting patiently for a `strftime` that gives better control over formatting.

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

comment 5y ago · link · parent

Functioning roads and bridges that don't have cracked load-bearing beams are a bit higher priority than a BBS and digital yellow pages.
1
939495
225