Conversation
Notices
-
Embed this notice
@Yoruka you gonna get on mc some time today?
-
Embed this notice
@Cyrillic @Yoruka @Zergling_man I don't even need to see it to know its gay. Just look at the mascot
-
Embed this notice
@Zergling_man @Yoruka @waff yeah saw a code snippet, it was the ugliest tranny shit I had ever seen and I never considered the language again
-
Embed this notice
@Yoruka @waff My favourite thing about rust is the bit where, for no fucking reason at all, it chose to have ugly fucking syntax, just to make sure that no matter what, your first exposure to it is guaranteed to be unpleasant.
-
Embed this notice
@waff @Zergling_man I guess maybe I dunno depends, runtime sucks by default but rust made itself suck
-
Embed this notice
@Yoruka @Zergling_man better than rust
-
Embed this notice
@Zergling_man @waff total python death but still its a common dependency
-
Embed this notice
@Yoruka @waff >python3.13/site-packages/portage
........
-
Embed this notice
@waff compiling shit for my new system and these packages take forever
-
Embed this notice
@Cyrillic @waff @Zergling_man In case anyone doesn't know, its really bad
use rand::Rng;
use std::io;
use std::cmp::Ordering;
fn main() {
let generated_number = rand::thread_rng().gen_range(1..101);
let mut tries: u32 = 0;
println!("{}", generated_number);
println!("I generated a number, now guess what it is.\n");
loop {
tries += 1;
println!("Input a number:");
let mut guessed_number = String::new();
io::stdin()
.read_line(&mut guessed_number)
.expect("failed to read line.");
let guessed_number: u32 = match guessed_number.trim().parse() {
Ok(num) => num,
Err(_) => continue,
};
match guessed_number.cmp(&generated_number) {
Ordering::Less => println!("too small"),
Ordering::Greater => println!("too big"),
Ordering::Equal => {
println!("you win!");
println!("You made {} attempts.", tries);
break;
}
}
}
}
-
Embed this notice
@waff @Cyrillic @Yoruka @Zergling_man look buddy you get either emotionally discharged critter people keep drawing with toothpaste flags or sudo sandwich and I dunno about you but I'd like to get some sleep tonight