Tue Apr 15 08:45:24 AM +08 2025#17
Как вы видите даже одна операция выделения памяти может стать узким местом, если она выполняется внутри часто вызываемой логики. В играх динамическое выделение памяти в большинстве случаев запрещено, вам 95% завернут такой код на ревью. Без веских на такое действие причин выделять память где хочется нельзя. Все, что может быть выделено, должно быть выделено до старта уровня.
Mon Apr 14 02:11:45 PM +08 2025#16
Verba/Salix acutifolia
Fri Apr 11 01:56:10 PM +08 2025#15
Run/walk
Thu Apr 10 01:13:27 PM +08 2025#14
2016 on one's own
Tue Apr 08 04:58:03 PM +08 2025#13
Tue Apr 01 08:52:06 PM +08 2025#12
Первая весенняя свежесть, +12
Sun Mar 30 01:48:58 PM +08 2025#11
1936
Sun Mar 30 10:25:56 AM +08 2025#10
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.
Sat Mar 29 08:29:22 PM +08 2025#9
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.
Tue Mar 25 11:11:44 AM +08 2025#8
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.
Mon Mar 24 03:37:21 PM +08 2025#7
Long Aerobic
Sun Mar 23 11:23:49 PM +08 2025#6
Про это пишет Хэмингуэй в «Празднике, который всегда с тобой»:
«Радостно было спускаться по длинным маршам лестницы, сознавая, что ты хорошо поработал. Я всегда работал до тех пор, пока мне не удавалось чего-то добиться, и всегда останавливал работу, уже зная, что должно произойти дальше. Это давало мне разгон на завтра».
Wed Mar 19 02:10:23 PM +08 2025#5
Vibing
Mon Mar 17 03:36:38 PM +08 2025#4
Лайков не будет)
Mon Mar 17 02:35:29 PM +08 2025#3
Хочется, конечно, чтобы здесь было всегда красиво. Но будет, как будет. 😂
И нужно проверить несколько гипотез.
https://natureofcode.com/
Mon Mar 17 02:29:39 PM +08 2025#2
Космос наш ждёт
Mon Mar 17 02:16:08 PM +08 2025#1
Пифагорейское