HNHacker News
TopNewBestAskShowJobs

tomelders

3,861 karma · joined December 15, 2010

designer developer, based in london. www.tomelders.com
submissionscomments
tomelders··on The “No Code” Delusion
This really resonates with me, but I don’t agree with it.

It resonates because there’s a problem with software development that remains unarticulated. It seems no one is happy. Developers aren’t happy, and the stake holders aren’t either.

For stakeholders, the people originating the ideas, signing the cheques and bankrolling the entire endeavour, programming really is a money pit, and programmers really are a pain in the ass. So no wonder people are so enchanted by the idea of software that doesn’t require code or coders. All they want is for their grand ideas to be realised as they imagine them. How hard can that be? If Computers can be made to identify faces, or translate French into Chinese, then surely their vision of an app that figures out the most efficient way to deliver parcels should be a walk in the park!?

For me, herein lies the problem. Computers are seen as magical devices capable of anything. Software, or code, merely the spells and incantations that breath life into those machines and commit them to do your bidding.

But! They are not magical devices. Code is not spells. Programmers are not magicians. There are constraints. Boundaries. Limitations. Great software is, in some way, defined by those boundaries. Great software is created not by people who believe that computers and code can be made to do anything. Great software is not the product of whim and whimsy. No. Great software is created by people who know the constraints, but see the opportunity within them.

Take for example, the Spreadsheet. No accountant, or any other form of number cruncher was involved in the conceptualisation, implementation, or evolution of the spreadsheet. The spreadsheet was born out of the minds of people who understood the capabilities of computers and code, and saw how they could be used to approach a problem from a different angle.

I would argue that the most significant event in the evolution of the web — after it’s invention — was Ajax. Yet no one, not even the people who first implemented XMLHttpRequest, fully understood its true potential until Jesse James Garrett came along and clarified the concept and significance.

HTTP had existed since 1996, and four years later, Roy Fielding gave us Rest — The recipe to a dish we already had the ingredients for.

What’s my point? I suppose I may have gotten off track. My point is this: The problem is not that code is hard, or programmers difficult. The problem is that software — which was once borne out of opportunity that only the programmer could see — is now born of the whim and whimsy of people who know nothing of what a computer can do, or how it does it. Software is the folly of people who believe in magic. People who aren’t thinking “what can this machine do”, but rather “make this machine do what I demand”.

tomelders··on Broadband Communism: Jeremy Corbyn gets serious about free internet
> Unfair competition from the state, with limitless pockets, driving them to bankruptcy.

Nope. The competition can still sell a better service, and can pass the free tier on for free. Also, ISPs sell bundled services, such as SIM cards or media packages. They can continue doing that.

> Wasted when finally repealed, or lost to lack of maintenance.

Nope. Invested. If some future government wants to throw that investment in the bin, that's on them.

> Taxpayers The Tax Payer already invests in the infrastructure and get's nothing back.

> No competition. Lack of incentives to improve the network.

Nonsense. This isn't a monopoly. If anything, the infrastructure in terms of ground works will make it cheaper for private companies to run their own cables to people's houses, offering superior bandwidth.

tomelders··on The Billionaires Are Getting Nervous
A clever twist in Warren's proposal is that the Government has the right to buy your property for whatever you've listed it for.

Now I'm sure any attempt to actually do that would end in a court case, but it's not really worth the risk to the owner of said wealth to offer the government all your Rembrants at bargain basement prices.

tomelders··on It took 12 weeks to ship an MVP I thought would take 3
Developers are optimists.
tomelders··on IBM casts doubt on Google's claims of quantum supremacy
It sounds like Quantum Supremacy is the Turing Test of our time. A worthwhile milestone to aim for, but not the holy grail people thought it was.
tomelders··on Things I learnt the hard way in thirty years of software development
> Turn off comments
tomelders··on Things I learnt the hard way in thirty years of software development
Writing code is also UX. some future user will have to understand it. More often than not, that future user is you.
tomelders··on New Evidence Suggests Satoshi Nakamoto Is Paul Le Roux
What is your fascination with my forbidden closet of mystery?
tomelders··on Base Web, Uber’s New Design System for Building Websites in React
It turns out I was wrong about this, but not in a good way.

