|
|
|
|
|
by agentgt
2331 days ago
|
|
I have to agree (ignoring the whole C doesn’t throw exceptions). I have been looking at our bugs, logs and exceptions recently of the past 6 years and an enormous amount of bugs are caused by methods/functions that have multiple parameters with the same type (Java). This happens because (my theory) we use java and java doesn’t have type aliases or value types as well as easy destructuring. It also doesn’t have named parameters (well there is a compiler option to retain the parameter name but it’s not like ocaml label parameter or python kwargs). So often times in boring business programming you are dealing with methods with 5 to six strings so it’s very easy to mix up the parameter order. Very few “hard” bugs were caused by NPEs where as the previous problem caused serious pain. |
|