Kotlin user since 201X here. In general, I avoid receiver functions because it feels like speaking two different dialects simultaneously. I think it causes context switching and draws attention away from the business logic. Though I sometimes use .let to name an expression in a bounded scope.
Posts by Roy B
Helt ufortjent. De kunne i det minste ha gitt henne en krakk.
Is it necessarily true that white has an advantage? Could it be that because the players believe it is so, the choice of different strategies enforce the belief? I.e. playing to win vs playing not to lose. Could the “advantage” be that black simply has a narrower path to a draw?
In Norway, because they called themselves Green and the politicians fell for it.
HP-Taschenrechner hatten die gleiche EEX-Taste
This is a US victory only in the sense that Iran helped Trump out of his own quagmire.
Kan Arbeiderpartiet forklare hvordan de har tenkt å gjennomføre omfordeling/hjelpe de fattigste uten at «presset på økonomien» øker? Det går ikke opp.
Hvorfor sitter jeg med følelsen av at folk ikke er ute etter noen unnskyldning, eller noen grunn til å ha tillit til Kronprinsessen? At det de vil ha er blod, at hun skal krype for alle og enhver?
Life hack: When someone makes a claim, find out how much they will lose if they’re wrong before you believe them.
Teddybjørnen: - Kan jeg få Bamsemums?
Jeg: - Er du kannibal, eller?
Teddybjørnen: - Spiser du seigmenn?
Gud så deilig det er med Debatten uten Fredrik Solvang. Et program som nå handler om sak mer enn om programlederen.
O
I
L
Watching the most embarrassing presidential performance ever. No country has a president with a greater need to praise himself.
Det er bare flaut at NRK ikke klarer å tekste med norsk alfabet i 2025.
RxQ
Some (many?) who want to use Haskell professionally end up writing enterprise systems, where Haskell doesn’t shine that much. Like driving a Lamborghini to the shopping mall. And it will not give them happiness.
I can do FP in any language that supports functions as values, which includes all Lisp variants. But if the language does not enforce purity, discipline is required to avoid impure functions. Which is hard if the team is larger than 1 person.
Already in the 70s, Larry Constantine and others stated that functional cohesion is better than temporal cohesion with regard to avoiding defects and improve maintainability, even though they didn’t relate it to functional programming as such.
Programming with pure functions. Effects are just values until they are handled at the application boundary.
Consequently, effect-returning functions may be called in a different order than the effects are composed, so calls may be ordered by functional rather than temporal dependencies.
Gianni Infantino has won the prestigious Rimmer of the year 2025 prize
When Usain Bolt set his 100m world record, he spent approx 65% of the time with both feet in the air. To be as fast as him, just keep your feet in the air 65% of the time. Or – is it the other way around?
www.runnersworld.com/training/a69...
Functional programming? I can write it, but I can’t read it.
{app | app uses rounding} ∩ {app | app uses infinite decimal expansion} = ∅
I feel sorry for anyone working in a language with nulls.
I feel sorry for anyone working in a language with uncontrolled mutation.
I feel sorry for anyone working in a language with side effects.
I feel sorry for myself.
All the problems we could have not had.
foldl
Chinese buses could be stopped remotely by the producer. Wouldn’t be surprised if the same is true for many Chinese EVs.
www.nrk.no/stor-oslo/ru...
Hør her. Det er fort gjort å tro at journalistikk er en av de tingene KI passer til, men det er faktisk en av de tingene KI passer _dårligst_ til. Modellene er lagd for å generere ord helt uavhengig av hva som er sant, det er nesten det motsatte av god journalistikk. Dere må slutte med det. Nå!
It sure was! Learnt something today
There was a cord between Gemini and Agena?
Hva skal man med Åpenhetsloven hvis hoder ikke ruller i Equinor? Equinorskandalen er jo prototypen på hva loven skal forhindre.