New blog post:
Do not reinvent the wheel
Python's standard library has a lot of built-in functionality. Before writing new code, make sure that what you need is not already in there, which is what happened on a blog post I found about checking if an IP belongs to a subnetwork.
https://sergiswriting.com/do-not-reinvent-the-wheel/
[#]Python
=> More informations about this toot | More toots from sergi@floss.social
@sergi Nice π
In the software landscape of 2024, I think the fact that some piece of code works on #Python 2 (or even early versions of Python 3 like 3.2) is so far beyond relevant for most of the world that it's not a virtue. I mean, I know there are still people and organizations using Python 2 out there, but let's not enable them π
=> More informations about this toot | More toots from diazona@techhub.social
@diazona @sergi Lack of awareness seems like a reasonable hypothesis, but FWIW, that older article was dated December 2015, when Python 3.3 was only about 3 years old and Python 2 was still supported. A strong case could be made for the need to support those older versions in 2015.
=> More informations about this toot | More toots from scottmiller42@mstdn.social
@scottmiller42 @sergi Which older article? The one at the link says it was posted today.
But yes, that would have been different in 2015.
=> More informations about this toot | More toots from diazona@techhub.social
@diazona @sergi Link βblog postβ in this sentence:
A clear example of that is a blog post I stumbled into a few weeks ago,
=> More informations about this toot | More toots from scottmiller42@mstdn.social
@scottmiller42 @sergi Ah, gotcha. I didn't click through that link when I was reading. But I don't think it really matters for what I was saying.
=> More informations about this toot | More toots from diazona@techhub.social This content has been proxied by September (3851b).Proxy Information
text/gemini