<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: asylum</title>
    <description>The latest articles on DEV Community by asylum (@underactors).</description>
    <link>https://dev.to/underactors</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3769889%2Fc3a38615-feae-4f9a-91f4-29d609862d87.jpg</url>
      <title>DEV Community: asylum</title>
      <link>https://dev.to/underactors</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/underactors"/>
    <language>en</language>
    <item>
      <title>Python is actually lowkey useful and i slept on it for too long</title>
      <dc:creator>asylum</dc:creator>
      <pubDate>Sat, 21 Feb 2026 03:32:02 +0000</pubDate>
      <link>https://dev.to/underactors/python-is-actually-lowkey-useful-and-i-slept-on-it-for-too-long-4hc2</link>
      <guid>https://dev.to/underactors/python-is-actually-lowkey-useful-and-i-slept-on-it-for-too-long-4hc2</guid>
      <description>&lt;p&gt;ok so im mainly a frontend/fullstack guy i do React TypeScript Node all that stuff but i never really touched Python. i thought it was just for data science nerds or people who build AI stuff and i didn't think i needed it&lt;br&gt;
then one day i had to automate something boring basically looping through a bunch of files and renaming them based on some logic and i was like ok let me just google it real quick&lt;br&gt;
bro. Python had that done in like 10 lines&lt;br&gt;
no imports no npm install 47 packages no webpack config just... python script.py and it worked. i kinda felt dumb for ignoring it this long&lt;br&gt;
the syntax is also clean in a way thats different from JS. like in JS im always fighting semicolons and arrow functions and figuring out if something is undefined or null or just broken. Python just reads like english almost you write what you mean and it does what you said&lt;br&gt;
one thing that tripped me up though is the indentation thing coming from JS where you use curly braces Python uses whitespace to define blocks and at first i kept messing it up. not gonna lie i had bugs that took me 20 minutes to find and it was just a wrong indent lol&lt;br&gt;
but once you get past that its actually pretty fun to write&lt;/p&gt;

&lt;p&gt;the file rename thing that started it all&lt;br&gt;
here's basically what i wrote nothing crazy but it got the job done&lt;br&gt;
pythonimport os&lt;/p&gt;

&lt;p&gt;folder = "./my_files"&lt;/p&gt;

&lt;p&gt;for filename in os.listdir(folder):&lt;br&gt;
    if filename.endswith(".txt"):&lt;br&gt;
        old = os.path.join(folder, filename)&lt;br&gt;
        new = os.path.join(folder, "done_" + filename)&lt;br&gt;
        os.rename(old, new)&lt;br&gt;
        print(f"renamed: {filename} -&amp;gt; done_{filename}")&lt;br&gt;
thats it thats the whole script. try doing this in JS without feeling like you're overengineering something&lt;/p&gt;

&lt;p&gt;and just to show how clean the syntax is&lt;br&gt;
pythonnames = ["ali", "sara", "john", "mike"]&lt;br&gt;
result = [name.upper() for name in names if len(name) &amp;gt; 3]&lt;br&gt;
print(result)  # ['SARA', 'JOHN', 'MIKE']&lt;br&gt;
in JS id write a .filter() then a .map() chained together. python does it in one line and it reads almost like a sentence took me a minute to get used to it but now i think its clean&lt;/p&gt;

&lt;p&gt;quick fetch from an api&lt;br&gt;
pythonimport requests&lt;/p&gt;

&lt;p&gt;res = requests.get("&lt;a href="https://jsonplaceholder.typicode.com/posts/1%22" rel="noopener noreferrer"&gt;https://jsonplaceholder.typicode.com/posts/1"&lt;/a&gt;)&lt;br&gt;
data = res.json()&lt;br&gt;
print(data["title"])&lt;br&gt;
no async await no .then().catch() no try catch wrapping everything. just call it and get the data&lt;/p&gt;

&lt;p&gt;im not switching from TS or anything i still think TypeScript is goated for big projects. but Python is now my go-to whenever i need to write a quick script or automate something its like the duct tape of programming languages in a good way&lt;br&gt;
if youre a JS dev who never touched Python try it for one small project just one you might be surprised&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
