Hacker News new | past | comments | ask | show | jobs | submit | maxZZzzz's comments login

Oh my god.

If the original Technique does not work: try this.

That is so much more in depth and works for more people then the original Technique!


Two points

* functional style makes it easier to split stuff since you mostly transform immutable data

In the Article IO, State (side-effects) and Data transformation is mixed in both versions. That leads to unnecessary complexity. In that case worse if it hides in sub-functions. But separate it and the right version is better. (you can answer the question about idempotency easily now)

* Comments over blocks of code are harder to keep in sync with the code below, they require more discipline from all team members

So in theory they are nice, but you will never have them unless you enforce them through proper code reviews.


I agree with the Functional style part, but hardly disagree with your second point.

Because of the fact that, keeping comments over blocks of code in sync with the code below requires the same exact amount of effort (arguably less) as keeping function names (and ideally, documentation) in sync with the code inside..

Except that, if the second one is not done, that is a lot more dangerous than the first- exactly because, every time you define a function, you are declaring an abstraction, and if the abstraction changes silently, that's where the real mess begins.

That's what ends up happening in my experience. (See also sibling other comments about the proliferation of flags in a function signature)

(Needless to say, I strongly resonated with the OP as I also love linear code with comments, but in the end it's also a matter of taste..)


Also they note that ChatGPT is familiar with the World up to around mid 2021.

This is the world before ChatGPT. Eventually they will have to update it. How do you separate pristine Information from ChatGPT Information during training? If not addressed properly this will raise the noise level even further.


The network model is lockstep. Which means everything that changes gamestate needs to be deterministic.

Keeping that alone bug free is quite the achievement.


People decided that walking on paths is better then not walking on them.


Yes, but you could create the path just as you plant the grass and amuse yourself to no end on how sheep-like people really are. Just because there's a path there, it doesn't mean its optimal or good for the public at large.


>it really doesn't necessarily lead to any kind of true decentralized hosting unless someone else has decided to pin your files

You can either pay somebody to pin the files. Or a public Organization like "archive.org" decides that a site is important enough to pin it. The typical surfer will seldom pin something but can keep low freq special interest sites alive. There is no fee lunch.

With HTTP it has become hard to mirror a modern site. In IPFS it is a built in feature. Makes a better Internet.


> Why is it wrong to kill another man?

"Why" implies to me that there is or should be a rationale. Our culture stores a lot of behavior and spreads it by the means appropriate. Some need rationale most do not.

Killing feels evil and is considered morally wrong. But in reality mankind, like many species, decided at some point, that killing its own should generally be avoided and is therefore allowed only under very specific circumstances.


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: