this post was submitted on 05 Mar 2025
55 points (100.0% liked)

Rust

6842 readers
12 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
 

Hello,

This is my first post to this Rust community and I am happy to introduce myself and discuss what I love about this language, but first a little about myself.

I'm Alice, Fluffy to most, and she/her are my pronouns. I'm from the UK. I got a little boy who love like crazy. I'm Autistic, suffer from cPTSD and I also 🩷 Rust!!

Rust I feel appeals to Autistic people because of it's focus on accuracy and correctness. It's a common feeling people have about the language. But as the type of person I am I love it.

I began learning it in 2023, before this I was using C++. Rust showed me the importance of error's as values and helped improve the quality of my code.

Currently I'm writing a game-engine as a hobby. The game-engine is a work in progress (WIP) and I have only just begun it's development. Since the game-engine will natively support various platforms. To ensure consistency I'm writing all the platform specific code manually and building my own custom standard library for my engine, loosely based on the actual Rust standard library.

Right now I have the code in place to create/remove directories and to create, delete, write, read and set file pointer location. Convert UTF8 to UTF16 and output to the console in Unicode (Windows C API uses UTF16) and heap functions to get the process heap and create and delete memory dynamically.

Next will be the 'config.json' for which Serde will be used. Then the logger, and so on.

So it is a WIP but it's fun and given my conditions allows me to do what I love, writing Rust code.

Thanks for reading!!

Alice πŸ³οΈβ€βš§οΈ

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 month ago (7 children)

Good for you!

I will agree that rust is a very satisfying language to write in. Lol.

For me it’s either go full rust aiming for correctness and robustness, or go full python aiming for duck typing and flexibility.

This all being said Gleam and Scala are also quite beautiful to me at least.

[–] [email protected] 5 points 1 month ago (4 children)

At my company, we picked an awful middle-ground: write Python like it's Java, but don't use correct type hints.

In our project:

  • everything is a static class - from a.b.c import C; C.thing() instead of from a.b.c import thing; thing() or import a.b.c; c.thing()
  • use declarative dependency injection frameworks instead of duck typing
  • force rigid class structures, but don't do typing properly, and don't necessarily keep the calling signature of the base class methods (i.e. break SOLID all over the place)
  • use decorators to hide magic (i.e. implicit is better than implicit and other Zen of Python violations)

We get the worst of OOP and functional styles with none of the benefits by abusing Python's flexibility.

But hey, I guess it works...

[–] [email protected] 2 points 1 month ago (1 children)
[–] [email protected] 1 points 1 month ago

Thanks. I'm picking my battles.

load more comments (2 replies)
load more comments (4 replies)