Better HN
topnewbestaskshowjobs
Log inSign up

sunrunner

1,141 karma · joined Jul 26, 2024 (2y ago) · 438 submissions

Submissions

comment 1y ago · link · parent

> blame the engineers for the complexity

I was going to add that the engineers themselves do (or should, in a healthy organisation) have the mandate to knowingly choose not to bring in artifical complexity where it's not useful or required.

But then I thought that in a lot of situtations perhaps the engineers aren't really 'Knowingly choosing not to' but 'Unknowingly choosing to' bring in that complexity, because the volume of content and mindshare that goes into proposing new and alternate ways of working and tools that aren't actually different seems to dwarf the amount of information around fundamentals and things that don't change as often.

So perhaps any accountability really should go as much to CTOs, open source developers trying to make their mark, influencers.

comment 1y ago · link · parent

> Everything was rendered on the server.

Until rendering on the client was cool. But then search engines hate that, so maybe we'd better render on the server after all but then also re-render everything on the client ('reconciliation'). Ah wait, what's this? Now you can opt for 'partial pre-rendering', because it wasn't enough to send HTML from the server and make more HTML in the client, now we can mix client-only HTML rendering with reconciled server-rendered-client-re-rendered HTML.

comment 1y ago · link · parent

> CV building for FAANG type job hunting, job niche building and job security self-indulgence, and a fundamental disregard for maturing the industry

I think there is both an inherent complexity and artificial (or 'introduced') complexity in software.

Inherent complexity comes from increasing expectations over what kinds of software we want to write (the evolution of the web and browser 'features' since its initial inception, the kinds of interaction on mobile, tablet and desktop devices) and _how_ we want to write that.

Some amount of higher-level tooling is almost a necessity because the absolute amount of lower-level things needed to make the more powerful abstractions work is too high to deal with practical. Want to write a cross-platform fully-featured-with-animation UI toolkit with just the raw hardware in your desktop? Fantastic exercise for learning, but you're almost guaranteed to start reaching for higher-level tools at some point in the journey.

The growth in artificial complexity, however, comes from so many places (including all the ones you listed).

Sometimes it's from processes and ways of working that are introduced (I sure hope you do fully automated releasable builds including management of the computers that do those).

Sometimes it's from socio-technical problems (working in a single shared code base and having to coordinate changes and releases? Surely it would be easier for teams to never have to talk to each other and just release small things independently...).

Sometimes it's from an approach to building software that is perceived as better, easier and faster (shipping a desktop application? Wouldn't it be so much easier to just bundle a full UI layout engine, scripting language interpreter, hierarchical appearance control syntax, portable bytecode interpreter and some application code that was itself compiled from a _different_ language so it could be interpreted by the interpreter you actually shipped...)

Sometimes it's from system design approaches that are pushed as 'best practice' and introduced without necessarily understanding whether you ever had the problem they were intended to solve (please, tell me more about how your relatively small ecommerce application needed to be event based in order to 'scale up').

Sometime it's because the handful of companies shipping acceleration hardware have practically zero commercial incentive to standardise on an API for writing programs that can run on said hardware, giving us a world with four (at least) slightly different syntaxes that all sort-of-mostly accomplish the same thing while being awkwardly different.

I could go on...

Not that some of the artifical introduced complexity doesn't sometimes solve actual problems or be an overall-useful thing to have. No criticism here on introducing software-based processes to formalise things, improve software quality, and so on.

But it's useful to keep in mind how much of the complexity is introduced to improve overall processes versus 'solving' for some local maxima by adding more tech without the overall software quality improving, with the end result being we've made our own lives worse in some way, without measurably improving the resulting application.

comment 1y ago · link · parent

> a service should minimize the number of synchronous requests

This doesn't feel like a goal for system design that should be persued without careful consideration. Aside from the universal 'it depends', every technical decision has a trade-off, and the trade-off with making system-level events asynchronous is a system with more moving parts that need more monitoring, has more potential states, and seems harder to debug than one with necessary waiting just built in.

> but by design they block progression until complete

Isn't this often a good thing? If a result is required then chaining events that are independently failable but required to complete seems to create more work.

