Skip to main content

Posts

A smoooooth operation....

 Backward compatibility...   A word that I used to hear when I started my career. You design your APIs with backward compatibility in mind, don't break anything when you are upgrading, think about this, think about that etc. Well, those teachings from my previous mentors didn't go in vain, as I made a fundamental change in how we report problems @  Gelato .    You see recently @  Gelato , the CS (Customer Support) team moved from A ticketing management system to B ticketing management system, which is a monumental task for all the people involved in the CS team. Even though the fundamental concept remains the same the places, the attributes the concepts, and the naming of different attributes all change if you have this transition. And thus it was a big change for the whole company.    After the decision was taken, the first step was to create a well-written transition document, which the good folks at the CS team tackled. Special thanks to  ...

AI. Will it replace us or...?

AI!! The buzzword is too hot in the market nowadays. Do you have a technical product or an idea? If it doesn't have AI in it, then chances are it's not going to be sold like hot cakes. That is how things have changed lately. It is no wonder why me and my colleagues at Gelato want to see what AI can do in a niche department like customer support and service. And that is exactly what we did. For a company like Gelato, which is in the market for production-on-demand, there are a lot of customer questions you need to answer. It can be related to products, queries about shipping and pricing, and so on and so forth. Thus, our customer support team is always happy to help with these recurring questions. Let's take one example. A customer asked us, "Do you ship to Norway?" Now that is an easy question to answer if you have the knowledge written somewhere where you could refer to it and say, "Yes! As a matter of fact, we do." Following the same thread, the next q...

Why Laravel is the best framework there is!

 There is this meme on the technical world, which I am not sure you have heard, but if you are into technical memes, or programming memes, you would know that there are a bunch of programming languages that are laughing stock. Languages that's not "shiny" enough to be on the radar of the top notch programmers out there. Like JavaScript, PHP, HTML (even including this is in itself is a joke!) etc. Well I don't know if I could agree with it or not, but people who started learning web development from the ground up (just like me) might have started on these 3 probably. And PHP was the first and foremost language that you might have linked with a framework of sort.  What are frameworks by the way?  Well according to Wikipedia, framework is a generic term commonly referring to an essential supporting structure which other things are built on top of. And software framework is an abstraction in which software, providing generic functionality, can be selectively changed by a...

My experience with the Golden signals

In June 2022, I embarked on a quest for a new job opportunity. Fortunately, this endeavor began just before the global job market experienced a significant downturn. I must admit, I faced my fair share of rejections during this period, but I also had an epiphany. It became evident that there was so much more to learn and understand in the world of technology. Coming from a small service-based company, I had encountered limitations in terms of how much I could learn on the job. However, during interviews and conversations with senior developers, I gained valuable insights into the architectural and technical decisions made by teams in various companies. One such company that left a lasting impression on me was Delivery Hero. Their technical blog posts provided a wealth of information, especially for someone like me, transitioning from a smaller company where projects had minimal daily active users compared to the scale of Delivery Hero. One particular blog post that caught my attention ...

Replication and transactional guarantee in MongoDB

One of the projects I am working on is using MongoDB as the database solution. And the project makes use of the nifty ORM mongoose to do the heavy lifting of data orchestration. It was high time I implemented transactions to the equation but because of a time crunch I was not able to start with one and the situation merely demands it at times. But come with an architectural change and the way the project was heading it was high time I implemented transactions by using MongoDB. According to MongoDB documentation, transactions are used when the situation requires, “atomicity of reads and writes to multiple documents (in single or multiple collections)”. MongoDB supports multi-document transactions. With distributed transactions, transactions can be used across multiple operations, collections, databases, documents, and shards. Now the piece of code to implement the same was pretty straightforward. // For a replica set, include the replica set name and a seedlist of the members in the URI...

The alter egos of firebase

 So I was tinkering around the internet as usual, when I came to know about open source alternatives to some of the common tools that we use day in day out. That's when I came to know about firebase alternatives. A service that I used more often to come with a small POC of anything that I want to try out. A couple of the alternatives were  Appwrite  and  Supabase .   I started with appwrite initially, their self-host policy was really awesome and how easy to set it up and get started.    I created a small application on top of appwrite, that I am currently using for my company internal documentation storage. Since it's on top of docker image and resource-heavy I could not deploy it to my AWS free tier server. So sorry about not showing you guys a demo.   After working on top of it, these are my main findings;   Positive   Easy to use, no doubt on that Pretty straightforward documentation on about implementing the features support for a v...

