Update README.md
what else do i say?
This commit is contained in:
@@ -8,31 +8,35 @@
|
|||||||
## About me
|
## About me
|
||||||
|
|
||||||
```rs
|
```rs
|
||||||
struct Person {
|
struct Person<'a> {
|
||||||
name: String,
|
name: &'a str,
|
||||||
pronouns: String,
|
pronouns: &'a str,
|
||||||
languages: Vec<String>,
|
languages: Vec<&'a str>,
|
||||||
websites: Vec<String>
|
websites: Vec<&'a str>,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let me = Person {
|
let me = Person {
|
||||||
name: "Byte Dice".to_string(),
|
name: "Byte Dice",
|
||||||
pronouns: "up to your imagination (any)".to_string(),
|
pronouns: "up to your imagination (any)",
|
||||||
languages: vec![
|
languages: vec![
|
||||||
"Rust" .to_string(),
|
"Rust",
|
||||||
"HTML / CSS / JS".to_string(),
|
"HTML / CSS / JS",
|
||||||
"Kotlin" .to_string(),
|
"Kotlin",
|
||||||
"Python" .to_string(),
|
"Python",
|
||||||
],
|
],
|
||||||
websites: vec!["https://ByteDice.net".to_string()]
|
websites: vec!["https://ByteDice.net"]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// unoptimal but more readable
|
||||||
println!("Hello, I'm {}!", me.name);
|
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:**
|
**Little Bits of Byte:**
|
||||||
* I sometimes think in postfix notation. If you don’t, are you even efficient?
|
* POSTFIX NOTATION FOREVER!!!
|
||||||
* If it takes more than 0.5s to load, it's too slow.
|
* If it takes more than 0.5s to load, it's too slow. No exceptions. Go fix your code.
|
||||||
* Started designing a Minecraft mod, accidentally built a whole alternate reality.
|
<!-- * Started designing a Minecraft mod, accidentally built a whole alternate reality. -->
|
||||||
|
|||||||
Reference in New Issue
Block a user