Comment

Comment by speedgoose

I understand that the point of his example is to introduce the reader to a variant of the very classic multitier architecture with layers.

https://en.wikipedia.org/wiki/Multitier_architecture

But I prefer the first version of the example, because while it's named "complex code" I think it's the simplest version. I think that there is no need to decouple this simple and straightforward function in three functions that cannot be reused independently. Splitting a function in smaller functions make sense where the code is complex, but I think it's important to not overly do it.

parent speedgoose 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton