this post was submitted on 24 Feb 2025
385 points (99.2% liked)

Programmer Humor

21739 readers
2852 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Good old Udemy Elixr/Pheonix courses being irrelevant within 6 months but still trying to con people by saying they're updated to current year.

you are viewing a single comment's thread
view the rest of the comments
[–] rockSlayer@lemmy.world 16 points 3 weeks ago (9 children)

It's even happened to me with python. I stepped away from programming for a while and now all the guides are about 3.8 while the version on trixie is 3.13

[–] JasonDJ@lemmy.zip 24 points 3 weeks ago* (last edited 3 weeks ago) (8 children)

Has python changed that much for a new learner that a 3.8 tutorial is worthless in 3.13?

I don't think so...there's new features that wouldn't be taught, but most everything from Hello World to decorators and lambdas were present in both.

Now, if you have a python 2 guide....yeah. That's worthless. That shows its flaws during "Hello World".

[–] Artyom@lemm.ee 12 points 3 weeks ago* (last edited 3 weeks ago) (3 children)

Python 3.11 onwards can basically be a fully statically typed language, which is a pretty dramatic change in where you spend most of your time. Python 3.13 allows you to do multi threading as a compiler option, we might see native multi threading in 3.14 or 3.15 (or maybe that's a 4.0-worthy feature honestly)

[–] thoughtfuldragon@lemmy.blahaj.zone 14 points 3 weeks ago* (last edited 3 weeks ago) (2 children)

Python now has type hints, which are not the same as static typing. Those hints do not change program operation. See https://peps.python.org/pep-3107/

You can pass a string to a function parameter annotated as int and Python will happily accept it (assuming the function does not attempt to call a method that a string doesn't have).

[–] Artyom@lemm.ee 1 points 3 weeks ago

CAN being the critical word here. If you use tools like pydantic, then yes, typing can be strictly enforced, or as most people use it, you can type only what you want to type.

You got any code written for Python 3.8 that won't run in 3.13?

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