Hello World - First post of the blog!
It’s been approximately 3 years and 3 months (last post was in Dec 2020) since I last had an active blog where I posted pretty much every week. The reason I stopped was the domain expiration of my old blog (kozmicluis.com) which should not have really stopped me from writing markdown files that I could publish in the future but I’m a very lazy dude with procrastination issues; Actually, this domain was registered a year ago!
I will not provide much information about the behind the scenes of the site in this post. If you really want to know you can check the About page. And if you wish to contact me for whatever reason I’m always an email or a social DM away; check the Contact page.
Markdown reference
Astro provides integration plugins for MDX, React, and more (Markdown is supported by default). I may refer back to this post to check how iterative style changes affect the look and feel of the blog posts. In here you will find testing for Markdown
syntax and other integrations I add.
H1
A one-line paragraph to see how they interact with headings.
H2
A one-line paragraph to see how they interact with headings.
H3
A one-line paragraph to see how they interact with headings.
H4
A one-line paragraph to see how they interact with headings.
H5
A one-line paragraph to see how they interact with headings.
H6
A one-line paragraph to see how they interact with headings.
Tables are an integral part of my posts, that’s why it’s important that:
- Headers stand out from the other rows
- Cell padding is not too extreme but not too slim either
- Nesting tables doesn’t look weird
- Odd rows have a slight darker background
A | Table | Heading |
---|---|---|
1 | Uno | One |
2 | Dos | Two |
3 | Tres | Three |
4 | Cuatro | Four |
5 | Cinco | Five |
Java is to JavaScript what Car is to Carpet.
It’s time for some code block examples.
open Core
module Maybe = struct
type 'a t = Nothing | Just of 'a
let return x = Just x
let value ~default = function
| Just x -> x
| Nothing -> default
let map ~f = function
| Just x -> Just (f x)
| Nothing -> Nothing
let bind f m = match m with
| Just x -> f x
| Nothing -> Nothing
let ( >>= ) = bind
let ( >>| ) f m = map ~f m
let nothing = Nothing
end
;;
let () =
List.iter ~f:print_int [1; 2; 3; 4; 5]
;;
That was some OCaml, time for some Typescript:
import { MongoClient } from "mongodb";
const client = new MongoClient(process.env.MONGOURI ?? "");
const db = client.db("mydb");
const coll = db.collection("mycollection");
(async function() {
await client.connect();
const docs = await coll.find();
for (let doc of docs) {
console.log(doc);
}
await client.close();
})();
- Concurrent
- Efficient
- Beautiful
- Correct
- Elegant
Highlights are often hard to implement. And here’s an image pulled from the internet:
Here’s a simple footnote,1 and here’s a longer one.2
Here is some math, because why not?
And finally, mermaid diagrams SS-rendered through an astro plugin and a headless browser: