HNHacker News
TopNewBestAskShowJobs

adamlett

1,262 karma · joined February 21, 2013

submissionscomments
adamlett··on Tailwind is a leaky abstraction
> But that's kind of the point. Tailwind is a layer on top of CSS, but it doesn't actually hide any complexity in the layer below. You still need to know CSS.

This completely misses the point of Tailwind. The point is not to hide the complexity of CSS, but to provide access from the markup to enough of capabilities of CSS that you don't have to edit your stylesheets 95% of the time, when you alter the styling of a document.

When Tailwind does fall short because it doesn't provide the exact CSS feature that is needed to solve the problem, it still provides a template for how to solve the problem: Using one-rule utility classes, that are named for what they do, not for how they are meant to be used.

adamlett··on The impact of removing jQuery on our web performance
12 seconds down to 9 seconds is not negligible

That is not what the person you were replying to claimed. Their claim was that the overall effect of removing jQuery was negligible, and made a persuasive argument to support it, while also acknowledging that making modest improvements to the experience of a minority of users was an admirable achievement.

What is negligible is 12 down to 11.999 seconds because you prematurely optimized

Who could disagree with that verdict over an imagined scenario? I would even go so far as to say it could be considered negligible whether or not the optimization was premature or not.

And even for "normal" users, shaving milliseconds matter. The general idea is that a UI should respond within 100ms to feel instantaneous.

9 seconds is pretty fucking far from 100ms. Far enough that I feel like shaving milliseconds off does not in fact matter to the majority of “normal” users.

According to Google research, increasing page load time from 1s to 3s increases bounce rate by 32%.

Fascinating. What does the research say about increasing the load time from 9 to 12 seconds? Those are after all the figures that are relevant to this discussion.

Performance matters, a lot. I am not living in the UK, but if I was, I would be happy to pay taxes that make government websites 25% faster.

I’m sure the UK government is thrilled that you approve of how they spend their tax revenue. But just to reiterate: We’re not talking about a 25% improvement of websites across the board. We’re talking about a 25% improvement of a specific page for a small subset of users.

And even without the performance benefits, I consider removing dependencies a good thing. jQuery was great in the IE6 days, but now that even 10 year old browsers have decent JS, it is not as important as it once was. Modern versions of jQuery don't even support IE6 anymore.

I doubt anyone disagrees with this as a general statement. Certainly it would probably be a mistake to take on jQuery as a dependency today. However, it does not cost nothing to remove jQuery from a code base that has depended on it for a long time. And the cost has to weighed against the risk and the cost, not least of which is the opportunity cost: What could the programmers tasked with removing jQuery have done with their time instead?

adamlett··on Wooden towers to help cut cost of wind turbines
From what I’ve read, laminated timber is quite resistant to fire. In a fire, a layer of charcoal is generated on the outside which insulates the structural core, and it’s therefore more likely than reinforced concrete to maintain structural integrity.
adamlett··on TSMC “Apple-first” 3nm policy leads to AMD and Qualcomm mutiny
They don't have to buy TSMC a fab, they simply have to pay (slightly) more than other TSMC customers

They don’t even have to do that. They just have to place orders that are sufficiently larger than any of TSMC’s other customers’.

adamlett··on How trains could replace planes in Europe
That would be ideal. As I understand it, it has been tried, but without reaching an international consensus, and leads to airlines filling the tanks of their planes in countries that don't tax the fuel, and flying with more fuel than needed (and therefore having to burn more fuel) so they don't need to refuel in countries that do tax the fuel, thus defeating the purpose of the tax.
adamlett··on When McDonalds Came to Denmark
I’m sure there are companies everywhere where management keeps an unproductive worker around for whatever reason. But in Denmark at least, they are not required to. All employment in Danmark is at will employment. As long as the reason is not explicitly illegal, employees can be fired for any reason or no reason. As I wrote in a different reply, this is considered uncontroversial because 1. there is usually a severance period of three months, and 2. most workers have unemployment insurance which is both generous and affordable, and 3. we have free, universal healthcare, which means losing one’s job is not catastrophic.
adamlett··on When McDonalds Came to Denmark
And the union and company agree that two people doing this job should be enough. No more hiring

