News for hackers. Stuff that matters.
Re:The Top Programming Languages 2025 by flanked-evergl on Wednesday September 24, 2025 @08:46AM (#45359544)
We run mypy with `--strict` mode in CI, which means it only passes if we have type hints and if they are correct, or if we have added `# type: ignore[code]` for places where the errors are reported.

And the type hints and behaviour are specified as part of Python, so it's kind of baked in. It's just that the actual type checker is not part of CPython, though Mypy is considered the reference implementation.

We have quite a large code base and very few `# type: ignore[code]` directives.

Some third party code still has poor type hints, but for the most part it's fine, and we get null safety which you don't get for Java.

Re:The Top Programming Languages 2025 by pjmlp on Wednesday September 24, 2025 @11:37AM (#45361860)
SonarQube/Checkstyle/Kotlin/Scala sugar > Mypy sugar
Re:The Top Programming Languages 2025 by flanked-evergl on Wednesday September 24, 2025 @11:52AM (#45362092)
Type hints and their behaviour are part of the Python language. Kotlin and Scala is not Java. I did not know that checkstyle + SonarQube adds static null safety to Java, but I appreciate that you will share a citation that it adds static null safety. I think everyone coding Java should really learn to use this so they don't create null pointer exceptions.