Writing
Notes from building software: architecture, .NET and Node.js, DevOps and Kubernetes, and working with AI.
2026
Stop Throwing Context at LLMs: Use Embeddings Instead
When it comes to bringing AI into your application, the easiest thing is to load a lot of context, pick the best LLM available, and let it do the job. There is only one small problem: It does not scale. It becomes expensive very fast, and at some point the feature stops making economic sense.

Your Coding Agent Can Read Your .env — And That Changes Your Security Model
A few days ago, I was working with on my side project gogetcv.com, suing a coding agent (OpenCode) and and noticed something uncomfortable. It opened my appsettings.dev.json. These was LLM API keys for different providers and I had to rotate all of them. It hit me, the normal local development config file that almost every…

Spec-Driven Development and the Ralph Loop: The Good, the Bad, and the Ugly
Spec-driven development, or SDD, is not new. But it has recently come back into focus because of agentic programming. A good place to start is Martin Fowler’s website, Understanding Spec-Driven Development. The core problem with agentic coding, or vibe coding if you prefer, is simple: AI can generate code faster than humans can responsibly review…

Code Is Worthless, Senior Developers Are Priceless!
Once upon a time, code was one of the most valuable assets a company could own.It took years to build a serious codebase, and that effort created a real competitive advantage. That is no longer true in the same way. Today, with the right AI tools and a small number of strong engineers, it is…

2025
2024
2023
GitHub Federated integration: Azure Key Vault & ACR- Example
You’ve probably noticed too how GitHub is fast becoming the go-to platform for companies and enterprises navigating the digital landscape. It’s an exciting shift, but it’s not without its challenges, especially when it comes to working with cloud services. Take Azure Key Vault and Azure Container Registry (ACR), for instance. To work smoothly, these services…

React: Call Child Functions from Parent Functional Component
In the dynamic world of React development, one question often leads to another, unfolding layers of complexity and elegance in code. Recently, a junior programmer on my team approached me with a seemingly straightforward query: “How can I call child functions from a parent functional component in React?” Another colleague quickly interjected, “You can’t do…

Repository Pattern in DDD: Bridging the Domain and Data Models
In our DDD journey, we’ve delved into Entities, Value Objects, and how to implement Aggregates from a developer’s viewpoint. Now, we’ll tackle the repository pattern. Simply put, this pattern neatly separates data access from domain logic. While there’s a wealth of online resources, check out Microsoft’s “Design the Infrastructure Persistence Layer” for hands-on implementation in…

Entities and Value Objects: Diving Deep into Domain-Driven Design
In the realm of Domain-Driven Design (DDD), understanding core concepts such as entities, value objects, aggregates, and aggregate roots is essential. As we’ve previously explored the intricate nature of aggregates and aggregate roots, today’s discussion is centered on two foundational blocks: entities and value objects. Remember that we are using eShopOnContainers’ Order Service as our…

Mastering DDD: A Developer’s Guide to Implementing Aggregates
Welcome back to our series on Domain-Driven Design (DDD)! In our previous article, we skimmed the surface of some fundamental DDD concepts like Aggregates, Entities, and Value Objects. If you found that intriguing, buckle up because we’re about to take a deep dive into these core components, specifically through the lens of a developer. While…

Getting Started with Domain-Driven Design for Developers
There are certainly a lot of articles and books about DDD. A several years ago, when I started to learn about it, it took a little time for things to click. At that time, I was really eager to understand DDD from a developer’s perspective, but most of the material was focused on the architectural…

Enterprise Development: Guidelines, Guardrails, and Golden Paths
After having a lengthy conversation with one of my colleagues on the topic of why people often disregard guardrails in his organization, a particular question came to my mind. Towards the end of our discussion, I asked my colleague what keeps cars between the guardrails in the real world. He replied, somewhat unsure of where…

Git remove commits from branch after push: reset, revert, or rebase
You can remove commits from a branch by any of reset,revert, and rebase commands. Each has own use case and pros and cons, let’s learn them in details

JavaScript destructuring nested object and array
JavaScript destructuring is a powerful feature that allows developers to extract data from arrays and objects in an elegant and concise way. This technique makes it easier to work with complex data structures and reduces the amount of code required to extract information from these structures. Whether you’re a seasoned JavaScript developer or just starting…

IaC Methodologies and Best Practices on Azure
Infrastructure as Code (IaC) is a crucial aspect of modern DevOps practices, and it is becoming increasingly important for organizations looking to optimize and automate their infrastructure management on Azure. IaC allows you to use code to define, provision, and manage your infrastructure, making it easier to manage, scale, and maintain. In this guide, we’ll…

How to make OpenAI Stateful Text Generator like ChatGPT for Conversations
OpenAI’s text generator is a powerful tool for programmers and developers looking to enhance their applications with natural language processing capabilities. In this blog post, we will dive into the features and capabilities of OpenAI’s text generator, including its ability to maintain context like ChatGPT. Learn how OpenAI’s text generator can take your software to…

