News for hackers. Stuff that matters.

laggan

Re:2019 Python Developer Survey on Friday November 01, 2019 @02:16PM (#21422054)
I think overall it is still very immature, I wish there was someone more competent who lead the project. Its not just a lack of resources to blame for its many shortcomings in my opinion.

* the syntax is obtuse and limited on a completely arbitrary restriction of not wanting to extend the parser. (The idea of decoupling type annotations from the type checking implementation is completely insane)

* in most situations you will not know if mypy actually does anything on any given line of code or silently ignores it. There are some options to enable more strict checking but that is almost completely useless because...

* most/all libraries (even standard library) packages have none or very few type annotations (stubs) available and this will likely never actually get better due to its aforementioned incompetent design.

* there is a huge amount of tiny little annoyances and mistakes in the design of the type system you will stumble on when working with it on any large scale

* the mypy type inference (or lack thereof) is terrible, compare it with type inference in C++ (auto) or Rust to see the difference to a competently done type system.

* the mypy software itself has a history of a huge amount of bugs and regressions speaking to its immaturity (1,130 open issues in github at the moment)

I feel most people who will defend mypy no matter what, have probably not had the "pleasure" of using it in a significantly large codebase.

But... I still use it, people should still use it, shitty static code analysis is still better than nothing.

Re:2019 Python Developer Survey on Friday November 01, 2019 @01:52PM (#21421756)
C and C++ are radically different that is not an accurate comparison. Python 3 has many minor breaking changes and few bigger changes. Most huge codebases that support 3 have huge amount of support code that makes it compatible with 2. Probably 80% of the changes in 3 could've been done in an backwards-compatible way, but they actively chose not to.

I'm still surprised that python survived it, the update was so incompetently done. Just the huge amount of wasted developer resources on this mostly unnecessary update is staggering.

Re:When XML Beats JSON: UI Layouts on Wednesday October 30, 2019 @08:17AM (#21396839)
I actually found JSON Schema to be FAR FAR FAR easier to use than XML Schema.

https://json-schema.org/