3 ms·
I think as your backend grows larger you will likely begin to run into the issues that I experienced with Python through my years of writing it. The dynamic ty
by codetrotter 3y ago
I think as your backend grows larger you will likely begin to run into the issues that I experienced with Python through my years of writing it.
The dynamic typing eventually makes certain kinds of bugs creep into your code and it can be difficult to realise.
Code written in dynamic languages are also more difficult and time consuming to refactor than code written in a statically typed language.
- damacaner 3y agoYes that is right too. Dynamic typed languages always feels like I am 6 again, with my crayons all over the place, doing random bullshit go till something sensible comes out. Good luck finding what is wrong if a bug occurs, good luck if you will refactor it and think how can you replace it, how can you rewrite it without destroying the whole aesthetic of the code. just like my parents trying to figure out how will they renew the wall after I draw a huge chunk of random shit to the wall with my crayons.
- gazpacho 3y agoIf he’s using FastAPI he is essentially forced to use typing and is probably running a static type checker
- damacaner 3y agoEven, it's only enforced in routing functions. Outside of it, like utility packages, MongoDB or such so, you are not enforced, go with whatever you want. ...guess what my coworkers prefer! urgh.
- roflyear 3y agoTrue, absolutely, but if you add type hints before you refactor, it isn't too bad.
- throwaway019254 3y agoNot before the refactor. Type hints need to be there from beginning. I can't imagine anybody decides writing python without type hints in 2023.
- roflyear 3y agoCorrect, but if they are there this isn't a problem, so if it's a problem I'm figuring they aren't there ...