That’s not a thing in Denmark.

The person is not great at getting things done, but not horrible enough to be fired (especially by union standards).

That’s also not a thing. It’s surprisingly easy to fire workers in Denmark. It’s similar to at-will employment in the US. Only you’re not screwed if you do get fired, because we have generous unemployment benefits and universal healthcare.

adamlett··on When McDonalds Came to Denmark
Workers that don't measure up aren't a good fit. Fire them. So that they can be set free, become stronger, at something they are good at.

Oh, but I agree! Fun fact: It’s surprisingly easy to fire workers in Denmark. This is relatively uncontroversial because 1. there is a severance period, which is usually at least three months, and 2. generous unemployment benefits. We call it Flexicurity[1].

[1] https://en.wikipedia.org/wiki/Flexicurity

adamlett··on When McDonalds Came to Denmark
As a Dane, I find this notion completely alien. You know what unions are also good for? Ensuring healthy work/life balance, and ensuring that work outside regular working hours gets compensated appropriately. If I have to work sundays or evenings, I must be paid double my normal hourly pay.
adamlett··on When McDonalds Came to Denmark
Why would you think you have the arbitrary power to walk out on your job, and not have them let you go?

This is why you rarely hear about individual workers going on strike. An individual is expendable. It’s quite another thing when the entire workforce shuts down production by walking out. Sure, you could just fire them all, but your production is still shut down.

The question of legality is not a question of whether an individual worker has the right to walk out (of they do; they are not slaves), or whether employers have a right to fire them (they mostly do). It’s a question of whether workers have the right to organize and coordinate the walking out, or whether this constituted a criminal conspiracy.

adamlett··on Court issues permanent injunction in Epic vs. Apple case
* Two, many users care about this enough to refuse payment systems that don't have it. In that case there will be a market for another payment system that has easy cancellations but charges ~5% instead of 30%.*

That line of reasoning holds when all else is equal, which it almost never is when it comes to apps. No matter how passionate anyone is about payment systems, it’s still extremely unlikely to rise to become the determining factor when deciding to install an app. If a person wants to play Fortnite with their friends, but doesn’t like the payment system, they don’t magically get to choose a Fortnite clone with a payment system that’s more to their liking.

adamlett··on Generics enabled by default in Go tip
C
adamlett··on Apple is now an antifragile company
I'm sorry, but this is a really bad take. The premise of the argument, namely that Apple does (or attempts to do) everything, and does not leverage the industry to its advantage, does not stand up to scrutiny.

Apple relies heavily on a modularised supply chain. It designs its own chips, true, but relies on TSMC and Samsung to fab them. It designs its own camera system, yes, but buys the crucial components (the sensors) from Sony. It designs its own screens, but uses Samsung technology and production capability to do so. It runs its cloud services on top of AWS and MS Azure. And famously of course, they outsource production of almost all their devices to Foxconn.

