hello-world

3 min read

Dec 09, 2023

Hello world!

Be willing to be a beginner every single morning.

I hope that I use this place to document some of my life. Maybe once a month or so. Or maybe even once a year, who knows. I am not very good anyways with this routine thingy anyways. Actually I am not good at doing anything routinely or I cannot keep my enthusiasm for a long time and it dies off much sooner than expected. We'll see what happens to this!

If you are wondering how this blog is made...

It is powered by NextJS. Yes some people I know will be like, "NO! Not another bulk load of JS in my face! You dont need all that for a blog, you stupid!"

Yes, you are absolutely correct. This could be just plain HTML and a touch of CSS but I already was in my Web Dev journey and I was learning NextJS so I started modifying the blog-starter from NextJS.

For the more tech-savvy people who like the nitty gritty technical details, it uses remark and some more processors from the remark family and some neat little additions to its Abstract Syntax Tree (AST) parsing logic to keep certain attributes that would otherwise be stripped out in sanitization process before putting it on the page. I say neat little additions but i almost couldn't figure how to keep certain attributes and tore my hair out. The sheer will and patience for a compsci degree guided me to come back later and now i am jumping with joy.

(Why sanitize when I am the only one writing the blog? Because always, aLwAyS, ALWAYS, ALWAYS, ALWAYS, ALWAYS sanitize user input)

And since my friends try to think I am some programming god ( which i absolutely am not ) and you probably are here to see some fancy technical life-changing code that you layman friends cannot understand, here's Hello world. IN MANY DIFFERENT LANGUAGES. ( look at comments )

// JavaScript, TypeScript because web stuff
const helloWorld = () => console.log("Hello World!");
helloWorld();
<!-- HTML is not a programming language :p -->
<pre> hello world! </pre>
// Bow down to C.
int main() {
printf("Hello World!");
return 0;
}
// yeah yeah i know, 3 billion devices run Java and so does mine
class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello World!");
}
}
# Python is definitely a snake
print("Hello world")
# Here's some shell
echo "Hello world!"

Well! That's it let us see how often i update this thing

References