What is Nostr?
Terry Husky /
npub1r6e…exh8
2023-10-20 21:37:19
in reply to nevent1q…y75q

Terry Husky on Nostr: npub1zuzyg…hm2vc I think dynamically typed languages often let you build and ...

npub1zuzyg5k8qdtu89nnzr5qmflzwleu7rlhm0t50gduu83qr04nrnus0hm2vc (npub1zuz…m2vc) I think dynamically typed languages often let you build and iterate quicker at the cost of long term maintainability.

Which is ok sometimes. I like python for quickly building stuff to talk to/ break un/ underdocumented web apis. Because you can grab and parse some random json response from a REST endpoint and play around with it without needing to first create a perfect struct/ class that has all the undocumented fields in it. I can just muck about in a jupyter notebook until I figure out how it works.

It being dynamically typed also increases your chances that a change to the api won’t bork your script in the case that the change touches something that you don’t actually interact with.

But I’d only do it with small/ medium sized scripts/ programs if it got bigger I’d probably try to move to a language with stricter type checking or maybe adopt type hints.
Author Public Key
npub1r6esxcfwdfezstvzjc8wdr5v3nva2kpd3kqjj2ffscduskdzev5sxpexh8