Hacker News new | ask | show | jobs
by rubicon33 969 days ago
Am I the only one who feels like declarative programming fucking sucks?
3 comments

Am I the only one who uses declarative programming when it makes sense, and $other-type-of-programming when that make sense?

When creating UIs, I haven't found anything better than declarative programming. But in the end, it's all trade-offs, nothing seems to be a silver bullet, UI programming just fucking sucks in general.

> When creating UIs, I haven't found anything better than declarative programming

This is only true for basic UI. The more complex it gets, the less I like declarative programming.

Declarative is great for simple static UI, and configs. That's pretty much it.

Declarative programming is the best programming.
Hard drives are the best drives.
Square wheel is the best wheel.
red is the best colour
Once you are used to the patterns and functions coding becomes faster, easier to understand and less error prone.
You should never have to "get used to the patterns"... that in itself is an anti-pattern.
Counterpoint: Everyone had to "get used to the patterns" for the first programming style they learnt (even if they've been programming long enough to forget that).

That shouldn't be a reason to avoid learning a different style -- unless there's good reason to believe that style B's patterns are much harder to learn than style A's were (which I'm sceptical of in this specific case).