ZechCodes Profile Banner
Zech Profile
Zech

@ZechCodes

Followers
129
Following
3K
Media
86
Statuses
849

I have a lifelong passion for writing code. I run the https://t.co/o56WgMXSNz Discord community and write interesting open source projects in Python. He/Him

United States
Joined November 2020
Don't wanna be here? Send us removal request.
@ZechCodes
Zech
3 years
I created a dependency injection framework for #Python that can help you build better applications. I just published a (rather lengthy) blog post explaining how it’s useful and how it works. https://t.co/pzw9fJz3wX #coding #programming
Tweet card summary image
blog.zech.codes
Bevy v2.0 - The Python Dependency Injection Framework That Empowers You to Build Better Applications
3
0
1
@willmcgugan
Will McGugan
5 months
“Never write your own X library” This is such conventional wisdom. But somebody wrote their own. That’s why we have the choice not to write something. Following conventional wisdom you will never make an impact with your work. 🤷‍♂️
12
11
102
@ZechCodes
Zech
9 months
Been switching my projects from Poetry to @astral_sh's uv and decided to make a blog post about using Trusted Publisher with uv on GitHub Actions. Check it out here https://t.co/aMUXvQfpxJ #python #pypi #automation #github
blog.zech.codes
Learn how to automate Python package publishing to PyPI using uv, GitHub Actions, and Trusted Publisher. A step-by-step guide for secure and efficient relea
1
0
1
@crichardson
Chris Richardson
1 year
A periodic reminder that microservices (or any technology for that matter) don't travel in packs attacking inocent projects. If your application has problems then it's most likely a consequence of bad design decisions made by humans.
@crichardson
Chris Richardson
1 year
@wimdeblauwe That's not because of microservices. That's a consequence of bad design. Take responsibility for how you (mis)use technology.
2
2
6
@ZechCodes
Zech
2 years
My latest project is almost ready for public consumption!
0
0
1
@ZechCodes
Zech
2 years
“Why is my code not passing this test???” Oh, I wrote the test wrong 🤦‍♂️
0
0
0
@ZechCodes
Zech
2 years
Should probably go without saying this is an experiment. I’ve probably missed some edge cases and I know for a fact that this will result in some ambiguous code.
0
0
0
@ZechCodes
Zech
2 years
Doing some crazy stuff with metaclasses in #Python Made an enum where you don’t have to assign `auto()`, just put the name and the metaclass handles it for you. ```py class Demo(Enum, metaclass=EnumMCS): Foobar ``` Works the same as `Foobar=auto()` https://t.co/WHFqdZkEjO
1
0
0
@crisisofconsc
Crisis of Conscience
2 years
Elon Musk should just change the Twitter logo to a poop emoji at this point because it would honestly be about the same thing
1
1
18
@AndreaR9Md
Andrea R MD, @andrear9md.bsky.social
2 years
Just fucking stop it. You made this happen. You did. It was not RBG's fault, it wasn't Obama's fault, it wasn't Hillary's voice or laugh, it was your fucking fault. Your asses sat home, quit whining like you didn't know this shit wasn't coming down the pike.
677
2K
18K
@GergelyOrosz
Gergely Orosz
2 years
So many of the great software engineers I consider fantastic "software architects" share this one thing: They build (throwaway) prototypes to prove their point / showcase their ideas. A lot! So much easier to reason about concrete code than abstract ideas.
63
290
3K
@ZechCodes
Zech
3 years
If you’d like to skip all the jibber jabber in the blog post (it is very long, so I don’t blame you), you can check out the docs and GitHub. https://t.co/xxJMRTX4R3 https://t.co/6wdUHkCxf4
0
0
0
@ZechCodes
Zech
3 years
I just published a blog post about a thing I made! Bevy! It's a Python Dependency Injection Framework That Empowers You to Build Better Applications https://t.co/pzw9fJz3wX
Tweet card summary image
blog.zech.codes
Bevy v2.0 - The Python Dependency Injection Framework That Empowers You to Build Better Applications
0
0
0
@ZechCodes
Zech
3 years
Weird nuances of the underlying systems just slow devs down and make our software more error prone. Our programming languages and tooling should abstract away all of that stuff so we don’t have to worry about it. We’re getting there. It’s been a long journey but it’s happening.
0
0
0
@ZechCodes
Zech
3 years
This is what #JavaScript is doing to kids these days. Melting their brains. They don't even know what a segfault is anymore! This is why nothing works anymore! /s It’s so cool that we’re getting to where you don’t need to know about segfaults to know how to code! #coding
1
0
0
@ZechCodes
Zech
3 years
It is currently an early beta as it is a complete rewrite of my previous version. It passes all of the tests that I have so far & I plan to continue work on it as this is a keystone for other projects I plan to begin work on very soon! I hope you find Bevy interesting & useful!
0
0
0
@ZechCodes
Zech
3 years
Bevy even supports typing.Annotated type hints! So it’s possible to have multiple instances of a type in the cache all accessible using their own annotations!
1
0
0
@ZechCodes
Zech
3 years
Bevy is capable of injecting positional only, positional, keyword, and keyword only parameters. It’ll even detect if a dependency was passed to the function manually and not try to inject it.
1
0
0
@ZechCodes
Zech
3 years
Here’s an example using a function. Use the inject decorator and mark the dependencies in the parameters using the dependency function. As simple as that! When that function is called all of it’s dependencies will be injected!
1
0
0
@ZechCodes
Zech
3 years
Here’s a very simple example. Bevy will handle injecting the Thing dependency into the Example class when it is accessed inside of the print_msg function. All out of the box, no extra steps necessary!
1
0
0