A bit laziness can make you productive

 So recently there was this requirement from the operations team at my current company to keep up an excel sheet for the tasks that we do every day. Now my company's work culture is pretty good actually. They never sneak up on you to check whether you are doing your tasks or not. They are cool and most importantly they trust you with your tasks.  This was more like a record for safekeeping, for both parties. All was good except we should maintain this at least weekly. So at the end of the week if the operations team need to cross-check your task time with your leaves all the sheet should be updated.  Now see there are many tools out there that can do this pretty easy for you but trust me you don't want to spend a monthly/yearly fee for such a tool that does so little as keeping up the tasks hour and the project associated with that task. So many times a problem arises for me since I forget things pretty easily. At the end of the week, I need to fill up the entire task rec...

What's your best Linux OS?

 One of the most controversial questions you could ask a Linux enthusiast is what is his/her favourite Linux OS is? This is just like that question you know, you know the one. What came first the chicken or the egg? Everyone has their reasons and proof to show why their Linux OS is better than yours. But the truth is there is no such thing as the best Linux OS out there. You see I am not a person to settle this issue once and for all. But in my experience, it solely depends on what you want to achieve with the OS in hand. I have used OpenSUSE, Ubuntu and its many variants, Linux Mint, Manjaro, Fedora, Pop OS, Elementary OS, Zorin etc. Till now I have never met my "Soul OS". Now I know if you are a Linux user, you are going to use you never used Arch btw. I know, I tried that's as well, but when compared to other distro's Arch won't be the same for me for you, that's the beauty of Arch. And that may bring a new set of controversies to the table as well. In my d...

The ever changing client requirements and a need for a plug and play system.

Recently I was the backend dev for a client-side project, which was quite challenging based on the use case it has. Now I cannot go and ramble it over here, due to obvious reasons. But what I can tell you is how I fixed a particular problem that I faced while working on the project. See every new project will come with a new set of challenges, in my case it was the case of third-party integrations. Now integrating a third party application is not a challenge, but in my case, it turns out to be challenging one because of the way it needs to be integrated. The issue with my case was that I have multiple third-party integrations I want to use based on the user's choice. This choice is stored in the database when a user gets registered in the application. So for example, if User A wants to use ONE and User B for the same use case wants to use TWO. Now we have a single dashboard for both User A and User B, and the same set of functionalities even if one use ONE or the other TWO. So how ...

What I learned from a $1000 mistake

 Recently I read a Reddit post that was posted on the subreddit r/cscareerquestions. It was posted by a junior developer from the U.S, who travelled across the country for his very first job. In the first week, he was given access to the production DB (But why?). With some false judgement from his side, everything went into mayhem. Long story short, the production data was gone...poof, just like that. A hefty price for a mistake from a junior dev. The guy was fired, and the company said they will take legal actions against the fellow. I am not supporting the junior dev here on his mistake, but in a world, where we celebrate every single minute of success, why don't we ever hear about failure stories much? Failure is the best teacher in many ways, isn't it? I like to share my failure story from my very first company, and how I made a database error that cost my company around $1000. I was working on my very first project back in my first company. Let's say for privacy sake t...

My story of infinite loop on firebase...

   So recently I heard the news of a startup "Announce" getting a bill of $72k and almost bankrupting them in the process. Story can be found here. When I heard the news I was thinking about the same mistake that was made by me. if you are a programmer, chances are that you heard about good old recursion. Recursion is a powerful strategy for solving problems, but with great power comes of course great responsibilities. Missing an edge case in a recursion can cause a huge conundrum and your resources getting exploited pretty quickly, all thanks to the infinite recursion that's been happening on the background. Now in the cloud, recursion is little bit of the same line but brings forth another set of problems as well. In my case, I wrote a cloud function in firebase, that will update the date of a set of documents inside a particular collection when data is being **modified** in the same collection. Yes I know, dumb! I thought of making the cloud function such tha...

My first ever podcast...

 I travel almost one and a half hours a day. It was such a waste of time for me, going through the same roads, travelling the same distance all day. There was no time left for me after my office hours for anything new. Then I got the idea of podcasts. I started listening to name a few and fell in love with the idea of it. I started searching for the best podcasts on the internet and found out one gem, which was released back in April 2018. "The Caliphate", by Rukmini Kallimachi. Rukmini Callimachi is a Romanian born American journalist who is working for The New York Times. Back in 2014, she started her reporting on Islamic extremism and then focused on Al Queda and Islamic State of Iraq and Syria (ISIS). after years of research and study and battling through tough times of reporting, she published a podcast series named "The Caliphate" back in April 2018 with proofs of her findings and the way she got them. "The Caliphate" was a series focused mainly on a...