Yet another hacky solution to address one of the biggest Python’s flaws. Why not switch to Java instead?
Open-sourcing MonkeyType – Let your Python code type-hint itself
11–20 of 237 posts
Re: Open-sourcing MonkeyType – Let your Python code type-hint itself
#12This sounds similar to Dropbox's PyAnnotate -- Guido van Rossum writes about it here: http://mypy-lang.blogspot.co.uk/2017/11/dropbox-releases-pya... Would be interesting to see how MonkeyType and PyAnnotate compare.
I'd also like to know how much quicker or better it could have been completed if it had been done out in the open.
Re: Open-sourcing MonkeyType – Let your Python code type-hint itself
#13Having so much dynamically typed code to maintain that you need to run production code using a separate tool just to figure out the types sounds just wrong. Why not use a statically typed language for such a large code-base? Is this done by purpose, or did they end up with a million lines of Python code and are looking for ways to make the maintenance easier?
And before I get down-voted to hell - I completely understand using Python for many things. It a good technical choice for many different problems, but navigating a million lines of Python seems just daunting to me (although maybe I'm just not experienced enough with Python).
Re: Open-sourcing MonkeyType – Let your Python code type-hint itself
#14Reading this as someone who writes mostly in statically typed languages, the whole exercise seems odd. Having so much dynamically typed code to maintain that you need to run production code using a separate tool just to figure out the types sounds just wrong. Why not use a statically typed language for such a large code-base? Is this done by purpose, or did they end up with a million lines of Python code and are look…
Re: Open-sourcing MonkeyType – Let your Python code type-hint itself
#15Yet another hacky solution to address one of the biggest Python’s flaws. Why not switch to Java instead?
Because the product would never have been released given the same constraints on developer time x count x qualifications
Re: Open-sourcing MonkeyType – Let your Python code type-hint itself
#16Reading this as someone who writes mostly in statically typed languages, the whole exercise seems odd. Having so much dynamically typed code to maintain that you need to run production code using a separate tool just to figure out the types sounds just wrong. Why not use a statically typed language for such a large code-base? Is this done by purpose, or did they end up with a million lines of Python code and are look…
This tool? This tool takes an existing set of codebases and makes them safer. No major boiling of oceans required.
Re: Open-sourcing MonkeyType – Let your Python code type-hint itself
#17Yet another hacky solution to address one of the biggest Python’s flaws. Why not switch to Java instead?
But it looks like this is a troll account, so flag & move on.
Re: Open-sourcing MonkeyType – Let your Python code type-hint itself
#18I do find it intriguing though, that adding back types manually is so hard and slow. Is it slower when done retroactively? Or is it just as slow when done at the same time, but we don't realize its overhead?
Re: Open-sourcing MonkeyType – Let your Python code type-hint itself
#19Earlier quoted context omitted.
If lots of successful projects use what you consider the “worst” technology, perhaps the problem is with your perception rather than the technology?
Those people believe that the right choice is assembly unless you can write directly in hex /s
(Not totally a joke. My mother wrote in octal before she got an assembler.)
Re: Open-sourcing MonkeyType – Let your Python code type-hint itself
#20Reading this as someone who writes mostly in statically typed languages, the whole exercise seems odd. Having so much dynamically typed code to maintain that you need to run production code using a separate tool just to figure out the types sounds just wrong. Why not use a statically typed language for such a large code-base? Is this done by purpose, or did they end up with a million lines of Python code and are look…
From a technical aspect, I do find these projects cool. I wonder if its more efficient for large companies to initially develop using dynamic languages then transition them with these optionally typed languages.