1 point

Const everything by default

If you need to mutate it, you don’t, you need to refactor.

permalink
report
reply
2 points

Dogmatic statements like this lead to bad, messy code. I’m a firm believer that you should use whatever style fits the problem most.

Although I agree most code would be better if people followed this dogma, sometimes mutability is just more clean/idiomatic/efficient/…

permalink
report
parent
reply
-1 points

Define your terms before relying on platitudes. Mutability isn’t cleaner if we want composition, particularly in the face of concurrency. Being idiomatic isn’t good or bad, but patterned; not all patterns are universally desirable. The only one which stands up to scrutiny is efficiency, which leads to the cult of performance-at-all-costs if one is not thoughtful.

permalink
report
parent
reply
0 points

Scala user unite! There are dozens of us, dozens!

permalink
report
parent
reply
0 points

Scala? Can we reimplement it in Rust?

permalink
report
parent
reply
0 points

But does it do everything in anonymous functions and lambdas?

permalink
report
parent
reply
1 point

can someone explain please?

permalink
report
reply
1 point

The only const in life is to const all the things.

permalink
report
reply
0 points

I oscillate between using more functional paradigms and more object-oriented ones. is that normal?
I use a linter BTW(TypeScript) if that is a useful info.

permalink
report
reply
0 points

Avoid shared mutable state like the plague in any paradigm and you’ll be fine

permalink
report
parent
reply
0 points

state management crying in the corner

permalink
report
parent
reply
0 points

Functional state management is fine

permalink
report
parent
reply
0 points

Needs more monads

permalink
report
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3K

    Monthly active users

  • 800

    Posts

  • 12K

    Comments