Sat Apr 26 12:55:49 AM +08 2025#19
¯\_(ツ)_/¯
¯\_(ツ)_/¯
In computer programming our basic building block has an associated time grain of less than a microsecond, but our program may take hours of computation time. I do not know of any other technology covering a ratio of 10¹⁰ or more: the computer, by virtue of its fantastic speed, seems to be the first to provide us with an environment where highly hierarchical artefacts are both possible and necessary. This challenge, viz. the confrontation with the programming task, is so unique that this novel experience can teach us a lot about ourselves. It should deepen our understanding of the processes of design and creation, it should give us better control over the task of organizing our thoughts.
Как вы видите даже одна операция выделения памяти может стать узким местом, если она выполняется внутри часто вызываемой логики. В играх динамическое выделение памяти в большинстве случаев запрещено, вам 95% завернут такой код на ревью. Без веских на такое действие причин выделять память где хочется нельзя. Все, что может быть выделено, должно быть выделено до старта уровня.
Verba/Salix acutifolia
Run/walk
2016 on one's own
Первая весенняя свежесть, +12
1936
There you have it: some of the weirdest things in the Linux kernel's git history. There are 1,549 octopus merges, one of which has 66 parents. The most heavily diverged merge has 22,445,760 lines of diff, though it's a bit of a technicality because it shares no history with the rest of the repo. The kernel has four separate "initial" commits, one of which was a mistake. None of this will show up in the vast majority of git repos, but all of it is well within git's design parameters.
Above all, you do not let your tests drive your design, you let your design drive your tests! The design is going to point you in the right direction of what layer in the MVC cake should get the most test frosting.
When you stop driving your design first, and primarily, through your tests, your eyes will open to much more interesting perspectives on the code. The answer to how can I make it better, is how can I make it clearer, not how can I test it faster or more isolated.
The design integrity of your system is far more important than being able to test it any particular layer. Stop obsessing about unit tests, embrace backfilling of tests when you're happy with the design, and strive for overall system clarity as your principle pursuit.
Unfortunately, SawStart is one-use-only. Once started, the blade cannot be stopped, and must be replaced with a fresh blade while the running one is carefully disposed of.
Long Aerobic
Про это пишет Хэмингуэй в «Празднике, который всегда с тобой»:
«Радостно было спускаться по длинным маршам лестницы, сознавая, что ты хорошо поработал. Я всегда работал до тех пор, пока мне не удавалось чего-то добиться, и всегда останавливал работу, уже зная, что должно произойти дальше. Это давало мне разгон на завтра».
Vibing
Лайков не будет)
Хочется, конечно, чтобы здесь было всегда красиво. Но будет, как будет. 😂
И нужно проверить несколько гипотез.
https://natureofcode.com/
Космос наш ждёт
Пифагорейское