|
|
|
|
|
by bspammer
1720 days ago
|
|
As Jason mentions, the most important contribution here is to make the code more readable and improve documentation. But there are also some fairly unambiguous improvements - switching from SHA1 to BLAKE2 for extracting the random bytes for example. |
|
- Readability counts. If you can't read the code, who could test or improve it?
- Documentation needs to be cared for near the code, only then you have a chance it's not outdated
- It's possible to improve correctness and efficiency at the same time (if your code is understandable)
- Use the literature available
- Code once holding high standards will need to be checked constantly too so it doesn't rot.