this post was submitted on 13 Oct 2023
804 points (93.6% liked)

Programmer Humor

32380 readers
1039 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 25 points 1 year ago (8 children)

Dynamically typed/interpreted language?

Python Yup that checks out.

I've never understood why so many languages insist on a feature that causes such a obtuse and tedious programming experience.

Python is great, until you don't remember a function call, and can't guess using your LSP to tell you. :/

[–] [email protected] 3 points 1 year ago (7 children)

Time to delivery is important. Moving quickly withing a language and frameworks that prioritise speed over safety gets a product out the door is important when testing whether a business idea holds merit. Once you're established with a better scope of the project you should be rewriting this in a static language.

Dynamically typed interpreted languages should never be used for long term support imo

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (4 children)

Once you're established with a better scope of the project you should be rewriting this in a static language.

Or bolt MyPy to it, right? concerned Padme meme

Edit: Wow. Somebody out there has no sense of humor about their bolt-on type solution.

[–] [email protected] 1 points 1 year ago (1 children)

Hey its better than nothing? Haha

If performance isn't an issue, I'd take it over nothing for long term support

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

Yeah. I live to make fun of MyPy - or rather of Python for needing MyPy, but it's "good enough" in many situations.

[–] [email protected] 2 points 1 year ago (1 children)

Why make fun of it though? If you make typing and being checker-clean mandatory on a Python project, you get most of the benefits of static typing. The biggest hole is if the libraries you're using aren't properly type annotated. Perhaps I'd feel differently if the meat of my projects was the use of badly or un-typed packages, but thankfully it isn't.

I would rather have a statically typed language with equivalent clarity, ease of use and extensive libraries, but the benefits of Python along with comprehensive, enforced type annotation are strong. Proper thread handling could be good, but since that forces you towards avoiding monolithic executables, and using asyncio (which is a delight to use), it's almost a benefit.

[–] [email protected] 2 points 1 year ago

That's a good point. I do love options.

I'll still jest a little at Pythons expense until a type system is natively available.

Having the option of not using types is great.

Having to go discover how to do basic typing in a 3rd party library is not great.

I adore Python, though - Right down to it's painful Logging modules.

load more comments (2 replies)
load more comments (4 replies)
load more comments (4 replies)