Recent submissions

Comment · 6 years ago
> How would you write your code today if you knew it would of been your last commit and still in use in 30 years ?

Generally: minimize dependencies. External library or API dependencies? Versions can drift, the system can change out from under you in incompatible ways. That goes for the OS, too, of course. Data dependency that you aren't 100% in control of? Same. All are forms of state, really. Code of the form "take thing, do thing, return thing, halt" (functional, if you like—describes an awful lot of your standard unixy command line tools) is practically eternal if statically compiled, as long as you can execute the binary. Longer, if the code and compiler are available.

Comment · 6 years ago
FWIW I've given up on trying to gauge my own performance. I've plainly been disappointing people when feeling like I'm working about has hard as I could. I've (over, and over, and over) been complimented on both the quantity and quality of my output when I feel like I'm half-assing it, at best. There doesn't seem to be a much relation between how I feel like I'm working and what others perceive.
Comment · 6 years ago
Right—that significant amounts of labor (=human life) go into this kind of waste that everyone involved knows is a joke, and that the non-joke variety is rarely treated much differently, both contribute to what's scary about it.
Comment · 6 years ago
I'd put the desirability hierarchy something like this, best to worst:

1) mixed labor (mental, physical)

2) moderate, varied physical labor

3) jobs that are mostly just being present and don't make you pretend to work most of the time

4) mental labor

5) jobs that are mostly just being present but do make you pretend to work most of the time

6) repetitive moderate physical labor

7) repetitive sedentary labor

8) hard physical labor

With 8 being at the bottom mostly due to typically being high-risk and coming with major mid-term harm to health.

Comment · 6 years ago
Good work if you can get it, but all the interview questions plumbing the obscurest depths of Newtonian physics are pretty tough.
Comment · 6 years ago
> In other words, while I considered what the accountant guy did to be a rather low-effort incomplete job, he did exactly what was expected of him by the bank and what I needed to get my deal done.

The degree to which everything runs on this sort of system is kind of horrifying, once you're exposed to enough things like this for that to sink in.

Relatedly, I guess my contribution to the broader thread would be:

Almost no-one knows what they're doing, let alone is much good at it—so few, in fact, that society and the economy (and everything else) basically run on a massive and super-serious game of playing pretend. Yes, even that big important organization (public or private) where you expect everyone to be pretty damn competent. The difference between them and some normal place is that 5% of their people are impressively good at their jobs, rather than 2%.

Comment · 6 years ago
Aldrin gets mentioned in the same breath as Armstrong often enough I bet quite a few people could pull that one out. You'd lose a bunch with "who's the guy who stayed in orbit?" and almost everyone with "name any Apollo 12 astronaut" or even the more-generous "name any Apollo astronaut who at least reached Lunar orbit and wasn't on 11 or 13". Most of the people who get that second one would probably just luckily guess Alan Shepard without actually knowing for sure he was on an Apollo mission, just the first famous space-program-guy who came to mind who wasn't Armstrong or Aldrin (and in fact the Apollo part of the career is not why they know his name).
Comment · 6 years ago
Guessing there were drugs in one or more pockets.
Comment · 6 years ago
If there’s a real downturn we’ll see the big boys cut jobs—maybe a lot. Or even just some regulatory changes (especially reigning in spying and fruits-of-spying monetization) without a broader downturn. Wages downmarket would suffer a ton with all those top-comp folks with (by definition) above-average résumés and work history suddenly looking for a job. Probably upward mobility (into lead/senior/et c.) will suffer a lot. Doesn’t take more supply, lower demand is something we will see again.
Comment · 6 years ago
I eat mostly vegetarian (I'm not a principled vegetarian so I'll eat meat in some circumstances, just way less than most people) and that's pretty easy, but milk is really cheap & convenient (chemically) for so much cooking, eggs are like a nutrition-on-a-budget cheat code and also chemically useful in lots of cooking, and I love cheese. Going vegan would hurt.

