• .NET - Programming

    Clearing NuGet cache

    NuGet is a package manager for .NET that makes it easy to install, update, and manage packages and dependencies for your .NET projects. When you install or update a package with NuGet, it downloads the package from a package source and stores it in a local cache on your computer.…

  • .NET - OOD / OOP - Programming

    Priority Queue in .NET 6

    Priority Queue is a data structure in computer science that is used to manage a collection of prioritized elements. It allows adding, removing and peeking (reading) elements in the order of their priority. The priority queue is used in many applications such as job scheduling, network routing, data compression, and…

  • .NET - OOD / OOP - Programming

    Custom comparer of a SortedSet

    Sorting collections is a common task in programming, and .NET provides a variety of tools to do so efficiently. One such tool is the SortedSet class, which represents a collection of unique elements sorted in ascending or descending order. By default, SortedSet uses the default comparer for its type, but…

  • .NET - Programming - Web

    Web page scraping, the easy way

    Scraping content from websites can be a useful tool for gathering information or automating certain tasks. In C#, there are several libraries available that can help make this process easier. In this blog post, we will cover how to use the HtmlAgilityPack library to scrape content from websites in C#.…

  • .NET - Programming - Web

    Scraping dynamic page content

    Scraping dynamic content from websites has become an important task in data collection and analysis. With the advancements in web technologies, websites are now using dynamic content that cannot be easily scraped with traditional web scraping techniques. In this blog post, we will explore how to scrape dynamic content from…

  • .NET - Programming - Testing

    Unit-testing file I/O

    Two good news: file I/O is unit-testable, and it is surprisingly easy to do. Let’s see how it works! A software no-one asked for First, we need a piece of software that deals with files and that has to be unit-tested. The TestableIO project does the following: given a directory,…

  • .NET - Programming - Testing

    Necessary evil: testing private methods

    Some might say that testing private methods should be avoided because it means not testing the contract, that is the interface implemented by the class, but the internal implementation of the class itself. Still, not all classes were designed with testability in mind, so real life compromises sometimes demand such…

  • .NET - Programming - Software

    Windows Forms smells funny, but…

    In the “2016 .NET Community Report” just released by Telerik, the answers to the question “What technology would you choose if building for Windows Desktop?” were as follows: So roughly half of new desktop developments would be based on Windows Forms, a technology declared dead multiple times. The Telerik report…