You are viewing a single thread.
View all comments
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

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

  • 3.3K

    Monthly active users

  • 806

    Posts

  • 12K

    Comments