Live data from Hacker News

How to make websites that will require lots of your time and energy

blog.jim-nielsen.com

41–50 of 247 posts

Re: How to make websites that will require lots of your time and energy

#41

working at a certain faang made me realise even the most simplest trivial task can become endlessly complicated most of it from my observation is people justifying their own roles, where the real value they bring is arguable imo

I'm the person who automates things. Before making things complicated, people would just copy paste crap from SO and hope it worked.

Then came linters and everyone hates me. But you know the codebase is slightly less buggy/shitty thanks to them.

The funniest thing to me is people thinking they don't need tests, linters, type checkers, because they're so good at it.

Re: How to make websites that will require lots of your time and energy

#42
post #23
post #11

Im pretty sure that most packages and frameworks break less than your own code…

My own code doesn't break without me working on it.

Neither do your dependencies. Unless the maintainer somehow hacks into your server and updates them for you?

Re: How to make websites that will require lots of your time and energy

#44

I enjoyed the concept of "a complication step". Can't see the results of changes until my code has finished complicating.

Haha I’m not sure if the compilation/complication mixup was intentional, but it made me laugh :D

Re: How to make websites that will require lots of your time and energy

#46

Always use ORMs and then spend the next year debugging N+1 queries, bloated joins, and mysterious performance issues that only show up in prod. Migrations randomly fail, schema changes are a nightmare, and your team forgets how SQL works. ORMs promise to abstract the database but end up being just another layer you have to fight when things go wrong.

Funny, I use prisma and pothos, with p99 at below 50ms - no N+1

(when it is not lower, then it is because there are sec framework and other fields that might not be mapped directly do the prisma schema)

Re: How to make websites that will require lots of your time and energy

#48
post #27
post #4

Earlier quoted context omitted.

I think the emphasis is in 'indiscriminatly'. The goal is not to have absolutely zero dependencies, just don't depend on dependencies that you could reasonably implement yourself. A classical example might be https://www.npmjs.com/package/is-odd

JavaScript's weak typing and implicit type conversions get in the way of reasonability though: >>> '13' % 2 0 >>> 'nan' % 2 NaN >>> NaN % 2 NaN >>> null % 2 0 this package ensures that you have a sane complement to is-odd, e.g. `!isOdd(someVar)` is always even (in the domain of natural numbers). A naive implementation of is-odd: `(some_var % 2 === 1)`, does not have a sane complement. Anyway, to include this package…

The question is: how likely is it that I get the trash input in and do I care about the result if the input is trash? Modulo two works well for a lot of cases where this is needed. (Which probably is size of a container (array) or alternating something in a loop.
Post reply on HN