[EDIT] if there's one modification I'd really like to make to my diet, it'd be to add fish once or so per week, ideally the fatty, oily, low-on-the-food-chain sort that're supposed to be so heatlhy. I need some kind of guide for how to work up to enjoying fish when you didn't grow up eating it. I can tolerate larger fish when cooked & seasoned very well, but don't really enjoy it at all, and have no understanding of what even to do with the smaller, healthier sorts that isn't stomach-turning (to me) to even consider. Though for some reason I love sushi and calamari, so, go figure.

Comment · 6 years ago
This is kind of what I'm talking about WRT the cloud being more trouble than it's worth if you app sits somewhere in between "trivial enough you can copy-paste some cloud configs then never touch them" on the one end and "so incredibly well-resourced you can hire three or more actual honest-to-god cloud experts to run everything, full time". Unless you have requirements extreme/weird enough that you're both not-well-resourced but also need the cloud to practically get off the ground, in which case, god help you. I think the companies in that middle ground who are "doing cloud" are mostly misguided and burning cash & harming uptime while thinking they're saving and improving them, respectively.
Comment · 6 years ago
> Just.... just... no. First of all, nobody's got good backups. Nobody uses tape robots, and whatever alternative they have is poor in comparison, but even if they did have tape, they aren't testing their restores. Second, nobody has good alerts. Most people alert on either nothing or everything, so they end up ignoring all alerts, so they never realize things are failing until everything's dead, and then there goes your data, and also your backups don't work.

But you should test your backups and set up useful alerts with the cloud, too.

> Third, nobody needs push-button re-deploy-from-scratch unless they're doing that all the time. It's fine to have a runbook which documents individual pieces of automation with a few manual steps in between, and this is way easier, cheaper and faster to set up than complete automation.

Huh. I consider getting at least as close as possible to that, and ideally all the way there, vital to developer onboarding and productivity anyway. So to me it is something you're doing all the time.

[EDIT] more to the point, if you don't have rock-solid redeployment capability, I'm not sure how you have any kind of useful disaster recovery plan at all. Backups aren't very useful if there's nothing to restore to.

[EDIT EDIT] that goes just as much for the cloud—if you aren't confident you can re-deploy from nothing then you're just doing a much more complicated version of pets rather than cattle.

Comment · 6 years ago
In practice I see a lot of breakage (=downtime), velocity loss, and terrible "bus factor" from complex Cloud setups where they're really not needed—one beefy server and some basic safety steps that are also needed with the Cloud, so aren't any extra work, would do. "Well designed" is not the norm and lots of the companies are heading to the cloud without an expert at the wheel, let alone more than one (see: terrible bus factor)
Comment · 6 years ago
An awful lot of server systems can tolerate a hardware failure on their one server every couple years given 1) good backups, 2) "shit's broken" alerts, and 3) reliable push-button re-deploy-from-scratch capability, all of which you should have anyway. Lots of smaller shops trying to run to k8s and The Cloud probably have at least that much downtime (maybe an hour or two a year, on average) due to configuration fuck-ups on their absurd Rube Goldberg deployment processes anyway.

[EDIT] oh and of course The Cloud itself dies from time to time, too. Usually due to configuration fuck-ups on their absurd Rube Goldberg deployment processes :-) I don't think one safely-managed (see above points) server is a ton worse than the kind of cloud use any mid-sized-or-smaller business can afford, outside certain special requirements. Your average CRUD app? Just rent a server from some place with a good reputation, once you have paying customers (just host on a VPS or two until then). All the stuff you need to do to run it safely you should be doing with your cloud shit anyway (testing your backups, testing your re-deploy-from-scratch capability, "shit's broken" alerts) so it's not like it takes more time or expertise. Less, really.

Comment · 6 years ago
> But even Apple has started using USB-C ports to charge their laptops and tablets now

“Even”? I still hadn’t seen a usb-c anything in the wild when Apple switched their MacBooks to it and dropped all other ports.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton