veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

202
active users

#enums

0 posts0 participants0 posts today

📚🤖 Ah, nothing says "cutting-edge innovation" quite like a 7-year-old article on #state #machines in Rust! Dive into this riveting tale of #enums and structures, where #computer scientists bravely pave the way to a "hopeful future" by rehashing #CS101 topics. Seriously, Samuel, enums again? 🙄🔄
hoverbear.org/blog/rust-state- #cuttingedgeinnovation #Rust #programming #science #HackerNews #ngated

hoverbear.orgPretty State Machine Patterns in RustA computer scientist working in open source towards a more hopeful future.

I really, really like the django_enum package.

Imagine Django's TextChoices/IntegerChoices classes, but with the ability to encapsulate any additional information for each choice in one place.

I don't use it everywhere, but it's super useful in a number of use-cases.

Here are a few places where I've found django_enum makes things easier. See alt text for more detail about how I use of each of these.

Check it out: django-enum.readthedocs.io/en/

And follow: @bckohan

🚀 Wow, a whole article explaining that #enums in #Rust can be optimized! Who would’ve thought that a #compiler might actually, you know, do its job? 🙄 Next week: discovering that water is wet and that the sky is blue. 🌧️
jpfennell.com/posts/enum-type- #Optimization #Insights #Programming #Humor #HackerNews #ngated

jpfennell.comA surprising enum size optimization in the Rust compiler · post by James FennellPersonal website of James Fennell