> That being said, for an e-commerce application it may be actually feasible to make synchronous calls to the payment service by default, but fall back to asynchronous processing in case of failures. As the contract to sell typically only gets accepted when an item gets shipped, you still have the room to cancel an order if a payment falls through on the asynchronous processing path.

Choosing to defer the requirement for payment acceptance is a very specific design choice that complicates the overall system by introducing new state(s). Maybe it's needed for your specific e-commerce application, but maybe just requiring payment at point-of-sale is simple and effective?

> synchrony budget

I'd argue that the budget should be for _asynchrony_, and operations should be kept synchronous until a genuine requirement for asynchronicity arises where the cost of adding that complexity justifies the result.

Incidentally, it's interesting that broad system design concepts always seem to be based around strawman e-commerce applications.

comment 1y ago · link · parent

> you might be stuck sheepishly asking the user to try again, because the sync control flow (including auth) starts from the user.

How does this actually work in practice? At some point you need to communicate the results of a successful or failed login attempt to the user (more generally, the initiating party) which means they're inherently waiting for something and will either see a success or a failure. A login as a precursor event to other kinds of actions feels inherently synchronous, because it's not a fire-and-forget action.

comment 1y ago · link · parent

> mass causality events like pandemics or wars

Luckily neither of those things has happened in the last few years.

comment 1y ago · link · parent

Sadly, the garbage collector is still needed to deal with the output of the garbage generator ;)

comment 1y ago · link · parent

Citation needed? :)

comment 1y ago · link · parent

The web as it was originally conceived - readable (but not interactive) content with linked resources - feels a far cry from the web of today, a platform for interactive applications that seems to grow asymptotically towards feature-parity with native applications (UI, input handling, data processing, hardware access) while never quite getting there, encompassing the fundamental things that make 'applications' work.

If the modern web _did_ reach feature parity in some way the real question would then be 'What makes it different?'. As linked resources doesn't seem like a particularly strong unique feature today the only other things I can think of are the simpler cross-platform experience and the ease of distribution.

So then the questions are 'What would make for a better cross-platform development experience?' (Chromium embedded framework not included) and 'How do we make app distribution seamless?' Is it feasible or sensible to have users expect to access every application just by visiting a named page and getting the latest version blasted at their browser?

And I guess that's how we got Chrome OS.

comment 1y ago · link · parent

And, by definition, Natalism is self-propagating. Is the implication here that the ideas that propagate and persist are inherently better?

comment 1y ago · link · parent

Also known as the only unbreakable law (https://www.youtube.com/watch?v=5IUj1EZwpJY), a fact which feels deeply depressing when you dig into it.

comment 1y ago · link · parent

Re-invented or re-implemented? The design was always the same just the materials have changed (and maybe there's something about motor racing and new wheels being available every year...)

comment 1y ago · link · parent

The specificity reason is interesting as it relates to what feels like an assumption in software that all software components are neatly shaped boxes that a) perfectly encapsulate an area of functionality and b) can be placed into neatly shaped holes of 'required functionality', neither of which ever seem to be true.

The boxes are always weirdly shaped with odd edges, and the holes they have to fill are always oddly shaped. The code written to join the two is at minimum glue that seals the two edges, but also usually involves converting one shape to another.

comment 1y ago · link · parent

Like every single software development principle, this phrase really needs to be explained with more context and considered with more subtlety than the usual "It's best practice" advice, for a number of reasons (some of which are stated in the article) of which I think the following two are the most important:

Firstly, if you want to actually understand how the 'wheel' is invented then yes, you should re-invent it. The process of re-invention involves discovering what actually goes into some of the tools you use. Even if you never use your re-invented wheel in public (often advisable), the process of learning is invaluable in understanding the tools you do use.

Secondly, however, what wheel are we even talking about? The wheel is a timeless design, seemingly perfectly suited its task. The software libraries and tools that are usually picked as targets for 'not re-invention' are not wheels. They're higher level abstractions that pre-suppose certain ways of working. There's no timeless design here, just a bunch of arbitrary desicions about how something should work at a higher level with some amount of the decision making you'd have to do without it already done. Is this a bad thing? Of course not. But understanding that all of the 'wheels' are just this and are not magical black boxes that can't be understoor or shouldn't be looked at is important.

