Big M notation for an API: how much mental effort does it cost to adapt the code to a new requirement. Good abstractions help you turn M(n^2) into M(n), M(n) into M(1).
-
-
Think about Big M of the abstractions you use, related to the tasks you do most often. Just like Big O, Big M may be optimized for reads, writes, or deletes — but of code itself.
Deze collectie tonen -
Also this is an interesting paradox: optimizing for O(n) over M(n) locally can lead to worse O(n) in practice globally.https://mobile.twitter.com/dan_abramov/status/1011756333211750408 …
Deze collectie tonen
Einde van gesprek
Nieuw gesprek -
-
-
I politely disagree. Computers manipulate electrons and photons. Anything else is an abstraction, often using patterns (e.g. instruction sets) To me, programming is human aspect of constructing computer operations (or programs). So patterns are fundamental to human programming.
-
I don’t disagree with you, it’s a bit like splitting hairs because we have only these brains and can’t even try to “program” differently. But if alien civilization also wrote programs but didn’t need abstractions (or had a different level) I would also call it programming.
-
High level explanations and abstractions are necessary to understand or explain anything about the world. All intelligent people, including aliens, must use them.
-
If you’re able to accurately simulate a computer in your head, isn’t machine code itself the best explanation?
-
Is your brain RISC or CISC?
-
It’s THICC
Einde van gesprek
Nieuw gesprek -
-
-
Yeah, programming can be with and without abstractions, but whats the point?
We are stupid, so we need abstractions. The better abstractions the less defects.Bedankt, Twitter gebruikt dit om je tijdlijn te verbeteren. Ongedaan makenOngedaan maken
-
-
-
It was far too late in my career when I realized this, well said.
Bedankt, Twitter gebruikt dit om je tijdlijn te verbeteren. Ongedaan makenOngedaan maken
-
Het laden lijkt wat langer te duren.
Twitter is mogelijk overbelast of ondervindt een tijdelijke onderbreking. Probeer het opnieuw of bekijk de Twitter-status voor meer informatie.