adamlett··on Parse, Don't Validate (2019)
Yes, that’s literally the advantage of a static type checker. I don’t dispute that. I’m just saying that the advice in the article is just as applicable in a dynamic language and confers the same benefits. True, you’re not protected against accidentally using one type where another was expected, but that’s not really the point as I see it. The point is to use better types. Types you can lean on instead instead of nervously tiptoe around.
adamlett··on Parse, Don't Validate (2019)
I think making this about the type checker is a bit of a red herring. There is nothing in this – otherwise excellent – advice that can’t be applied to a dynamically typed language like Ruby. It’s the same insight that leads OOP folks to warn against the Primitive Obsession code smell (http://wiki.c2.com/?PrimitiveObsession). It’s also the insight that leads to the Hexagonal Architecture ( https://en.wikipedia.org/wiki/Hexagonal_architecture_(softwa... ).
adamlett··on Japan's government plans to encourage 4-day workweek, but experts split
Isn’t it oversimplifying it to suggest that all “the market” rewards is low prices? Doesn’t the market also sometimes reward quality and timeliness?
adamlett··on Changes at Basecamp
Generally talented people enjoy working with other talented people

Everything else being equal, sure.

and prefer to be hired and rewarded only for that reason.

Why would anybody who knew they were talented and got hired or promoted, assume it had to do with anything other than their talent?

The social justice diversity, equity and inclusion is a political stance that instead of seeing individuals see groups of "oppressed" and "oppressors" which is a recipe for a less productive work environment. These unchosen group identities are political tools and not descriptive of an individual.

It is possible to recognize that a certain groups of people on average face more obstacles and barriers, without equating individuals with the groups they belong to or vice versa.

adamlett··on Changes at Basecamp
The talent pool extends a lot further than people with CS degrees. And even if your statement narrowly is true for the industry as a whole (I’m skeptical that it is – from what I’m told more women than men leave the industry), it isn’t necessarily true for individual companies.
adamlett··on AirTag Teardown Part One: Yeah, This Tracks
Back when phones were built to survive the outside world without a case

You mean: Back when phones had screens made of plastic instead of glass. And yes, sure, that does make them more likely to survive a drop, but also means the screen becomes a scratch magnet. That of course is the right compromise when the screen is tiny and the pixels are enormous, but not so much when it’s the other way around.

adamlett··on Changes at Basecamp
More importantly: who cares?

There are many good reasons to care. Off the top of my head:

* Having a diverse work force makes it less likely that you will be blind to problems caused by unintended side effects of your product that only affect certain groups.

* Having no women (or people of color, or people with disabilities, or...) on the workforce, will make you less attractive as an employer to talented people in these groups. Ultimately, you get to hire from a larger talent pool, if you make an effort to cultivate diversity.

* Making an effort to attract a diversity of people will make you uncover barriers of entry, that you might not have been aware of, and removing those has the potential to benefit everyone.

And finally, even if you believe strongly that your hiring practices are not the cause of the lack of diversity, and that the real problem is elsewhere (in the education system for instance), you can still choose to be part of the solution by providing proof that there is a desirable future to be had for a woman who chooses to go in to a STEM field.

adamlett··on Apple Introduces AirTag
This I agree with. My contention was with what you first wrote, which made it seem like the 4 day limit was not meaningful. I think it makes all the difference for the reasons I laid out.
adamlett··on Apple Introduces AirTag
So maybe ask your friend to take off the AirTag if you have to borrow their keys for more than a few days?
adamlett··on Apple Introduces AirTag
Seriously, the use cases for 96 hours of tracking are frightening.

Meet victim in club/bus/supermarket/wherever

I'm not an expert, but I don't think this is how stalking works in practice. People don't stalk random strangers they meet in the supermarket. They stalk former partners, and (more rarely) people they've developed an obsession about. That means the stalker has to worry about being recognized by the victim, and consequently will have fewer opportunities to plant a device and retrieve a device than you imagine.

Furthermore, while being tracked for up to 96 hours indeed is a frightening thought, the typical stalker's goal is to track their victim at all times. Having to plant and retrieve a device at least every four days, without being detected by the victim, makes for a very impractical way to achieve that goal.

adamlett··on Apple Introduces AirTag
Lol, what flak? AirPods are to a close approximation loved by all reviewers and by all evidence they are a smash hit among consumers.
adamlett··on Why northern Europe is so indebted
Due to the full deductibility, the common narrative became: if you're in the top tax bracket, the state pays more than half your mortgate interest

That’s not how it works in Denmark. Here, interest deduction come in the form of increased personal allowance (ie. the annual income bracket below which you pay no taxes), which favor high and low income earners equally. I’m surprised that isn’t also the case in The Netherlands. Are you sure it’s not?

adamlett··on Apple’s Anti-Tracking Plans for iPhone
When you use a service that is funded by advertising, the service only gets that funding because the advertisers trust that they are getting their ads in front of real users.

Ad spend as a percentage of GDP has been surprisingly constant for the past century. IOW, companies do not spend more on ads just because they can better target their potential customers, nor will they spend less if they lose that ability.

adamlett··on Apple’s Anti-Tracking Plans for iPhone
Apple's privacy changes might seem like a good idea from the outside, but essentially or paradoxically leads to higher entry barriers for new competitors and cement the role the actual players have.

Honestly, who cares if the barrier of entry for a shitty business model is raised. And can see only upside to this.

adamlett··on Sharrows, the bicycle infrastructure that doesn’t work and nobody wants
In Denmark motorists have reversed burden of proof when it comes to liability for damages. In other words, if a driver of a car is involved in an accident, they have to prove beyond reasonable doubt, that they were not the party at fault or be liable. If that sounds onerous, remember that motor vehicles are mandated to covered by a liability insurance, so it's the insurance company that ends up paying. The insurance company will sometimes sue the driver after, if they think the accident was caused by gross negligence on the driver's part, but this is irrelevant to the party not at fault.

I remember from my brief stint in law school that our professor told us, that there is a good case to be made for changing the law from reverse burden of proof to objective liability, ie. motorist' should always be liable, no ifs, ands, or buts. The reason, he explained, is in the cases where two motorists are in an accident, a lot of resources are wasted in determining liability. Since what always happens is that one insurance company must pay and another one doesn't, and since each insurance company will on average win as many cases as they lose, it would save a lot of money and time to just declare that each driver is 50% liable and be done with it. I also seem to remember that this is how it works in New Zealand, but I could be misremembering.

adamlett··on Heavy is the Head that wears the AirPods Max
Also, why not make it so that they can be used passively? What's the downside?

If by passively you mean plugged into a headphone port, the answer is that they can’t because they need power. Their big selling point is supposed to be computational audio. That obviously doesn’t work without the compute part, which in turn requires power.

adamlett··on Heavy is the Head that wears the AirPods Max
When it comes to audio quality and red wine I am completely unable to appreciate the quality differences over a certain minimum threshold, which is quite low (at least as measured by price). Maybe I would be able tell the medium level stuff from the very high end if I was allowed to compare them to each other in an undisturbed environment, but if I then had to guess which was the more expensive, I would likely get it wrong a good chunk of the times. I usually tell people that my senses are just not acute enough, but secretly I suspect that most people who claim to be able to appreciate the differences that I am unable to, really aren't either and are at best just experiencing the placebo effect. The fact that you report to be disappointed by the audio quality of the HomePod, a product that a lot of reviewers praised first and foremost for its audio quality, does nothing to relieve me of this suspicion.

Who knows whether or not I am right or not? What I am quite certain of, is that I'm not likely unique when it comes to not being able to appreciate the small differences in quality that cost the most. Which is to say that for me and a lot of other people, it seems pointless to get hung up on whether one pair of very good headphones sound marginally better than another pair of very good headphones. Unless you're working in a studio as a sound producer, at a certain point the audio quality simply ceases to be the most important attribute of a pair of headphones. I don't know if it's true that you can get a pair of wired IEMs that sound better than the AirPods Pro, but even if it is, it's irrelevant, because the AirPods Pro sound fine to most people who buy them.

Through the years I've owned several different brands of headphones in the price range $100–$150 that I bought because reviewers claimed they were extraordinarily good value for the money when it came to sound quality. And maybe they were, but I've hated most of them for getting mostly everything else wrong: Wrong length of wire, wrong placement of microphone and buttons, and just horrible build quality.

← PreviousPage 2 of 16Next →