|
|
|
|
|
by golergka
433 days ago
|
|
Vast majority of JS/TS we write doesn’t live on the critical path and should be optimised for readability over performance. However, when it does, it should be explicitly recognised, appropriate boundaries put, and that code written in a completely different style altogether. There are A LOT more of idiomatic and widespread JS/TS patterns that should not be used in such code. Before TS, I used to write games in C# (Unity), and it was the same there too. I think this distinction between two kinds of code holds in a lot of environments. |
|