| ▲ | DrBazza 4 days ago | |
If you work in finance, you've probably just bankrupted your company. Nanoseconds matter. Clean code tends to equal simple code, which tends to equal fast code. The order of items in memory does matter, as does cache locality. 32Kb fits in L1 cache. If of course you're talking about web apps then that's just always been the Wild West. | ||
| ▲ | smallmancontrov 4 days ago | parent | next [-] | |
> Clean code tends to equal simple code, which tends to equal fast code. Wat? Approximately every algorithm in CS101 has a clean and simple N^2 version, a long menu of complex N*log(N) versions, and an absolute zoo of special cases grafted onto one of the complex versions if you want the fastest code. This pattern generalizes out of the classroom to every corner of industry, but with less clean names+examples. The universal truth is that speed and simplicity are very quick to become opposing priorities. It happens in nanoseconds, one might say. Cache-aware optimization in particular tends to create unholy code abominations, it's a strange example to pick for clean=simple=fast wishcasting. | ||
| ▲ | tracker1 4 days ago | parent | prev | next [-] | |
I'm not sure if you are considering the patterns actually used in "Clean Code" architectures... which create a lot of, admittedly consistent, levels of interface abstractions in practice. This is not what I would consider simple/kiss or particularly easy to maintain over time and feature bloat. I tend to prefer feature-oriented structures as an alternative, which I do find simpler and easy enough to refactor over time as complexity is required and not before. | ||
| ▲ | aketchum 4 days ago | parent | prev | next [-] | |
nano seconds matter in some miniscule number of High Frequency and Algorithmic trading use cases. It does not matter in the majority of finance applications. No consumer finance use case cares about nanoseconds. The vast majority of money is moved via ACH, which clears via fixed width text files shared via SFTP, processed once a day. Nanoseconds do not matter here. | ||
| ▲ | dirtikiti 4 days ago | parent | prev | next [-] | |
Clean code does not equal fast code. All those abstractions produce slower code. https://www.computerenhance.com/p/clean-code-horrible-perfor... | ||
| ▲ | SeanDav 4 days ago | parent | prev [-] | |
Humans are quite capable of bankrupting financial companies with coding issues. Knight Capital Group introduced a bug into their system while using high frequency trading software. 45 minutes later, they were effectively bankrupt. | ||