The Ultimate Guide to Blazor: How to Build Client-Side Web Applications with C#
Blazor is an open-source web framework that allows developers to build interactive client-side web applications using C# and .NET. It was developed by Microsoft as an alternative to JavaScript-based frameworks like Angular and React. One of the main benefits of Blazor is that it enables developers to use their existing C# skills and code to…

2022
How to mock class constructor with parameters- Jest and TypeScript
Earlier I wrote How to Mock a TypeScript class or dependency using Jest, that is basically a how to auto mock the ES class or module when it comes to typescript. Since it happen to come up on google results, get to see what people search around the subject and “jest mock constructor with parameters…

Monorepo architecture, CI/CD and Build pipeline
The monorepo architecture has certain advantages over polyrepo (or multi-repo) in some cases. However, implementing a successful monorepo is not easy, especially when it comes to automation, CI/CD, and build pipelines. For instance, there may be issues with long-running tests and releasing unchanged packages unnecessarily. Based on my experiences, I will provide some solutions to…

NodeJS Application Insights, logging and telemetry best practices
Distributed tracing and Real Time Application Monitoring is an essential component of any modern software architecture. This is done through telemetry, meaning produce some kind of tracing data about the software (included but not limited to logging) and transmit it to some external system to be stored and processed. Telemetry monitoring combined with tracing helps…

How to setup a TypeScript project dev environments like a pro
There are many ways to set up a nice developing environment for typescript. Since I like simplicity and ease of work, let’s setup a TypeScript project that is minimal and easy to work with. Though, It doesn’t mean we need to stick to the defaults; this setup works out of the box, it is pretty…

How to Mock a TypeScript class or dependency using Jest
Jest is an awesome and easy to use testing framework for JavaScript, but when it comes to TypeScript and mocking (specially to mock typescript classes) it can really become painful as TypeScript is not relaxed about the types as JavaScript is. In this article I am going to show you how to mock a dependency…

How to deploy nodeJS app to production
Releasing javascript/typescript applications normally ends up with producing a huge artifact, the reason is obviously the node_modules. Here I am showing you how to deploy a NodeJS app to production with very small artifact and very efficient deploy time. node modules When you create a modern javascript / typescript project you are taking care of…

ReactJS Release CICD for azure devops Pipeline and GitHub actions
I am going to show you how to properly release ReactJS for production. I show you how to drastically reduce the deploy time when it comes to ReactJS Release CICD for azure devops Pipeline and GitHub actions. React is a JavaScript library that helps you make UI in in a very nice way. Though, to…

Single Page Application (SPA) vs Multi Page Application (MPA)
If you want to decide about what technology you want to make your solution, one of the things to consider is if it should be Single Page Applications (SPA) or Multi Page Application (MPA). I see some teams decide to go with SPA because it is shiner, or MVC because they are in the impression…

Environment Variables as GitHub Codespaces Secret
It’s been long since we are asking programmers “not to push connection strings and API Keys” to the source code. And also, set them as environment variables for production. But you still here and there you can find sensitive information on both repository and config files on production server! GitHub Codespaces gives you the solution…

Github and github_token and github secrets
There are security flaws on github token and github secrets, lets review them and make sure we are aware of it. Since microsoft acquired GitHub, they are investing heavily on monetizing it (for organizations not open source). So, lots of good features are added literary everyday. But it seems GitHub is not there yet, there are really scary security flaws around for organizations.

2021
SignalR & React example project (2023) – no extra package!
Have you ever needed to communicate from server to the react client? We normally use an api to call the server from client and we learned to live with that, but some time you need the opposite. This article is about how to use Aspnet SignalR to send notifications to the React app.

npm package json lock version lockfileVersion:1 or 2? All you need
Now that node.js LTS is change to v16 many team members and even domen cloud providers have not upgraded yet and are still on v12 or v14. Node.js 14 comes with npm version 6 now we are on version 8. The teams having problem with someone messing up the git repo updating npm package json lock version 1 to 2! Let’s discuss how not to be that person!

SonarQube Pull Request Scanner + Community
On the previous article, we installed a SonarQube community server on ubuntu and using SQL server. Now We are going to expand our learnings and create the whole process of code quality assurance with SonarQube. We are making a CI/CD workflow so that any line of new code be scanned and measured by SonarQube. This…

SonarQube 10 installation on Ubuntu + SQL Server (Updated 2023)
What is SonarQube? SonarQube is a code quality scanner that can scan many languages including Java, C# and JavaScript. Although SonarQube code scanner and sonarqube code coverage is very advanced in C#, it seems in the DotNet world the the concept of code quality scannanning and specially SonarQube did not grow to its full potential.

Much better life using the project for Dotnet Publish!
Wonder how you should use Dotnet Publish Command? Do you publish the project or the solution? Here is some info about publish dotnet command!

Linux Commands Cheat Sheet
Linux commands are same for Linux mint, Kali Linux, Ubuntu and etc., you gonna need a cheat sheet to help you learn and remember them.