There are good times to not immediately go and re-implement *and publish* existing tools (emphasis on the publish, you should do things for learning), but understaning why you're choosing to do or NOT do a 'reinvention' is crucial.

comment 1y ago · link · parent

Can you give some examples of things you'd consider fads versus classical in software?

comment 1y ago · link · parent

There is an incredibly large space for decisions and belief systems in software that are not evidence-based but that can all lead to programs (in the general sense) that all function and produce the same results while being internally very different.

The _need_ to build higher-level abstractions to manage the complexity or verboseness required to do things from lower level components always seems to be fighting with the _desire_ to build your own higher-level abstractions that fit your own view of how things 'should be', despite many of the decisions going into this being abstract and not easily objectively measurable.

On top of that, software components as 'reusable boxes' only seems to work up to a certain level. The idea seems to be that higher-level abstractions and reusable pieces are all nicely shaped square boxes that all perfectly fit inside other boxes, but the reality seems to be more that even the best reusable boxes aren't perfectly square, have weird edges, and themselves have to fit into larger non-square shapes with weird edges.

And what are the weird sharp edges? Decisions that had to be made about solving a problem. Every higher-level software component is on some level a set of (mostly arbitrary, sometimes measured) decisions about how to take a set of lower level generic components and make something more specific with them. Libraries might assume a certain structure but leave choices for how they're composed to the user. Applications make many more decisions about how their components are used in order to provide a more specific tool. There is a move from genericity to specificity as you move up layers of components.

And finally, software requirements change all the time, but the need to change is itself at odds with the requirement that problems are solved only by making hundreds of decisions that have to work together for a working solution but also may be difficult to undo.

> the constraints and the discipline that it imbues on their craft.

Perhaps the constraints and discipline here comes from a desire to move towards some kind of standard or expected way of structuring software, knowing from experience that the cognitive cost of making (and sometimes having to read and understand) all the arbitrary decisions mentioned above is actually quite high. (This itself also leads to the notion of 'best practices' which seemingly change too often to ever really be considered best).

comment 1y ago · link · parent

> as long as the function name for it is somewhat understandable

But does using a function, essentially a box with known inputs and outputs, constitute actually understanding the function? What happens if you need to debug or understand the implementation of it? Now the original name has gone and you're looking at a larger number of differently-named things that hopefully communicate their intent well. But if you need to understand _those_, and so on...

comment 1y ago · link · parent

This is exactly the kind of example I have in my head for code that constitutes a high level of information density. Adding abstraction and 'literate' constructs to try and make things readable is ultimately deferring the fact that understanding the code here is fundamentally about understanding a specific implementation of an algorithm, and to understand _that_ ultimately needs the reader to build their own clear mental model of both the algorithm itself and how it's been translated into a specific form.

Maybe it's a defeatist attitude, but I feel like sometimes the problem is the problem, and pushing abstractions only works to defer the requirements to understand it. Sometimes you can defer it enough to do useful work, other times you just need to understand the thing.

comment 1y ago · link · parent

Does this apply to all domains and all 'kinds' of code?

I feel like there's a fundamental difference in the information density between code that, for example, defines some kind of data structure (introducing a new 'shape' of data into an application) versus code that implements a known algorithm that might appear short in line length but carries a lot of information and therefore complexity.

comment 1y ago · link · parent

I'm aware this isn't a full body suit but I can't help but remember the scene from Iron Man 2 where one of the alternate suits does a full 180 with an operator inside it.

comment 1y ago · link · parent

Interesting point! I wonder how that fits in to PDF/A and the idea that an archival format and long-term preservation of the original document...

comment 1y ago · link · parent

I couldn't help but notice that the authors were credited "In random order" and am now wondering a) Why not alphabetical? and b) Did they just shuffle the order once or was it "Random until we found an order that happened to match some other criteria we had in mind"

comment 1y ago · link · parent

Neat. I always thought Advent of Code 2015's Day 19 (Medicine for Rudolph) was just an exercise in parsing and validation of production rules against a grammar, and any use of regex in that puzzle solution was purely coincidental ;)

comment 1y ago · link · parent

> a proper runtime like JVM or .Net?

Or (god forbid) a proper runtime like just the OS and architecture of the platform you're running the tool on.

