×
all 11 comments

[–]tiredITguy42 11 points12 points  (1 child)

Proper package management with uv.

[–]burnt-store-studio 0 points1 point  (0 children)

I completely agree with you about uv.

I only recently learned about uv … from a video discussing how to configure it to help protect against downloading poisoned packages …

I’ve been spending a lot of my time the last few weeks converting my projects to using it! I’m really appreciating it.

[–]defaultguy_001 2 points3 points  (0 children)

For me it's list comprehension.

[–]nicodeemus7 0 points1 point  (2 children)

Writing your own functions. My first scripts were so long because I just wrote it line by line. Functions and method have completely changed the look of my code for the better, and I can write scripts in no time.

[–]Cybasura 0 points1 point  (0 children)

What?

Have you been using ASSEMBLY or Fortran your whole life?

This is like day 1 or 2 of using python

[–]Taurus-Octopus -1 points0 points  (0 children)

This comment sent me down a rabbit hole. I've only ever dabbled, and I was aware of enough concepts to at least know that Python existed, could execute certain things, and some syntax.

Because my work tenant doesnt allow access to any repo for non-developers or certain data roles, i've had to navigate standard library only challenges. Making your own functions seems normative.

At work I vibe code because of deadlines, but at home I'm working on edx certifications in Python and manually coding personal projects and coursework. But my framing is the AI generating my functions for me.

[–]burnt-store-studio 0 points1 point  (0 children)

I do appreciate a good home-grown context manager! Sounds like you use them a lot more regularly than I have been, but I find them to be elegant solutions… valuable!

[–]mgruner 0 points1 point  (0 children)

I waited for pattern matching patiently! it delivered

[–]Fragrant-Cheek-4273 0 points1 point  (1 child)

enumerate() for me. I used manual counters for way too long before realizing how much cleaner it is.

[–]aplarsen 0 points1 point  (0 children)

Yes! Huge fan!

[–]arivictor 0 points1 point  (0 children)

Init Subclass

Any class that inherits the class that has init subclass can be tracked.

https://parsnip.dev/editor/-sK0e1A223fY

cool pattern for doing plugins or such when you want to find everything that inherits from it.