Shubham's corner

Software, AI, Optimisation, Learnings, Cooking and Traveling.

I use this space to share my learnings, experiments, technical and non-technical desicisions and everything else going with my life.

Vibe coded my blogging app

Vibe coded my blogging app

Just another late-nighter and the power of AI. I was looking for a VPS to host my blog, basically my admin page, so that I can access it anywhere and start writing my blogs wherever I can, mainly from my mobile. Then, an idea struck my head: why not get an app? Basically, I have the Git token, so I thought of getting an app that can access my GitHub and get this exact repo cloned on my system. And, like I always write blogs on my laptop, I can just use the same technologies to write blogs on my mobile. Then, I sat on my laptop, discussed things with Codex, and we came up with a plan to write an app that can connect to my GitHub, understand my blogging codebase, and create an app around that, matching my workflow. I can see my old posts, update, add, create whatever I want, and just write my blogs from mobile. The GitHub connector page This is where you just create a GitHub app and connect it to your app. Once connected, you will never need to do it again.The old blog posts View/edit your old blog posts and keep things updated.The writer page Write new articles/blogs just from the app and push it to GitHub. Once pushed the same CICD pipeline will make it go live. Easy Peasy.

Just started neetcode blind 150

Just started neetcode blind 150

Just started Neetcode blind 150. This time I'm using java as my tool. Navigating through same challenges and learning more. To be honest, coding on job and coding on coding platform are very different. On job, you use HashMaps and you are mostly done. And there are exceptions when you use DP or Trees. My case, I think I have used mostly all the general data structures and some advanced ones too. But anyways, back to coding and building hand memory again.

charAt vs toCharArray

charAt vs toCharArray

String as you know is immutable in java. When you try to manipulate a String object, Java creates a new String out of it. And object creation is expensive. There is a general rule, when you just want to read a character at any index use charAt and when you need to modify the string itself, like rearranging, sorting, creating sub string, breaking it into an array of characters using toCharArray is very cost efficient. toCharArray takes O(n) time for construction of array and O(n) space is also occupied.

Coffee addiction

Coffee addiction

I was feeling very sleepy since morning. Even after shower, breakfast and drinking salted lemon water the feeling of eyes dropping mid meet was not going anywhere. At 2 o'clock I got my lunch and coffee from Bistro. I generally have my coffee prepared from my French press. But not today, I wanted something new on my taste buds. And it's iced Americano. Just a sip and all my sleepiness went away and my eyes were opened like a bright sky is calling my name. I now know, I am addicted to Coffee.

Omelette Recipie

Omelette Recipie

2 eggs + 10 ml Milk + Black pepper + Salt Mix them well then heat the pan for 2 minsPut the mixture in the pan and cove the lid for 2 minsUncover the lid and cook uncovered till the mixture is cooked enough