Better HN
topnewbestaskshowjobs
Log inSign up

zero_shift

4,017 karma · joined Mar 10, 2017 (9y ago) · 930 submissions

I really like computers!
Submissions

comment 1y ago · link · parent

This article is full of misrepresentations and lazy takes. The author has had other anti-JS polemics widely upvoted on HN, which were just as carelessly written. But people upvote it anyway.

What is the cause of this?

1. Bad experiences with JavaScript apps that have aggregated complexity (be it essential or incidental complexity)?

2. Non-JS developers mystified and irritated at a bunch of practices they've never really internalised?

3. The undercurrent of "frontend is not real programming" prejudice that existed long before React etc al. and will continue to exist long after it?

comment 1y ago · link · parent

But Go is so simple!

(Points to a myriad of Go functions that do in eight or nine lines what other languages do in two)

comment 1y ago · link · parent

There is a good book on DDD in F#, Domain Modelling Made Functional

comment 1y ago · link · parent

Lockdowns, whilst necessary, were presumably bad for our brains on several fronts:

- they reduced social stimulation

- they increased repetitive behaviour

- layoffs and furloughs led to isolation

In addition there was a lot of screen time across all demographics. My uninformed opinion is that the repetitive and confirmatory nature of digital entertainment makes it a kind of cognitive "junk food"

There's also "anecdata" about COVID kids and even pets that have had challenges catching up with a post-lockdown world. I don't know how clear the evidence is, though.

comment 1y ago · link · parent

(not sure why I said "five years ago" - I learned BEM back in 2014)

comment 1y ago · link · parent

I'm a bit of a luddite with CSS. I learned BEM about five years ago and I've more or less always stuck to component scoped CSS files.

Sometimes I use CSS-in-JS if a component system demands it, like Material. I don't mind it as much as others do, I like that there's no CSS concatenation weirdness. But otherwise I feel quite happy with a component file and a style file.

For Tailwind fans (or even detractors), what's the main benefit I'm missing?

comment 1y ago · link · parent

I did not know that. Fascinating.

comment 1y ago · link · parent

I described one of them elsewhere.

No, not like Gmail. Orders of magnitude less complex than that.

No, being JS/React "native" wasn't the problem there. Actually the opposite. The developers were not willing to think about an application with state, and when they found modelling this hard (with Redux), they decided that React (a different technology) was the problem.

comment 1y ago · link · parent

I'll tell you about one of them.

It was a kiosk app running on mobile tablets. It could have been a small native app, but the team, who were all pure Pythonists, tried that and decided it was too hard. So someone said React would be easy; after all it's just gluing together components, right?

The React app was built in ~3 months but the deadlines had created technical debt. When the team had problems modelling all the state, and the Redux store became an incomprehensible mess, someone said, "The problem is React. HTMX will finally make things simple".

They spent ~9 months on their HTMX rewrite and got even less far than the React version. It had numerous bugs; the UX had various regressions; it couldn't properly interact with some custom hardware; the state was now in the DB and apparently was not looking much nicer than it was in Redux, and eventually management pulled the plug.

I didn't work on it directly so I don't know how much HTMX itself stymied the project. From my interactions with the team, I think the real problem was the attitude of the developers. They decided they "hated React" when in truth they were bad at thinking about UI, particularly UI state, and unwilling to learn.

And HTMX gave succour to the fantasy they could continue not to. In fact that's how the initiative was sold to management, a way to turn non-UI devs into UI programmers.

comment 1y ago · link · parent

As I mentioned in a comment above, I've seen a few commercial projects attempted. But I'm hesitant to recommend HTMX, all three of them were failures (and for technical reasons not business ones)

comment 1y ago · link · parent

> But they're still too new and unproven for the React-embroiled companies to switch just yet.

I've seen a few of HTMX projects attempted in production, at my previous employer. Decently sized, moderately complex web products for serious commercial purposes

