• Large Language Models - Coding - Artificial Intelligence

    Running DeepSeek R1 on Your Local Machine Offline: A Step-by-Step Guide

    Over the past few months even weeks, DeepSeek has emerged as an unexpected guest in the AI market. It literally redefined the AI industry and cost trillions of dollars loss in stock markets. Even though I am also interested in, I won’t focus on that side of DeepSeek today. The reason it caused such a fundamental change is that it uses significantly fewer resources than its competitors in the market. The level of optimization is so high that you can run a fully pre-trained model even on a laptop. Today, I will take you through how to run DeepSeek R1…

  • Devops

    Concourse – A Modern CI/CD Tool

    Concourse is a CI/CD tool created by a team at a company called Pivotal. Pivotal is a company known for building tools for software development. The Pivotal team wanted to solve a problem in the CI/CD world which is that many existing tools, like Jenkins, had become complicated with too many plugins. Even though having many plugins gives a flexibility and support for every kind of specific need, things can quickly get out of hand. Their goal was to create a tool that developers could use without spending too much time on setup. Therefore, Concourse was designed to be lightweight,…

  • Advanced - C# - Software Engineering

    Advanced C# Tips: Use Conditional Attribute for Debugging Code

    In C#, it’s common to sprinkle your code with debugging information—like console logs that help you track down bugs. However, when you’re ready to release your application to the world, you don’t want all that extra debug code to slow things down. This is where the Conditional attribute comes into play. The Conditional attribute allows you to mark certain methods so that they’ll only be called when specific conditions are met—typically when you’re building in a debug environment. When you build your application for release, the compiler ignores these methods, as if they weren’t there at all. This helps to…

  • Advanced - C# - Software Engineering

    Advanced C# Tips: Optimize Recursive Functions With Tail Recursion

    Recursive functions are a staple in many programmers’ toolkits. They allow us to solve complex problems by having a function call itself with a different set of parameters until a certain condition is met, known as the base case. This is an elegant way to process data structures like trees or to perform repeated operations until a condition is satisfied. However, recursion comes with its cost. Each recursive call adds a new layer to the stack (a special area in a program’s memory) that tracks where each function should return control once it completes its execution. This is known as…

  • Advanced - C# - Software Engineering

    Advanced C# Tips: Beware of Micro-Optimizing at the Cost of Code Clarity

    Micro-optimizing refers to making small modifications to code in an attempt to improve performance, often at the expense of making the code harder to read, understand, and maintain. While it’s natural for developers to want their applications to run as efficiently as possible, it is also crucial to balance these optimizations with the overall clarity and maintainability of the code. Micro-optimizations may be a bit faster language constructs, helps to handle tricky algorithms for minor performance gains, or restructuring code in a way that makes it harder for others (or even yourself) to understand later. These optimizations are “micro” because…

  • Advanced - C# - Software Engineering

    Advanced C# Tips: Leverage Span for Safe Memory Access

    Span<T> in C# is an innovative feature that revolutionizes how developers work with contiguous memory regions, like arrays or memory blocks. The Span is introduced in C# 7.2 and it is designed to provide a more efficient way to handle slices of data. Technically, Span<T> is a ref struct that represents a contiguous region of arbitrary memory. It’s not limited to arrays; it can point to memory on the stack, in managed memory (like arrays or heap-allocated objects), or even unmanaged memory. This makes it incredibly versatile. The structure of Span<T> includes a pointer to the starting location of the…

  • Coding - Beginner

    Bedrock of Software – Part 4: Operating Systems Written in C

    In the previous posts, we explored how C laid the groundwork for modern programming languages and shaped the software landscape. We’ve looked at C’s influence on languages and traced its role as the foundation for today’s development tools. Now, we turn our attention to another critical area where C’s impact is undeniable: operating systems. We have already talked about the relationship between C and Unix here. However, the relationship with C and operating systems are not limited to Unix. Unexceptionally, all operating systems we use today (Windows, Linux, Mac OS, IOS, Android etc.) are either primarily or entirely written in…

  • Software Engineering - Advanced - C#

    Advanced C# Tips: Prefer for Loop Over foreach with Arrays

    In C#, when you want to go through all the items in an array one by one, you can use either a for loop or a foreach loop. Both will get the job done, but there’s a bit of a difference in how they do it, especially when it comes to performance. The for loop gives you more control. You have a counter that keeps track of which item you’re on, and you can use this counter to directly access each element in the array by its index. This is a straightforward operation, and it’s very fast because accessing elements…

  • Advanced - C# - Software Engineering

    Advanced C# Tips: Use readonly Modifier for Immutable Data

    The readonly modifier in C# is a keyword applied to fields that should not change after the constructor for an object has completed. Using readonly indicates that the data is intended to be immutable. This means that it cannot be changed once set. readonly can be particularly useful when you want to create an object that has certain properties that should remain constant throughout the object’s lifetime. It represents unchangeable states or fixed configurations. Immutable data has several advantages in software development. For instance, it is inherently thread-safe because if data cannot change. Multiple threads can access it concurrently without…

  • Java - Python - Amazon Web Services - C# - Beginner - JavaScript

    How to Access AWS Secrets Manager Programmatically with C#, Java, Python and JavaScript

    AWS Secrets Manager is a fully managed service that helps you easily store and retrieve credentials, API keys, and other sensitive data in a secure way. It integrates seamlessly with AWS Identity and Access Management (IAM) to ensure that only authorized users and applications can access your secrets. Beyond simple storage, it also offers basic security practices like automatic rotation of secrets. The main idea of using AWS Secrets Manager is that you no longer need to hardcode sensitive information in your applications or configuration files. Instead, you can reference them securely and fetch them when needed. This practice, sharply…

  • Coding - C/C++ - Beginner

    Bedrock of Software – Part 3: The Influence of C on Modern Programming Languages

    Welcome to the third part of our blog series, “C, Bedrock of Software.” In the first part, we explored the origins of C. In the first part, we discussed its creation at Bell Labs and its role in the development of Unix. In the second part, we examined the symbiotic relationship between C and Unix. We saw how they evolved together, shaping the future of computing. In this part, we will focus on how C has influenced modern programming languages. We will see its impact on popular languages like Java, C#, C++, Objective-C, and others. This will show how C’s…

  • Advanced - C# - Software Engineering

    Advanced C# Tips:Prefer Lazy Initialization for Rarely Used Objects

    Lazy loading and eager loading are two contrasting approaches in managing how and when data is loaded into memory in programming, particularly relevant in the context of databases, data processing, and UI rendering. Lazy Loading In lazy loading, data is loaded only when it is required. This can enhance application performance and reduce memory usage, especially when dealing with large datasets or complex objects. For example, consider an e-commerce application that displays product details. With lazy loading, the detailed data for a product (like high-resolution images or reviews) is only loaded when a user selects that product, rather than loading…

  • C# - Software Engineering - Programming Languages - Advanced

    Advanced C# Tips: Avoid Excessive Inlining of Methods

    Inlining methods is a technique where the compiler replaces a method call with the actual method body’s code. While inlining can speed up your program by eliminating the overhead of a method call, excessive inlining can lead to problems. This approach needs to be used carefully since you need to balance performance gains with potential drawbacks. My suggestion will be my typical suggestion, do not use unless it is really necessary. Method inlining can reduce execution time, especially in certain loops or highly repetitive code paths since it removes the overhead of the method call itself. However, excessive inlining can…

  • Software Engineering - Intermediate - Advanced - C#

    Advanced C# Tips: Using Array Segments Instead of Copying Arrays

    Even though it is not a very popular C# tool, the ArraySegment<T> is quite old and it was introduced in .NET Framework 2.0, which was released in 2005. It is available for developers to utilize in their applications to improve performance when dealing with partial arrays. Technically, an ArraySegment is a struct, in other words, it is a value type in C#. When you instantiate an ArraySegment<T>, you are creating a lightweight object that doesn’t have the overhead of a class, such as a reference type’s heap allocation etc. The ArraySegment<T> struct internally holds three pieces of data: a reference…

  • Azure - Amazon Web Services - Cloud Computing - Beginner

    Introduction to Cloud Computing for Junior Developers and Testers

    Cloud computing is a concept that every developer and tester should understand within software industry in 2020s. Whether you are just starting or changing your career; or preparing for a job interview, the basic understanding of cloud computing can set you apart from your competitors. In this blog post, I will take you through the basics of cloud computing, how it works, and the key services provided by the two most common cloud platforms. What is Cloud Computing? Cloud computing is a providing computing services (like servers, storage, databases, networking, software, analytics, and all related infrastructure) based on a remote…

  • Intermediate - Advanced - Coding - C# - Software Engineering

    Advanced C# Tips: Reuse Objects Where Possible

    Reusing objects in C# is a strategy that aligns with the principles of efficient memory management and application performance optimization. This concept is important in environments where memory resources are limited or when the cost of object creation is high. For instance mobile applications, embedded systems, or server applications handling multiple concurrent requests count as typical examples. The underlying technical reason for object reuse is to reduce the overhead related to the memory allocation and garbage collection. Every time an object is created, the .NET runtime needs to allocate space on the managed heap. As objects accumulate, the garbage collector…