This article calling out Go because you have to prebuild binaries for every OS and architecture combination beforehand (even though you probably already know this combination and it's likely small) and saying that doesn't scale but then requiring every user to not just get the WASM binary they want to run but _also_ just get the (OS and architecture-specific) runtime for the environment seems unfair.

Anything where you distribute your application in a way that isn't immediately usable on a target platform without having to set up an environment of some kind feels like a 'Shift right deployment' kind of thinking, where it's fine to do the bare minimum to make your tool available and it's now an end user's problem to get everything set up to run it.

In some cases this is fine and the cost is low (same-language library usage for example) but when it comes to tool distribution every time I see 'cargo install' for someone's cute Rust project or an instruction to 'just do the following ten steps and you can run the executable' I usually just back away from GitHub and don't bother.

comment 1y ago · link · parent

> Code that is correct doesn't require any attention and isn't worth considering.

Until the requirements of the system (of any kind) change and now the code isn't 'correct' for the new requirements and needs updating.

comment 1y ago · link · parent

I'd personally appreciate it very much if photons from the future could be captured to take pictures from week and years ahead. Could be used to help with those awkward tasks like choosing the correct lottery numbers, choosing the correct stocks, choosing the horse that's definitely going to win, etc.

comment 1y ago · link · parent

> a world of social proof

Which results in the idea of 'good practice', 'best practice' and 'bad practice', and nobody wants to be seen as the person doing things that are considered bad practice, because that would imply that you're a bad developer.

And I almost always hesitate to use the term 'engineer' because as far as I know engineering is considered to be a practice/process that uses measurements and results to drive decision-making, unlike various areas in software. Can you imagine if the same kind of thinking was applied in civil engineering? "This new material has a lot of stars on GitHub and everyone is saying the old materials are bad practice."*

* Which is a thing of course (see: Asbestos) but only in the places with measurable observable outputs.

comment 1y ago · link · parent

For some reason in software there seems to be an incredibly large space for non-evidence based thinking and belief systems.

I wonder if that's because in a lot of cases (depending on the domain) the space of possible valid/working solutions is near infinite, and if you don't have hard requirements that are backed up by measurements you're free to concieve of any valid system structure and justify it as 'better' without that ever being something that can be observed and measured.

comment 1y ago · link · parent

Interesting. Reminds me a bit of Hank's 'Universal Language' idea from Fargo S2.

comment 1y ago · link · parent

I feel the same about Casey and his work, and like another commenter said, his simple, practical and honest approach to his work is refreshing in an era of languages, environments and tools that feel bloated, slow and ineffective (IMHO).

> That being said the whole network idea, and the fetishisation of his particular coding philosophy was always cringe.

And I agree with this too. The point of Handmade Hero to me was always to show that the complex software systems that you interact with can be understood despite their size and complexity, and that it's still possible (though perhaps in a lot of cases impractical) to recreate these from the ground up. Also that there's tremendous value in understanding how something works from first principles (see also Casey's 'How to Open a Black Box' lecture, https://www.youtube.com/watch?v=SYomOZIfeoU).

Having said that, while I feel it's important to aspire to some level of simplicity and solving-the-actual-problem that Casey's coding style embodies, it also feels like an approach that works best only when a) the number of people working on a single program is relatively small and b) the expertise is deep and so the need for abstractions is low or non-existent.

With Casey's background in game tools it makes a lot of sense, but this approach doesn't seem like it scales up, and he's essentially the only contributor to Handmade Hero too.

> It took him and his team 8 years of dedicated work to make The Witness, and it's just not a very technically impressive game.

I'm a big fan of the design of The Witness and Blow's work in general and I don't feel like being "technically impressive" was ever the goal, as it wasn't with Braid either. Jon is as much of a solo designer on his projects, and it's not clear how much of that total development time went into their custom rasteriser and navigation (Killing the Walk Monster, https://www.youtube.com/watch?v=YE8MVNMzpbo) versus puzzle design.

At the end of the day I believe the end result was fantastic and I don't think too much about the development time, but it's true that Jon was in a unique position to be able to self-fund almost the entire project which a lot of other studios can't do.

> There's clearly flaws in making software this way.

As is always the case, being somewhere in the middle feels like the ideal place and extremes at either end have their own problems.

1
1112131415