Certified insect exterminator in coding, Helldivers 2, and sometimes real life.
struct Person<'a> {
name: &'a str,
pronouns: &'a str,
languages: Vec<&'a str>,
websites: Vec<&'a str>,
}
fn main() {
let me = Person {
name: "Byte Dice",
pronouns: "up to your imagination (any)",
languages: vec![
"Rust",
"HTML / CSS / JS",
"Kotlin",
"Python",
],
websites: vec!["https://ByteDice.net"]
};
// unoptimal but more readable
println!("Hello, I'm {}!", me.name);
println!("My pronouns are {}.", me.pronouns);
println!("I code in {}.", me.languages.join(", "));
println!("Check out my websites:\n{}", me.websites.join("\n"));
}
Little Bits of Byte:
- POSTFIX NOTATION FOREVER!!!
- If it takes more than 0.5s to load, it's too slow. No exceptions. Go fix your code.