Hello, World

·

Welcome to KingRolo.com. This is the first post, and it doubles as a showcase of what this blog can do — now rebuilt on Astro.

Code

The whole point of a technical blog is showing code. Here’s some Python:

fibonacci.py
def fibonacci(n: int) -> list[int]:
"""Generate the first n Fibonacci numbers."""
if n <= 0:
return []
sequence = [0, 1]
while len(sequence) < n:
sequence.append(sequence[-1] + sequence[-2])
return sequence[:n]
if __name__ == "__main__":
print(fibonacci(10)) # → [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]

Sometimes you want a plain block with no filename header:

uv run python scripts/smoke_test.py

And the same idea in two languages (proper interactive tabs land in the next pass — for now, side by side):

Python
def fibonacci(n):
a, b = 0, 1
for _ in range(n):
yield a
a, b = b, a + b
Rust
fn fibonacci(n: usize) -> Vec<u64> {
let mut seq = vec![0, 1];
for i in 2..n {
seq.push(seq[i - 1] + seq[i - 2]);
}
seq.truncate(n);
seq
}

Inline code looks like this: print("hello").

Admonitions

Click to expand Collapsible admonitions are great for supplementary information that not every reader needs.

Blockquotes

The best way to predict the future is to invent it. — Alan Kay

Blockquotes can also contain other markdown elements:

Pro tip: When designing a system, write the README first.

If you can’t explain it simply, the design is too complex.

Lists and Formatting

Things I care about:

  • Clean typography
  • Fast page loads
  • Schema-typed posts
  • Perfection (work in progress)

Some formatting options: bold, italic, strikethrough, highlighted, and inline code.

What’s Next

This blog is a work in progress1. More posts to come on systems design, Python tooling, and whatever else catches my attention.


Thanks for reading.

Footnotes

  1. Footnotes like this one collect automatically at the bottom of the post.