Hacker News new | ask | show | jobs
by elisharobinson 2449 days ago
python has a awesome type system , even though it has support for dynamic typing. you cant use dict, int, list interchangeably given enough time you notice operations and methods which can only work for a given type. but when the types share similarity like they are iterate-able they work predictably.

although its not for everyone , but if your talking about large projects you could use metaclasses to enforce type checking during instantiation.

tech debt can sometimes be unavoidable. i often find the case to be that a project stops progressing due to fear of breaking something and not knowing how to fix it. In python this fear is reduced almost by an order of magnitude compared to other programming languages.

also in typed languages used in large projects. the project itself behaves like a standard or a protocol , people memorize the values of bytes each request contains , people start maintaining informal codes to access the project or it becomes some hob goblin of word documents , pdf and jira .

and god forbid you need to make a change in the datamodel to a more optimized model, you would most likely have to throw away most of your code which you wont do because solving all the build issues and waiting for it to compile from start doesn't go on the clock as time spent coding something useful.

1 comments

It would be helpful if you could mention your employer so I don't accidentally go work in such a place.
These are tales of systems which run most of the worlds banking. They are not mine but third party accounts And dont flatter yourself we a have strict no snob policy.