Last week I was knee-deep in building the backend for my project. I had just wrapped up the user endpoints and was ready to tackle posts. That’s when I made a classic mistake - I jumped straight into coding without doing any proper database modeling or planning. Here’s what I initially threw together: type User struct { gorm.Model UserTag string `json:"user_tag" gorm:"unique;not null;size:50"` Name string `json:"name"` Password string `json:"-" gorm:"not null"` Email string `json:"email" ...| jitesh117.github.io
Some days back I was solving this problem on CodeForces, and I was getting TLE(Time Limit Exceeded) for my solution, even though I knew it shouldn’t take too long to run, since I had already optimized my code, after reading the editorial. The code segment which was taking the most amount of time was this: for (int i = 0; i < q; i++) { if(x[i] > min_processed) continue; else{ min_processed = min(min_processed, x[i]); for (int j = 0; j < n; j++) { if (a[j] % static_cast < int > (pow(2, x[i]))...| jitesh117.github.io
This june, I got my first mac, a mac mini to be precise. And to be honest, I’ve always wanted own a mac. You always hear from the mac cultists, how a mac can’t be compared with any other computer. When I first got my hands on the mac, I was… not very impressed. Like it was the same thing mostly as compared to my linux machine. Also I had riced up my ubuntu environment to look really similar to how a macOS desktop looks.| jitesh117.github.io
Last year, when learning about how the LSPs (Language Server Protocol) for different languages work internally, I built this Brainrot LSP, which was a Language Server for brainrot slangs which can be integrated to your neovim config. And for some reason, now I want to expand on that idea. So I decided to build a full-fledged Brainrot Programming Language Suite! In this article, I would walk y’all through the interpreter for The BrainrotLang.| jitesh117.github.io
Ever since I started posting the analytics of my blog, people keep asking me about my blog setup. So I decided to write a blog on it, which you’re reading currently haha. When I decided that I want to start a blog, I was in a dilemma, should I go with platforms like Medium, Hashnode, etc or build my own site. After consulting with many people, I was told a lot of things, like:| jitesh117.github.io
At first glance, SQL appears deceptively simple: write a query, get results. Yet beneath this straightforward exterior lies an intricate system of optimization, execution, and engineering excellence. Each SQL command initiates a sophisticated process that transforms plain text into efficient database operations. The Journey of a Query When you write a SELECT statement, you’re setting in motion a carefully orchestrated sequence of events: The parser breaks down your query into a logical stru...| jitesh117.github.io
Unexpected. If I could describe my blogging journey with just one word, this would be the word I’d use. I did not expect in my wildest dreams that my writing would gather this big of an audience. Why Did I Start Blogging? If I’m being really honest, starting a blog wasn’t my own plan. I was lurking in @svs’s Discord server and came across this message from him: “It’s a total cheat code.| jitesh117.github.io
Writing tests is often seen as a chore by many developers. They commonly cite reasons like: “It takes too much time” “The requirements might change” “I know my code works” “Tests are hard to maintain” However, these perspectives miss the fundamental value that testing brings to software development. Let’s explore why testing should be embraced rather than avoided, especially in Go, which provides excellent testing tools out of the box.| jitesh117.github.io
The aoc_lib package used in these solutions is my own custom helper functions library. You can find the code here. I’ll try to post my solutions daily. These are probably not the most optimized solutions. That is not my goal with advent of code honestly, I do these just for fun. Day 1 Day 1 was pretty straightforward. Just some basic array magic. I don’t think the code needs much explanation.| jitesh117.github.io
Advent of Code is a yearly series of coding challenges that starts on the 1st of December and runs through to Christmas Day, December 25th. These puzzles are a perfect way to get into the festive spirit while exercising your brain with some fun and challenging problems. Imagine this: a cozy setup with your favorite hot beverage, holiday music playing softly in the background, and a coding puzzle that ignites your curiosity.| Jitesh's Blog
Ensembling, a powerful technique in machine learning, has gained widespread popularity for its ability to significantly enhance predictive performance. By combining the predictions of multiple individual models, ensembles can often achieve better results than any single model alone. However, to fully leverage the potential of ensembling, it’s crucial to fine-tune the hyperparameters of the underlying base models. Hyperparameter tuning involves searching for the optimal combination of model ...| jitesh117.github.io