Update declarative README - Rust variant

This commit is contained in:
2024-09-18 18:50:19 -05:00
committed by GitHub
parent 25a78be820
commit 568ca8d98b

View File

@@ -7,29 +7,45 @@
</samp>
</p>
```python
from life.species import Human
from skills import python, java, javascript, csharp, html, css, other
from datetime import date
from random import choices
from os import getenv
```rust
use std::env;
use std::collections::HashMap;
use rand::seq::SliceRandom;
class RyanWalters(Human):
def __init__(self, username='xevion'):
self.name = f'Ryan {0} Walters'.format(choices([getenv('MIDDLE_NAME'), 'C', '']))
self.pronouns = ['he' and 'they'],
self.description = '''
A full-stack software engineer navigating their way through the industry.
With an attention to detail, I enjoy building projects that are elegant, robust, and impactful.
Although I specialize in Web Development, my skill set is extensive, and I'm confident in my ability to learn anything.
'''
self.recent_projects = [
"https://github.com/acmutsa/Portal",
"https://github.com/Xevion/rdap",
"https://github.com/Xevion/grain"
]
self.endpoints = {
"discord": ".xevion",
"email": "xevion@xevion.dev"
use Life::Interests::Technology::{
Languages::{Go, Rust},
Fields::{GameHacking, WebDevelopment},
Infrastructure::{Unraid, Docker},
};
use Life::Mental::Traits::{Diagnosed::ADHD, Undiagnosed::Autism};
use Life::Interests::Arts::{Photography, DigitalArt::AIArt};
use Life::Interests::Gaming::Simulation::{Factorio, RimWorld};
impl Human {
fn me(username: &str) -> Human {
let middle_name = vec![env::var("MIDDLE_NAME").unwrap_or_default().as_str(), "C", ""].choose(&mut rand::thread_rng()).unwrap_or(&"");
let name = format!("Ryan {} Walters", middle_name);
let endpoints = std::collections::HashMap::from([
("discord", ".xevion"),
("email", "xevion@xevion.dev"),
]);
Human {
name,
pronouns: vec!["he", "they"],
occupation: Life::Occupations::Student::University.pull(),
description: "
A full-stack software engineer navigating their way through the industry.
With an attention to detail, I enjoy building projects that are elegant, robust, and impactful.
Although I specialize in Web Development, my skill set is extensive, and I'm confident in my ability to learn anything.",
recent_projects: vec![
"https://github.com/acmutsa/Portal",
"https://github.com/Xevion/rdap",
"https://github.com/Xevion/grain",
],
endpoints,
}
}
}
```