Re:Ask HN: Why the Linux Kernel doesn't have unit tests?
by IgorPartola on Friday November 25, 2022 @10:30AM
(#33743253)
For some languages it’s a whole lot more important than others. Python and JavaScript are memory-safe so you don’t need to worry about writing a bigger object into a too-small memory allocation.
You will discover that you reversed the order for parameters to a function by running your code with much less effort than annotating all your code. This type annotation is entirely useless:
Re:Ask HN: Why the Linux Kernel doesn't have unit tests?
by pfdietz on Friday November 25, 2022 @10:36AM
(#33743308)
Additionally, if you are testing the code anyway for other reasons (like, to check that the logic is correct), you exercise the dynamic type checking for free.
You will discover that you reversed the order for parameters to a function by running your code with much less effort than annotating all your code. This type annotation is entirely useless: