celticmusic
Joined 7 years ago
Joined 7 years ago
And then the next political cycle hit and I straight up quit. I found the political ads more offensive than anything, and I've never been back since.
FB is a terrible place, ignore the poster you're responding to because they very well could be putting on airs while you're trying to be more honest about things. That's the nature of social media, of which HN is included.
The people doing the manipulating are generally getting what they want, why would they try to pull the system apart?
Stripe will not allow an idempotent key to be reused w/i 24 hours.
You can use anything for the idempotent key and Stripe will actually track that along with the charge object so you can use something more meaningful if it's useful for your business.
edit: and if you generate a key that's more meaningful I'd be careful about leaking important/private data.
For this reason, it's better to prefer as little structure as you can reasonabley get away with, not more. Now, this is a nuanced view, a senior person can absolutely insist on more structure up front and avoid issues, but they'll have a good reason for doing so that doesn't involve "it's clean code".
But in general, you want as little structure as you can get away with. It's a lot easier to change something that hasn't been abstracted to death with guesses about what the future is going to hold.
I think part of the issue is a perspective thing. If I spend a day throwing something together and it sits for 6 months, great. I got ROI from that code. If 6 months in new requirements come in and I decide I need to rewrite it, who cares. It worked day in and day out for 6 months off a days worth of effort.
Too many people view code as needing to be long lived and unchanging.
Bjarne has explicitly refuted this opinion.