It appears you can pass functions to the config that render components, which presumably can also take an override config which in turn can take a function to render components and so on. So it's basically negating the entire point of JSX. It's halfway between JSX and React.createElement. The worst of both worlds.

tomelders··on Base Web, Uber’s New Design System for Building Websites in React
That is not better. Just look at what you've created vs the idiomatic way of accomplishing the same thing with vanilla React. It's a new DSL on top of React that just adds unnecessary noise. It over complicates what should be a simple task.

Why do I have to specify "List" twice? And what sort of magic is "component" performing? What are children now? Do they not exist anymore? And what does "overrides" mean in this context? Passing children to a component is not an "override".

I think you're drunk on your own hype buddy. Maybe this all makes perfect sense to you, but it looks like garbage to me.

tomelders··on Base Web, Uber’s New Design System for Building Websites in React
You're out of your mind if you think that's an better way to compose components. How would you do something like this?

  <DNDLlist render={(listItem => {   
    switch(listItem.type) {   
      case 'foo':  
        return <FooListItem>{listItem.title}</FooListItem>;  
      case 'bar':  
        return <BarListItem>{listItem.title}</BarListItem>;  
      default:  
        return <ListItem>{listItem.title}</ListItem>;  
    }  
  })}>
tomelders··on Base Web, Uber’s New Design System for Building Websites in React
I didn’t propose the solution to a Select input that you said I did. There’s no need to define multiple render props since the most complex of selects is going to be a nested tree structure. Each node of that tree can be passed as an argument to the render prop, and the render prop itself can conditionally render any number of children types.

Everything is customisable without this override solution. And I’d argue that things become less customisable with it. What if the CustomOption component needs to be customised too? This solution makes a mess of that type of composition.

tomelders··on Base Web, Uber’s New Design System for Building Websites in React
But you’re still creating a suite of components that can be composed to create a specific instance of a date picker. Except with the override config, you’re now complicating and limiting the simple and versatile concept of composition.

Your components now need to follow some pre established and short sighted rules in order to understand how to manage their own children.

To use the example in the article, lets say you have an Option component, but now you want a version of that component that takes two additional components under certain conditions. E.g, an icon, and a checkbox? But only when one specific Option has a specific combination of props?

How does this override system handle that? It doesn’t. Composition handles that. But if components are created with this override system in mind, they lose the ability to be composed in more complex ways than the designer of the override system imagined.

tomelders··on Base Web, Uber’s New Design System for Building Websites in React
For the past few years, i’ve been building “reusable component libraries” and I can say with confidence that they’re a massive waste of time.

When you get into it, the UI usually the least difficult problem to solve in an app. The real challenge is state management, control flow, and wrangling sode effects.

Alas, people are still wedded to the idea that UI is where all the time is wasted.

The truth is, it’s always been easy to put a button on a screen. But making that button do something? That is a much bigger problem. I’d argue that 99% of the effort of putting a button on a screen goes into implementing whatever that button does. But stakeholders don’t understand that. They think buttons just do the thing they do, so when it takes six weeks to put a button on screen, they naturally assume that a reusable component library that includes a button will somehow shave days and weeks off a project.

Which is why they gravitate towards UI libraries. And then they introduce a new problem that wasn’t there before. They want us to use Material UI, but they want us to make it look different. And they want a bunch of extra UI elements to boot. So not only do we still have all the original problems of creating an app, we’re now on the hook for turning some implementation of Material UI into something that fits with with our architecture, but is also completely different.

So while I hate UI libraries, I recognise that they’re something inflicted on a team. So I’ve started work on a UI library designed specifically to address this problem. It’s a UI library that’s meant to be changed and easily customised by it’s consumers. It’s minimal functionality and minimal styling. I’ll announce it here on HN when I think it’s ready. It may never be ready because not only is it a difficult problem to solve, I’m also very lazy.

