visit
Modularity is central to modern software engineering - or may be all type of engineering not just software. We’ll explore support for modularity in Java and .Net platforms, but before that let’s first try to find answers for what and why of modularity.
Simple explanation of DotNet (.NET) CSharp (C#) Variance, Invariance, Covariance, and Contravariance. Providing a Cheat Sheet.
If you have been programming for any length of time, you may well have come across higher-order functions but may not have fully appreciated them.
The story is about how to create a NuGet package with a .editorconfig and import it to all the projects.
IronPDF is a .NET library for creating PDFs programatically. It's fast, simple, and easy to use.
Compared to other languages, C# was way behind in capabilities to handle data efficiently. Well, those days are over now. Microsoft just improved the C# syntax, making it easier for developers to manage data in arrays.
Extension methods are one of the coolest features of C#. It allows our custom methods to be used on the objects without needing to extend or change the underlying class.
We use Azure Function Core Tools to create a local.settings.json file and import our Function settings to that file so we can run our Functions locally.
Vexillology and Bit Shifting are often not talked about together. Today though, I encode numbers like 52357729848 into country flags using enums in C#.
.NET is a software framework that is designed and created by Microsoft. The principal variant of .Net framework was 1.0 which came in the year 2002. In simple words, it is a virtual machine for arranging and executing programs written in various languages like C#, VB.Net and so forth.
QR code is a computer-readable identification that contains data about the item to which it is attached. The article demonstrates how to generate QR-Code image.
Discover the powerful capabilities of Dapr by implementing a sample application with microservices leveraging the actor model to foster its strengths.
Diving into error CS0246 - type or namespace could not be found, what it means, why it happens, and how to solve it.
I recently wrote a blog post introducing some of my favourite NuGet packages: My Top 4 NuGet Packages for ASP.NET Core. In that post, I briefly introduced a package called MediatR. Today, I will dedicate this post to revisiting MediatR in further detail.
We can publish NuGet packages to internal feeds hosted in Azure Artifacts easily via pipelines defined in YAML files.
Let’s imagine the monolith project with an enormous code base that has been developed for a couple of decades (unbelievable, right?). This project is probably going to have a myriad of features and a considerable (hopefully!) number of automated tests covering the verification of our priceless features on multiple levels. All the way up the famous, or infamous, depending on who’re you gonna ask, testing pyramid from the unit foundation down below to the end-to-end peak high above.
It is very glad to see that the web technology is improvising day by day. One such notable improvement is the introduction of WebAssembly and direct usage of them in evergreen browsers.
edit: Unlike the conclusion of the post below, I based the analyzer on C# CaaS and not .NET IL. Its now available to use //devsnicket.com/eunice/#csharp. The latter doesn't preserve the order of members of a class either in the dll or pdb. Although, after looking at some open source C# projects, this capability wasn't used by default.
We can run our C# Azure Functions in an isolated process, decoupling the version of .NET that we use in our functions from the runtime version.
Is it me or Functional programming (FP) seems to be trending lately? FP languages like Haskell, Elixir, and F# are stronger than ever and large frameworks try to adopt a more functional approach. Even C# tries to include functional constructs in the language.
We can generate a refresh and access token required to call the Fitbit API programmatically with a simple Timer trigger function in Azure.
While GraphQL offers several benefits, there are some potential disadvantages and challenges to using it in C# to consider, before you decide to implement it.
Intro
Fluent Assertions is a .NET library that provides use with a bunch of useful extension methods that allow us to test our C# code in a more natural way
Intro
Here's a simple solution for being able to call Python code from your C# applications!
How to add GraphQL wrapper along with swagger documentation in ASP.Net C# using NSwag tool
Basically, we need to ability to write test classes and methods and have the base infrastructure for them.
Testing code that uses .NET's DateTime.Now
sucks!!!! This is how to mock them, to properly validate DateTime when writing unit tests.
Tutorial on how to easily replace 1 line of code placeholder in any text with value of an object.
Are you stuck on earlier versions of .NET but want to get your hands on the hot new record types? Fear not! Check out this simple solution to simplify things!
The article describes how pattern matching effectively utilises and processes data in forms not part of the primary system.
Dapper is a popular and easy-to-use object-relational mapping (ORM) tool for .NET developers. It is lightweight, fast, and provides a simple way to execute SQL
Disclaimer
In this blog post, I am going to share how I created a Blazor component without life-cycle methods and razor file syntax. We could also say this as class only component approach but without life-cycle methods. Many of them might knew this way of component rendering, but I felt like sharing this would help other folks who doesn’t know. I found this approach after going through various components used in Blazor source code.
C# 8.0 just rolled out with plenty of new features. One of the most important is the support of nullable reference types (NRT). A bunch of words that don't seem to explain what it does. I mean, aren't all types (except value types) already nullable?
Intro
Dependency injection (DI) is a wonderful thing. Simply add your dependency as a parameter to the constructor (most commonly) of your class, register it with you DI container, and away you go - the DI container will manage the rest. Some of the key benefits of DI are: greater testability, greater maintainability, and greater reusability.
Use the facade design pattern to simplify the interaction between subsystems. It provides a single entry point to a subsystem,
As new programmers, we all have to get started somewhere. If you're looking into C# and want to get learning, then this article focuses on all of the C# basics!
The article describes how pattern matching effectively utilises and processes data in forms not part of the primary system.
Software development is a complex task and as a developer you gain nothing from "reinventing the wheel". I'm a firm believer that you should make your life as easy as possible as a developer, by using tried and tested packages where possible; it will take so much headache out of your development experience.
If you're writing asynchronous code in C# and using EventHandlers, odds are you've had issues with exceptions. Task EventHandlers might be consideration!
In this post, we will do some exercises to go over the basics of DI (Dependency Injection) in ASP.NET.
In this article, I’ll show you how we can perform simple operations against a Azure Cosmos DB Table API account using the new Azure.Data.Table C# SDK.
In the world of DevOps automation, manually creating and uploading packages felt so old-fashioned (don't get me started on Azure Devops).
Becoming an expert in Microsoft web development is no easy feat. It requires a significant amount of time, dedication, and hard work. However, the rewards that
I am a big fan of executing multi-threads in an application, and it is interesting to see how quickly parallelism can solve a complex query.
According to Gang of Four, a creational pattern “Builder” allows to separate and reuse a specific method to build something.
Best Practice Cover DotNet (.NET) CSharp (C#) with unit tests with Test Driven Development TDD Dependency Injection DI Inversion of Control IoC Containers
We achieved these results through .NET to .NET Core migration. The need emerged while we have been supporting a complex KnockoutJS-based web application.
The Contenders
Dockerize Your C# Code Analysis: A Beginner's Guide to SonarQube and Docker Image.
In C# we have access to Tasks, Threads, or BackgroundWorkers. In this article, we will explore how each one operates at a high level.
What Bindings are in Azure Functions, How they currently work with in-process Functions, and how they work a little differently for isolated functions.
In today’s digital age, security is critical to any application. One way to enhance security is using SSL/TLS certificates to secure communications
C# (pronounced “C sharp”) is a modern, object-oriented programming language developed by Microsoft. It is widely used for creating desktop applications, games,
Learn the best practice on when to use Dependency Injection (DI), Inversion of Control (IoC) and IoC Containers. DotNet .NET CSharp C# Design Architecture
Learn paging/partitioning mathematical equations and how to apply them in JavaScript (JS) and DotNet (.NET) CSharp (C#) code. Coding Programming Development
.NET 5.0 was officially released this week, bringing with it a range of improvements to the .NET ecosystem. Like many .NET developers, I was quick to download it and give it a test run. This article discusses some of the most exciting new features in .NET 5.
In this tutorial, we’ll build a Web API using Azure Functions that stores data in Azure Cosmos DB with MongoDB API in C#
Most intermediate dotnet devs writing async await code in C# will come across async void at some point. Here's a creative solution for avoiding the headaches.
Dapper and EF Core are popular .NET libraries for data access and management. Both have strengths and weaknesses, and the choice will depend on the project's sp
The OWASP Top 10 is a standard awareness document for developers and web application security. It represents a broad consensus about the most critical security risks to web applications.
In this article, I want to cover the first part of the TOP 10 vulnerabilities and how to protect against them using .NET.By far, Microsoft .NET is one of the best platforms for building secure, robust, and scalable desktop or web applications. Used by most Fortune 500 companies, Microsoft .NET is very popular for large-scale applications.
In this article, we'll examine how to apply bioinformatics and C# coding to effectively deal with biological information.
The OWASP Top 10 is a standard awareness document for developers and web application security. It represents a broad consensus about the most critical security risks to web applications.
Hangfire is a .NET library that makes it really easy to adding background tasks to your .NET app. It supports one-off "fire and forget" tasks, as well as scheduling recurring tasks. On top of that it supports persistence, so all of your tasks will continue to exist even after restarting your app.
I've recently gotten into using Docker in my development cycle and I'm really enjoying how much of a wonderful tool it is. One thing that always used to be a pain was setting up a development server to run SQL Server. Now with Docker, I can just spin up a Docker container and I instantly have a SQL Server ready to go.
Command Design Pattern is one of the behavioural design patterns used to encapsulate a request as an object, thus enabling to parameterize clients with differen
Discover the true spark of your love with this fun and romantic game! Enter your name and the name of your partner, and let Flame Game do the rest.
In this article, we discuss how to protect users' authentication and session in .net, as well as Identity Server configuration.
How to build a fun QR code project and learn about Azure Functions at the same time. Using the latest .NET technologies.
A guide on how to do Web Scraping in DotNet (.NET) CSharp (C#), with examples. Software Development Coding Programming Selenium HtmlAgilityPack Puppeteer
Know when to depend on String.GetHashCode() in DotNet (.NET) CSharp (C#), and when not. Coding Programming Software Development Engineering Architecture
Introduction
.NET has two big desktop technologies. They are WinForms and WPF. But we live in a WEB world and we have many tools to create great UI using CSS and JavaScript.
According to Gang of Four, the iterator pattern provides a process to obtain the aggregator object without knowing its implementation.
xUnit support many ways of parameterizing tests, however none of the existing documentation I could find covered the use case of re-using and mixing parameter datasets across different tests. This article shows how this can be done with xUnit in Visual Studio.
In this post I'll show how to use Roslyn Analyzers with C# to enforce some standards of code quality and code style on your code.
In past five years, Microsoft had made a rapid enhancements in C# by introducing a plenty major features with every new version, As planed, C# 9.0 will be officially released with .NET 5 on November 2020. So we will dive into C# 9.0 new features that released on 20 may 2020 as a Preview.
Data Science and Data Analytics are quite diverse but are related to the processing of Big data. The difference lies in the way they manipulate data.
In this post I'll show how to maintain a standard for everyone who works in the code, no matter the editor used.
It seems crazy that Microsoft has a done a complete one-eighty of their position on open-source software. Learn how VS Code works.
Entity Framework Core (EF Core) is an object-relational mapping (ORM) framework that allows developers to interact with databases using .NET objects. One of the
OK, so the headless CMS is nothing new. There are many headless CMS providers to choose from. Some examples of providers are Contentful, Prismic, and Kentico Kontent. For the most part, they provide very similar features and price plans. Let's take a look at what the headless CMS is and why you should consider it for your team.
Method overloading and overriding are two common forms of polymorphism ( the ability for a method or class to have multiple forms) in C# that are often confused because of their similar sounding names. In this article, we show the difference between the two with some practical code examples.
In this article we are going to explore this huge and passionate world of software development by demystifying what it really is and how can we get started in this field.
Entrepreneurs and startups are always confused about choosing between .Net Core vs .Net Framework due to their high functionalities and popularity.
According to Gang of Four, it defines a chain of responsibilities to process a request. In other words, pass the request from one object to another until an obj
How dotNetify implemented horizontal scaling of SignalR apps with proxy instead of a backplane.
Blazor is here, Will JavaScript be dead? I would say that the answer is NO at-least for now.
Entity Framework (EF) is an object-relational mapper (ORM) that provides a set of tools to work with databases in an object-oriented way.
Tired of debugging your application to find out its database dependencies? There is a smarter way to track them with OpenTelemetry.
Do you want to try out Blazor, but you're not a Windows person? Strictly a Linux developer? You're in luck. One of the goals of .NET Core is to be cross-platform, so today we'll see just how "cross-platform" it really is with Blazor, Microsoft's hot new front end development project.
Test Driven Development (TDD) is a software development cycle that focusses on describing the behaviour of your code first using tests
The Unit of Work design pattern is a software design pattern that is widely used in software development. It is a way to group database-related operations
Embedded data analytics and reporting tools that empowers Business analysts
When you think about database providers for ASP NET Core apps, you probably think about Entity Framework Core (EF Core), which handles interacting with SQL databases. But what about the NoSQL options? A popular option for NoSQL is MongoDB. So in this article we're going to learn how to create a simple ASP NET Core CRUD API using MongoDB as the database provider.
Learn how to import and export CSV and Excel XLSX in .NET C# applications.
Docker has become an essential tool in modern software development, providing an efficient and portable way to package and distribute applications.
Hi everyone! There is a lot of information about different C# features. About various life hacks and best practices in this language. I want to tell you about equally useful, but less popular tips for working with this language.
Dapper is an open-source ORM tool that is easy to use and lightweight, which makes it a popular choice for .NET developers. It is designed to work with various
Recently I've been learning how to write code in F#. For those who haven't heard of it, F# is Microsoft's/.NET's answer to a functional-first programming language. My motivation was to learn a functional programming language that would make coding for scientific computing and data analysis more expressive, concise, and maintainable, all while fitting seamlessly into the .NET ecosystem that I already know and love. F# fits that bill perfectly.
This post discusses the aggressive and hungry nature of the garbage collection process in .NET as well as a concept that is often referred to as eager root collection.
Hi everyone! Today I want to share with you some .Net 5 performance tips with benchmarking!
This year was a special edition of MS Build; for obvious reasons, it was 100% virtual. I must say that I had my doubts at first, but I'm forced to admit that Microsoft nailed it. The experience was fantastic. I liked the personal schedule builder and the rebroadcast in 3 different timezones, to only name a few things. Microsoft even took the time to ship the conference's gear to all attendees, DIRECTLY to their doorstep, what a nice touch.
In this article, I will teach you the basics of making your own web app, by creating a checklist app. ASP NET Core will be used to create a CRUD API and Vue will be used to create the frontend UI. Using the knowledge gained here, you should be able to apply it to start making your own web apps. You can find the complete solution in the GitHub repository.
User authentication and authorization can be difficult and time consuming. Getting it wrong can also have disastrous consequences, such as malicious users accessing and stealing personal or sensitive information from your app.
To assist developers in designing safe applications, the most recent version of the.NET platform, .NET 6, has various built-in security capabilities.
Creating a multi-container application can be daunting, but Docker Compose and C# can make it much more straightforward. This article will walk us through the s
The repository architectural pattern is frequently employed in software development to segregate an application's business logic from the data access layer. It
Type inference is a common feature among mainstream programming languages. The functional ones, like ML and Haskell, are pioneers in exploring this programming paradigm where the declaration of a variable or a function may omit a type annotation. Today, even classic imperative languages such as C++ offer, to a certain extent, a kind of type inference.
Implement a better enhanced Repository Pattern in DotNet (.NET ) CSharp (C# ) following best practices Dependency Injection (DI) Inversion of Control (IoC)
A step-by-step guide to developing a Fluent API from scratch in .NET C# using the Builder Design Pattern.
Best Practice for designing Interfaces in DotNet (.NET) CSharp (C#). When to define a non-generic interface in addition to the generic interface.
.NET developers can evaluate and visualize the codebase using the robust static analysis tool NDepend. It aids programmers in understanding the quality and main
Dapper is a powerful and lightweight Object-Relational Mapping (ORM) tool for C#. It is designed to be simple and fast, allowing developers to execute SQL query
OK, so the headless CMS is nothing new. There are many headless CMS providers to choose from. Some examples of providers are Contentful, Prismic, and Kentico Kontent. For the most part, they provide very similar features and price plans. Let's take a look at what the headless CMS is and why you should consider it for your team.
How to achieve 100% coverage of I/O file based applications in DotNet (.NET) CSharp (C#) Test Driven Development (TDD) Development Software Best Practices
Learn how to create an RDL report in code in no time!
Using YAML Build pipelines, we can define our entire build and release pipeline in a single file!
It is becoming a common pattern to see websites and web apps written as a front end single page application (SPA) connected to a backend API. For this reason, the Visual Studio provides a several project templates for getting up and going with a Web API + SPA project.
HTTP/3 is the latest HTTP protocol version designed to improve web application performance and security. Built on top of the QUIC protocol, HTTP/3 provides fast
Entity Framework Core (EF Core) is an object-relational mapping (ORM) framework that allows developers to interact with databases using .NET objects. One of the
Which approach is better: an iterator or a materialized collection? In this article we explore common pitfalls with BOTH of these different approaches!
Azure Storage Account is one of the foundation services of Azure. Pretty much all other services use it under the cover in a way or another. This service is simple, works great, and has crazy SLA and redundancy capabilities. However, it doesn't provide a point in time restore. Meaning that if you corrupt or delete some data, there's no way to recover it. There are some solutions that you can find over the internet, but unfortunately, none of them is a silver bullet. Let's explore and compare some of them.
If you've spent much time around C# and .NET, it's likely that you will have come across LINQ (Language-Integrated Query), which allows you to use a range of powerful querying capabilities directly in the C# language.
In my previous post, I discussed the eager root collection as an aggressive behavior of JIT (in Release mode / optimized code) to assist the garbage collector (GC), so that a object is not considered to be a root beyond the point of its usage.
In my previous post, I discussed the eager root collection as an aggressive behavior of JIT (in Release mode / optimized code) to assist the garbage collector (GC), so that a object is not considered to be a root beyond the point of its usage.