HN user

andsbf

41 karma

meet.hn/city/-28.0023731,153.4145987/Gold-Coast-City

Socials: - github.com/Andsbf

---

Posts0
Comments26
View on HN
No posts found.
Good CTE, Bad CTE 4 months ago

An issue that has arise for me in some situations is that for more expensive/reporting queries we point to a db replica, where temporary tables are not an option.

... they would build at startup by processing their whole history of events (that was ridiculously slow for some of them)

There is a basic technique to solve this, you snapshot every "nth" event

+1 for this, code should be layout to express business logic, abstractions that difficult the readability of the business logic are not worth it, it is a distractions. Yeah takes a while for juniors to understand when/how to use DRY.

Repetition is not a terrible evil, it has its place

As a Brazilian who migrated to another country, I mostly try to hide my background. It is great to see that some of our values, like compassion, are appreciated in other countries, and folks like Luiz André could show a bit of it

`...If you call model.update(params) in Ruby, then it returns false if it fails and updates model.errors with what went wrong. Mutable state.`

This is Rails stuff, not Ruby

When will people settle on the fact that there is no silver bullet? It's always a matter of trade offs according to the system needs.

I still to see something that is not "slammed" here on HN.

I read this article the other day that people with "technical background"[1] have this "instinct" to quickly look for "wrongs/fails" to avoid failures, issue here is, we express our selves terribly and most of the time it will go blunt on comments. This lead a whole discussion on the topic, some people it was the right thing to do, and others thought that we should be more human/kind to each others.

The article above was actually about Pull-Request/Code-reviews, and how some people will mostly scrutinise others people work to feel like a hero.

[1] I believe most of us here have a "technical background", who else uses a "ugly forum"