I will say though, all three were complete disasters.

comment 1y ago · link · parent

I feel this way sometimes about recycling. I am very diligent about it, washing out my cans and jars, separating my plastics. And then I watch my neighbour fill our bin with plastic bottles, last-season clothes and uneaten food.

comment 1y ago · link · parent

I think that makes sense.

I have done the hyper optimised, inline resource, no blocking script, hand minimised JS, 14kb website thing before and the problem with doing it the "hard" way is it traps you in a design and architecture.

When your requirements change all the minimalistic choices that seemed so efficient and web-native start turning into technical debt. Everyone fantasises about "no frameworks" until the project is no longer a toy.

Whereas the isomorphic JS frameworks let you have your cake and eat it: you can start with something that spits out compiled pages and optimise it to get performant _enough_, but you can fall back to thick client JavaScript if necessary.

comment 1y ago · link · parent

> They have literally written down, stated in interviews, repeatedly, that these are what their goals are.

Something I find baffling - even disturbing - is the number of apparently intelligent, reasonable people who hear what these bad actors say, read what these bad actors write, but repeatedly construct alternative interpretations that amount to "when they say they to want break our society, they actually mean something else"

comment 1y ago · link · parent

Someone unplugged the Big Router

comment 1y ago · link · parent

Insurance is largely about pricing risk. At the heart of most insurance platforms is a risk engine of sorts that takes a list of parameters and produces a premium.

The better your risk models, the more easily you can offer competitive premiums without over-exposure.

(I have worked in insuretech. Although my work was on transactional services and our white labelling capabilities rather than the math heavy stuff)

comment 1y ago · link · parent

What about Go?

"go install github.com/org/repo/x"

comment 1y ago · link · parent

How are people consuming 3800 calories per day? I don't doubt your numbers but the scale of that seems inconceivable.

comment 1y ago · link · parent

When I trained for a half marathon, I didn't lose any weight. I just became very hungry.

(And, unfortunately, when I injured myself, I kept being hungry - and gained mass)

comment 1y ago · link · parent

Summary (no gpt):

- Why are people in the West fat when people in developing nations are thin?

- Prevailing wisdom is that Westerners use fewer calories / have sedentary lifestyle

- Study compared calorie expenditures across societies and found this was false

- Cause is probably diet, maybe ultra processed foods, but not movement

- Data covered 4213 men and women across 34 countries

comment 1y ago · link · parent

I cannot see how it was a success.

1. He overpaid by tens of billions. That is a phenomenal amount of money to lose on an unforced error.

2. Enough users, who produce enough content, have left to make X increasingly a forum for porn bots, scam accounts and political activists. It's losing its appeal as the place "where the news happens" and is instead becoming more niche.

3. The firings did not go well. X has struggled to ship new features and appears nowhere closer to the "everything app" Musk promised. It posts strange UUID error codes. The remaining developers seem to implement things primarily client side, to the extent I even wonder if they have lost their ability to safely roll out backend changes.

4. The capture of X by far-right agitators has led to long term brand damage for Tesla, Musk's most important business property.

I can't see any positive outcome from it.

comment 1y ago · link · parent

But clarity and brevity, though a good beginning, are only a beginning. By themselves, they remain bare and bleak.

When Calvin Coolidge, asked by his wife what the preacher had preached on, replied, “Sin,” and, asked what the preacher had said, replied, “He was against it,” he was brief enough. But one hardly envies Mrs. Coolidge.

comment 1y ago · link · parent

+1 for Style: TCAG

It's one of the few books that approaches the topic in a systematic, structured way. Not a rehash of platitudes like "try and be concise".

I know I need to "omit needless words". What I don't know is which words are "needless". Style answers that with linguistics and cognitive psychology.

comment 1y ago · link · parent

This reminds me of those "memory freer" apps they used to distribute for Windows XP. Did they actually do anything useful? Or just force Windows to write everything to the pagefile?
1
111213
31