Gazing through the sea of stars! 🌟
🌟 Gazing Through the Sea of Stars! #
Hey there! 👋 I’m Timothy, and after a lot of thinking, I finally decided to start this blog to share the things I’ve learned on my journey as a Software Engineer. Whether you’re just starting out or you’ve been in the game for a while, I hope you find something useful or inspiring here.
Feel free to drop a comment if you spot something off or want to chat about anything tech. Let’s learn and grow together—cheers! 🚀
Here are a few of my favorite languages (with a classic FizzBuzz in each):
Java #
// Generated by ChatGPT
public class FizzBuzz {
public static void main(String[] args) {
for (int i = 1; i <= 100; i++) {
if (i % 3 == 0 && i % 5 == 0) {
System.out.println("FizzBuzz");
}
else if (i % 3 == 0) {
System.out.println("Fizz");
}
else if (i % 5 == 0) {
System.out.println("Buzz");
}
else {
System.out.println(i);
}
}
}
}
Rust #
// Generated by ChatGPT
fn main() {
for i in 1..=100 {
if i % 3 == 0 && i % 5 == 0 {
println!("FizzBuzz");
}
else if i % 3 == 0 {
println!("Fizz");
}
else if i % 5 == 0 {
println!("Buzz");
}
else {
println!("{}", i);
}
}
}
Javascript #
// Generated by ChatGPT
function fizzBuzz() {
for (let i = 1; i <= 100; i++) {
if (i % 3 === 0 && i % 5 === 0) {
console.log("FizzBuzz");
}
else if (i % 3 === 0) {
console.log("Fizz");
}
else if (i % 5 === 0) {
console.log("Buzz");
}
else {
console.log(i);
}
}
}
fizzBuzz();