by sayhar · 5y ago · 0 comments
Seems like one day, everyone around me was using dataclasses. I had not even heard of them. It felt like I had missed some memo or newsletter. It felt weird.
Here's my question: what should I have been reading / where should I have been "hanging out" online, so that I would have known that dataclasses were a thing? What are your go-tos for news about new language features, libraries that everyone is using, etc?
Hacker news is great, but it doesn't quite fill that need for me, it seems.
Generally, I find out about new features through PEP posts, and I reach those by seeing a keyword that I don't know in random code I read online
_This_, so much.
If you are a heavy user of a language / library, it's immensely helpful to look at the release notes every once in a while. Even if you don't plan to upgrade now, it gives you an idea of where things are going (and may eventually tip the scales to a "fuck it, it's now worth upgrading" moment).
For Python specifically, PEPs are also a good way to keep track of what's happening (even if some of them don't get accepted): https://www.python.org/dev/peps/ ; there's also an RSS feed: view-source:https://www.python.org/dev/peps/peps.rss/
I also like to keep up to date with the PyCon videos, as well as some of the other python conferences. But, as others have said, the release notes are the main source for whats new, if a bit dry.
That said, I never actually use data classes. I normally just use dicts, and occasionally named tuples.
I like to spend a few hours a week reading up on whats happening, or try something new to keep up. Checking out new language features is part of that processes to me.
https://www.reddit.com/r/Python/
I think the RealPython site is excellent for learning, even for mid to advanced users:
They also have a great podcast:
https://realpython.com/podcasts/rpp/
Also just browsing the Python docs and release notes.
For Python specifically, PEPs are very helpful too: https://www.python.org/dev/peps/