From e74e66709779d1bfbae3bbd24197c4d6d206a2a5 Mon Sep 17 00:00:00 2001 From: Byte Dice <165556900+ByteDice@users.noreply.github.com> Date: Mon, 3 Feb 2025 11:45:01 +0100 Subject: [PATCH] Update README.md what else do i say? --- README.md | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index d4cdd34..5710c0a 100644 --- a/README.md +++ b/README.md @@ -8,31 +8,35 @@ ## About me ```rs -struct Person { - name: String, - pronouns: String, - languages: Vec, - websites: Vec +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".to_string(), - pronouns: "up to your imagination (any)".to_string(), + name: "Byte Dice", + pronouns: "up to your imagination (any)", languages: vec![ - "Rust" .to_string(), - "HTML / CSS / JS".to_string(), - "Kotlin" .to_string(), - "Python" .to_string(), + "Rust", + "HTML / CSS / JS", + "Kotlin", + "Python", ], - websites: vec!["https://ByteDice.net".to_string()] + 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:** -* I sometimes think in postfix notation. If you don’t, are you even efficient? -* If it takes more than 0.5s to load, it's too slow. -* Started designing a Minecraft mod, accidentally built a whole alternate reality. \ No newline at end of file +* POSTFIX NOTATION FOREVER!!! +* If it takes more than 0.5s to load, it's too slow. No exceptions. Go fix your code. +