But anyway, I say all this because I hear what you’re saying, and I’m working on it.

tomelders··on Base Web, Uber’s New Design System for Building Websites in React
Ok, fair enough. It was a drive by shooting of a comment. So here’s a more considered criticism.

There’s already a way to overwrite props in react. Just use props.

If you need to expose the native API of the underlying element, do this (does HN format code?)...

``` const {foo, ...native} = props;

<label {...native}> <p>{foo}</p> </label>

```

Combine that with default props and you’re good to go.

There’s already a way to allow components to take multiple types of children.

``` <Select render={ blah => { return <CustomOption>{blah}</CustomOption> }} /> ```

And there’s already a multitude of ways to adapt styles based on props, the most obvious of which is StyledComponents.

In addition, this highlevel config is brittle. It means parents must be coupled to their children, and children coupled to their parents.

And where does this config end? How deep does the nesting of this configuration go?

Here’s my opinion; if you think you need this sort of configuration to properly wrangle your UI, then you’ve failed to grasp the point of React and the true power of composition.

React components are just functions. Preferably pure functions. Once you strip away the JSX, you should be left with something that resembles functional programming (albeit taken to an extreme thanks to JSX’s goal of emulating HTML). Props are parameters. We’ve all come across code where functions take complex and convoluted objects as arguments that trigger an explosion of calls that are near impossible to track or reason about.

This override solution is the first step in towards turning React into the kind of tool that it usurped. It has the stench of ExtJs and it’s ilk.

This “solution” was created by people who believe all problems are better solved by abstraction.

As programmers, our time is spent on the edge cases. Our text book prefect algorithms and mathematically sound functions are exposed as frauds the second they’re exposed to user input. Our carefully crafted UI libraries fall to pieces when the designers choose to break their own rules.

For configuration to work, it requires god level foresight and will eventually become Turing complete in itself.

Config is for the birds. Declarative code has always been the answer.

tomelders··on Base Web, Uber’s New Design System for Building Websites in React
Nope. This is replacing composition with configs for no good reason. It's like the people who made Grunt and Webpack teamed up to ruin React for everyone.
tomelders··on High Speed Trains Are Killing the European Railway Network (2013)
All running the same route, at the same time? It doesn't look like it.

https://www.omio.co.uk/search-frontend/results/1307902350/tr...

tomelders··on Hollywood Upended as Unions Tell Writers to Fire Agents
Well that is a question many writers are asking themselves. What agents can offer is contacts, introductions, sage advice and the benefit of experience, to both writers and to studios, show runners etc. But eventually, agencies will always start to consolidate power, and start to act more like cartels, controlling the studios access to writers, and the writers access to studios.

In the past, this has led to individual agents breaking away from an agency, and using their contacts on both sides to start something new, and more mutually beneficial. I believe Endeavour started out like this in a round about fashion. But over time, Endeavour has grown, consolidated power and has become the same poison it was once the antidote to.

The WGA's new staffing system may well make the current agency model obsolete. And if that happens, agents themselves will have to go back to their roots and rediscover what their actual value is.

tomelders··on Hollywood Upended as Unions Tell Writers to Fire Agents
It's worth listening to the last few episodes of the Script Notes Podcast. John August (Big Fish, Titan A.E., Charlies Angles) is on the board of the WGA and they've been keeping listeners up to date with these negotiations.

This episode in particular is a good overview of what's going on and what the complaints and objectives are...

http://scriptnotes.net/393-twenty-questions-about-the-agency...

tomelders··on High Speed Trains Are Killing the European Railway Network (2013)
We need to nationalise the railways EU wide. Privatised rail makes no sense anywhere in the world. Flights are cheap because competition drives down prices. But there's no real competition on the rail network. You can't have two trains leave the same station and arrive at the same destination as the same time. The train company that runs the train from Station A to Station Z at 13:00 get's all the passengers that need to travel that route at that time. Sure there are ways for one train to overtake another, but that capacity is severely limited because of the physical and safety constraints.

