Hello world?

Yeah, this is the standard first post. I’ve just changed it a bit.

A while ago (In a galaxy far, far away [I mean a previous job]) I was tasked to create a training that would allow people to analyze a slow loading page. I added this little Easter egg on the code:

$ curl -X POST -d '{"hello":"world"}' -H "Content-Type: application/json" https://node.newnotthatgooddomain.com/api|jq

{
  "message": "it's a me, mario",
  "imageUrl": "https://node.newnotthatgooddomain.com/files/mario.jpg"
}

A cURL to one of my dummy sites APIs would return a picture of Mario that was then displayed. The trick was that this API was hard-coded to wait 5 seconds before returning the image.

What this necessary? Hell no, but it was fun. I also got to try coding a bit in Node, although I did use ChatGPT a bit to have a working boilerplate and correct syntax here and there. Here’s the image:

Now, why am I telling you this? I think I just wanted to waste your time. Sorry.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *