Better HN
topnewbestaskshowjobs
Log inSign up

thinkharderdev

1,874 karma · joined Jun 12, 2019 (7y ago) · 701 submissions

https://www.thinkharder.dev

[ my public key: https://keybase.io/thinkharder; my proof: https://keybase.io/thinkharder/sigs/Ibpz0COsvz2qYl2K8YfzrhucHf2rcZIxityh5WvYC_k ]

Submissions

comment 5y ago · link · parent

Obviously this post is hyperbolic to make a point and I think I agree with some of it. But one thing that I think is a straw man is saying that "Developers are their own testers" which I think is profoundly missing the point of modern software testing. It's not that you should just "test your own code" and toss it in production, it's that testing is part of the software development process and "developers" should be full participants in everything from designing/developing code to testing it. And that means, yes when you develop a new feature you also need to deliver automated tests for that feature and not just throw it over the wall to "QA" to test it.

comment 5y ago · link · parent

Yeah, I think in general people lump Fermi estimation problems in with "brain teaser" questions (which I think really are silly) because they are both technical(ish) interview questions that have nothing to do (superficially) with software engineering.

comment 5y ago · link · parent

How well these questions correlate to job performance is an interesting question but the goal I think is not for you to get to the "right" answer (in the sense of figuring the optimal bin-packing approach on the fly). The goal is to see how you are able to take a broad problem and break it down by:

1. Identifying key assumptions or inputs. You may not know the dimensions of a 747 off-hand but ideally you can come up with a way of determining the number of ping-ping balls GIVEN the correct dimensions as input. That is you can come up with a model that you can plug the right numbers into once you look them up.

2. Clarifying the problem by asking questions and drilling in on requirements.

3. Create a model that you can communicate to others and allows you to make decisions just based on order-of-magnitude considerations. I.e. make decisions under uncertainty.

All of those skills I think are relevant to software engineering and system design. For example, you may need to provision hardware long before you know the exact design of a system. Can you come up with a rough estimate of how much storage you will need? Or at least put reasonable upper bounds on it? How many qps would you expect a system to need to support and does that mean you have to use a distributed datastore vs a single RDBMS?

comment 5y ago · link · parent

That's the point though right? A good (couple of) sysadmins can run a k8s cluster that can be leveraged by dozens (even hundreds) of dev teams. Instead of every team having to re-invent the wheel you get a common platform and set of deployment patterns that can fit most any use case. Of course if you don't have multiple different teams (or every team is running their own k8s cluster) then that is definitely a problem. But just because a handful of teams make an ill-advised investment in k8s when they could do easily with something much simpler doesn't mean that k8s is "too complex." Too complex for that use case sure, but for the vast majority of k8s deployments I would wager that it does add a lot of value and subsume a lot of the inherent complexity of running distributed, fault-tolerant, multi-tenant applications.

comment 5y ago · link · parent

All of those calculations assume a random sample which this was not:

"To reduce self-selection bias, invitations to complete surveys were sent out to members of Survation’s panel and the surveys were then conducted by online interview. This approach is far more rigorous than say, running a poll on a website in which anyone can choose to take part."

Are "members of Survation's panel" a random subset of developers? How many invitations were sent out to get 238 responses (i.e. what was the response rate)? Are developers with burnout more likely to respond to a survey about burnout? Was the sample population demographically similar to the overall population of developers?

comment 5y ago · link · parent

The question is precisely whether they are "really" burnt out or just had a long day (or couple of days) at work and are feeling burnt out at that particular moment. We all experience something akin to burnout at some point or another but it makes a big difference whether it is "I felt burnt out for a day or two after a tough sprint or major production incident" or "I've been working 80h per week for months". The former you might be fine after a relaxing weekend whereas the latter may take months to recover and seriously jeopardize your long-term physical and mental health.

comment 5y ago · link · parent

Standard use cases for stream processing are:

1. Enriching event streams. Say you have a stream of log records with an IP address field. You want to enrich with a geo-location before sending the logs to Elasticsearch.

2. Windowed aggregation. Maybe you have an application that is emitting "login" events and you want to to detect login attempts from different IP addresses within X minutes of each other.

3. Joining multiple event streams. You have multiple different event streams and you want to join them together using some common join key (maybe session ID or something like that) to compute a metric that aggregates all of them.

There are plenty of more esoteric use cases as well.

comment 5y ago · link · parent

"Built-in" is a odd word choice there. Kafka Streams is a framework for building stream-processing applications on top of Kafka topics.

comment 5y ago · link · parent

It is suspiciously close tot he "Lizardman Constant" of 4% https://slatestarcodex.com/2013/04/12/noisy-poll-results-and....

comment 5y ago · link · parent

Oh wow. I stand corrected. Thanks!

comment 5y ago · link · parent

It's not turing complete which is I think why it doesn't feel like a "real" programming language.

comment 5y ago · link · parent

Not long after I got into software engineering is when the first NoSQL craze began. I imagine that those who started not long after me and spent a few years wrangling with MongoDB queries (shudder) and trying to do joins, transactions and consistency guarantees in application code must see RDBMS as some sort of magical new technology.

comment 5y ago · link · parent

Fair enough. I would just draw the line at mandating continued software support and updates. I was actually thinking earlier and would amend my "emperor for a day" plan. I think we should mandate an analog to Matt Levines Certificate for Dumb Investment (https://www.bloomberg.com/opinion/articles/2018-09-24/earnin...). Vendors like Apple should be required to provide a mechanism to "jailbreak" any device they make so a user can run any firmware/software they choose, but to get access to that tool they need to go to apple.com and sign a form that says in big, bold red letters:

"THIS IS A REALLY BAD IDEA AND DOING THIS VOIDS ANY WARRANTY OR GUARANTEE WE MAKE FOR THIS DEVICE. AND IF YOU INSIST ON DOING THIS YOU WILL PROBABLY EITHER GET HACKED OR LOSE ALL YOUR DATA. SO PLEASE DON'T DO THIS UNLESS YOU ARE 100% SURE YOU KNOW WHAT YOU ARE DOING. AND IF YOU THINK YOU KNOW WHAT YOU ARE DOING YOU ARE PROBABLY WRONG."

And if you sign that you can download a tool to jailbreak your iPhone.

comment 5y ago · link · parent

Partly, but partly it is an effect of having of thicker market. Arlington itself is still quite densely populated and Uber drivers have a lot of opportunities to pick up fares there. But you aren't going to find people hailing cabs on the street. But if you have a matching mechanism that works better in less densely populated areas then the drivers can actually pick up fares there so they are more willingly to take someone out there to begin with.

comment 5y ago · link · parent

They seemed to be doing alright in 2019 when we were at full employment (more or less), at least relative to their normal state of hemorrhaging money.

But to give them their due, I do in fact think Uber made the product of paying someone to drive you from point A to B much better. Even in the early days of Uber (when they were still just Towncars), it was very rare to get in a taxi in Washington DC that accepted cards for payment. It was also much harder to get a ride if you weren't downtown. You would have to call a dispatcher and in about 30 minutes (if you were lucky and they didn't just ghost you entirely) a cab would show up. Also, if you were downtown and wanted a ride out to Arlington, they would sometimes just drive off because they knew they wouldn't be able to get a fare back into the city.

comment 5y ago · link · parent

> The real innovation was using a tsunami of cheap financing to engage in a predatory pricing war to gain oligopoly status and opening up being a taxi driver to anyone with a car.

I agree with that 100% but I wouldn't say that they "didn't change the game." The sheer availability of taxi services outside of a handful of densely populated urban centers was almost non-existent before Uber. They existed but I certainly wouldn't call them "on demand." In my relatively small college town it was basically impossible to get a taxi to pick you up in less than an hour from when you called the dispatcher (and sometimes they would just not show up at all....). Now I can have an Uber pick me up within 10-15 minutes basically anywhere at almost any time.

As you said this is mostly because they are subsidizing all of this with huge gushers of capital and it remains to be seen whether they can actually operate that sort of service profitably.

comment 5y ago · link · parent

I mean, technically Uber doesn't make money at all. They are losing it hand over fist.

comment 5y ago · link · parent

Did the device stop working or did they just stop updating it? If it actually stopped working then I agree it is really shitty of them and even if they stopped providing security updates it is kind of shitty of them. But I think the solution is to take your business elsewhere. It's not as if Apple has a monopoly on the smartphone market and you don't have other options.

comment 5y ago · link · parent

I tend to agree with this position. This all feels a bit like "I want everyone else to finance my niche desire to hack on my device." It seems like if this were really a thing that a lot of consumers wanted then someone would be filling that market demand. But I suspect that the overwhelming majority of consumers don't in fact want this. They want a secure device that just works and they upgrade regularly before their old device is EOL.

comment 5y ago · link · parent

I don't think that it is correct to say that anyone is telling you anything. Apple has decided that they will drop support for devices after a certain period of time because the development effort of maintaining support is too costly given the number of users with the old hardware.

If I could be emperor for a day I would just mandate that when they drop support an old device, they have to provide a way for users still owning that device to have unlimited ability to load and run any software on it. That way if you really want to keep using your first-gen iPad then you can support it yourself. But it doesn't seem right to mandate that someone else continue to spend effort supporting idiosyncratic choices of all users.

comment 5y ago · link · parent

Are there cases now where an update bricks devices that are still supported and the manufacturer doesn't fix it? Genuinely asking as I don't know of any such cases.

comment 5y ago · link · parent

My guess is that it is mainly driven by the increasing adoption of microservice (or just generally more distributed architectures). Doing fine-grained authorization in that type of architecture quite difficult and people are starting to realize that.

comment 5y ago · link · parent

Ah, I get it now. Thanks!

comment 5y ago · link · parent

I looked at the paper but I don't understand how they got to that conclusion. There is still a J-shaped relationship between alcohol consumption and coronary heart disease outcomes. Not questioning the conclusion I just don't understand how you get to it from their data (due to my own ignorance).

comment 5y ago · link · parent

I'm not sure I understand the conclusions of that paper. The ADH1B variant is associated with lower alcohol consumption and also with lower cardiovascular risk but within that population there is still a J-curve relationship between cardiovascular disease and alcohol consumption.

comment 5y ago · link · parent

The takeaway for me from the back-and-forth on alcohol consumption is that the effect size of moderate alcohol consumption on all cause mortality is close to zero. So whether or not you decide to drink alcohol in moderation should hinge on other factors. Do you enjoy having a glass or two of wine in the evening and suffer no noticeable ill effects the next day? Great, then have at it. Do you not enjoy drinking alcohol in any quantity or feel noticeably worse the next day even after one or two drinks? Great, then abstain entirely and don't worry about missing out on any alleged health benefits. Do you enjoy drinking alcohol but have a history of alcohol dependence in your family or find it difficult to stop at just one or two drinks? Maybe best to abstain.

comment 5y ago · link · parent

It is the typical story where whatever you like doing ALSO has to be healthy and good in all respects. So it can't just be "I like having a glass or two of wine in the evening to unwind." Likewise it can't just be "I think eating animals is morally wrong so I don't do it." It's like the human mind instinctively rebels against having to weigh tradeoffs.

comment 5y ago · link · parent

Depends on what you mean by maintain. If you use one of the well-supported open source solutions like Keycloak then it is very actively maintained with regular releases, bug fixes, new features (U2F support etc). But of course you need to run your own infrastructure (database, application servers, load balancer, maybe separate infinispan cluster if you want to go wild). If you don't have the operational capacity to do that then maybe a SaaS solution is right for you.

comment 5y ago · link · parent

Yep, there is definitely a way to do it well and having scheduled, regular updates (as opposed to ad-hoc requests) is key. But when "the big one" comes then it is hard to maintain the discipline in that process.

comment 5y ago · link · parent

Yeah, it's not the easiest thing in the world to get up and running but not quite as hard as it might seem at first look. If you are already using k8s then you can use https://github.com/codecentric/helm-charts/tree/master/chart... to deploy Keycloak fairly easily. If you're not using k8s then it is probably more of an undertaking.
1
151617
24