Trains are also more expensive to run than planes because they need more infrastructure to operate, and that infrastructure is high maintenance. So we have almost no competition, high operating costs, and we've set it up so the people operating the trains are in opposition to each other and have no incentive or obligation to work together to lower prices or improve the service.

Nationalise it. All of it. And let's just accept that there are some things that simply shouldn't be run by the private sector.

And I realise that "Nationalisation" in the context of the EU is the wrong word. What I'm saying is the that EU should run the whole thing. Whatever that's called... Federalisation? I don't know.

tomelders··on Emissions fall in Madrid city center thanks to new traffic restrictions
I don't own a car because I'm fortunate enough to live in London with an awesome public transport system and a half decent cycle network.

But the air quality here sucks and pollution from cars is through the fucking roof. We just introduced an Ultra Low Emission area scheme that's a half hearted attempt to do what they've done in Madrid, but for me that doesn't go far enough.

I think we should just ban any vehicles that aren't electric from being inside the M25 and give people two years to prepare.

I get that this will be difficult for a lot of people and cause a lot of disruption, but it's killing us. It's killing us now. And if the Brexit brigade can wave away the looming catastrophe of their no-deal-Brexit dreams by conjuring up fantasies about the Blitz spirit, and how we can always make do and mend because we're British; then I don't see why we can't use that same logic to inflict difficult circumstances on people to save the fucking planet and protect our fellow citizens from the harm of air pollution that's being brought into our city by people who don't fucking live here.

tomelders··on Warren Buffett sells his Oracle shares, retains $44B investment in Apple
Are you sure? I suspect that they’re the people most likely to participate in those polls.

I personally can’t be bothered with these kinds of questions, but I remember that back in my early days, I was something of a zealot when it came to things I knew vs things I didn’t. I cut my teeth on PHP, MySQL and Flash/Actionscript. Had you asked me back then how I rated those things, I’d have given them 10/10, despite having nothing to compare them to.

tomelders··on Warren Buffett sells his Oracle shares, retains $44B investment in Apple
Eh... i’d disagree. But what do you mean by “Top Notch”?
tomelders··on Warren Buffett sells his Oracle shares, retains $44B investment in Apple
Yeah but... at the risk of sounding like a dick... is stack overflow the best place to guage opinion on such things? I mean we’re essentially asking the people who post questions like “why is my HTML table not look right?” To posit an opinion on what they consider best of class in a whole bunch of categories that they’re probably novices at.

I think it’s pretty clear that the people with the best opinions on SO are vastly outnumbered by people with unqualified opinions. Surely something like Simpson’s law can be applied here. Like - of the people with n amount of accepted answers for any given tag - what is their opinion on something related to that tag?

tomelders··on Warren Buffett sells his Oracle shares, retains $44B investment in Apple
There are a few companies who could all have the same slogan, but I’ll use Oracle in this example...

Oracle: we make the stuff that other people make you use.

Other candidates include (but not limited to)

- Atlasian - Microsoft - Adobe

tomelders··on EditorConfig: Consistent coding styles across various editors and IDEs
But why? You can enforce coding styles in a passive way through linters and formateers that work actoss IDEs. And in those rare cases that a junior dev is trying to show their worth by using a poorly configured VIM or Emacs, then there’s pre-commit hooks.
tomelders··on The Mate X is Huawei’s 5G foldable
Two wrongs don't make a right.
tomelders··on Facebook adds 5 divs, 9 spans and 30 CSS classes to every post in the timeline
There was a Chinese mobile browser that essentially did this if I recall. And didn't Amazon have something like this for one of their earlier Kindles?
tomelders··on Apple tells app developers to disclose or remove screen recording code
They should just ban first, explain later, in this scenario. The app developers know full well what they're doing, and the remedy should be punitive for scumbag outfits that operate like this.
tomelders··on NHS.UK frontend
This entire thing will compile down to regular HTML/CSS. This is about as future proof as you can get.
← PreviousPage 2 of 34Next →