c
By Joydip Kanjilal When designing applications, it is important to know when to use an abstract class and when to use an interface. Although abstract classes and interfaces seem similar in some ways, there are key differences that will determine which is the best choice for what you’re trying to accomplish. In this blog post I’ll discuss those differences and how to decide when to use which. The short answer: An abstract class allows you to create functionality that subclasses can implement or override. An interface only allows you to define functionality, not implement it. And whereas a class...
Info World
By Paul Krill In a June 10 keynote presentation at Apple’s World Wide Developers Conference, Ted Kremenek, Apple director of languages and runtimes, argued that Swift is the best programming language to replace C++. Swift was introduced by Apple in 2014 as the successor to Objective-C, and Kremenek believes it will overtake C++ as well. “Swift’s safety, speed, and approachability, combined with built-in C and C++ interoperability, mean Swift is the best choice to succeed C++,” Kremenek said. C++ and C have drawn fire from the White House, which released a report in February urging developers t...
Info World
By Paul Krill Developers apparently did not listen to a recent White House advisory to move away from C++ and C over memory safety concerns, as C++ has climbed to second place in the Tiobe index of programming language popularity, trailing only Python. The C language dropped to third place. C++ is the number two language in the Tiobe Programming Community Index for June, while C’s third place ranking is its lowest position ever in the index. C++ was third last month while C was in second place. “The main strengths of C++ are its performance and scalability,” said Paul Jansen, CEO of software q...
Info World
By Joydip Kanjilal Today’s web applications are vulnerable to a variety of security threats. Hence, you should have your strategies in place to safeguard your data and protect your application against attacks. Securing your application requires a proactive approach combined with implementation of the recommended best practices as discussed in this article. This article examines six strategies you can adopt to secure your web applications, taking advantage of protections available in ASP.NET Core. To use the illustrative code examples provided in this article, you should have Visual Studio 2022...
Info World
By Paul Krill Microsoft has updated its MSTest testing framework for .NET, enhancing it with WinUI support and best practices for Roslyn-based code analyzers. The company announced MSTest 3.4 on June 5. The MSTest framework can be accessed via NuGet. With MSTest 3.4, support for WinUI framework applications is added to MSTest.Runner. With this improvement, a project sample is offered and work is under way to simplify testing of unpackaged WinUI applications. Microsoft also has improved the test runner’s performance by using built-in System.Text.Json for .NET rather than Jsonite and by caching ...
Info World
By Joydip Kanjilal Minimal APIs in ASP.NET Core allow us to build lightweight APIs with minimal dependencies. However, often we will still need authentication and authorization in our minimal APIs. There are several ways to achieve this in ASP.NET Core including basic authentication, token-based authentication, and identity-based authentication. We discussed implementing basic authentication in minimal APIs here, and JWT token-based authentication in minimal APIs here. In this article we’ll examine how we can implement identity-based authentication for minimal APIs in ASP.NET Core. To use the ...
Info World
By Paul Krill C# 13, a planned update to Microsoft’s popular general purpose language for .NET development, is set to enhance params parameters to give developers more flexibility, and to introduce extension types, a new kind of type that provides extension members for an underlying type. Microsoft detailed the plans for C# 13 on May 21. Beginning with C# 13, the params parameter type can be any of the types used with collection expressions such as Span<T>, List<T>, and IEnumerable<T>. Developers also can use their own collections if they follow special rules. Also, many methods of the .NET Ru...
Info World
By Joydip Kanjilal When developing database-driven .NET and .NET Core, regardless of the database we intend to deploy in the end, we will often want to work with a database engine that is lightweight and fast, in order to execute tests quickly and speed up development. Here SQLite is an ideal choice. You can use SQLite to gain both faster data access and a smaller footprint. The SQLite database is usually stored as a single disk file, although it can also work as an in-memory database. However, unlike an in-memory database, SQLite allows you to query data without having to load the entire data...
Info World
By Joydip Kanjilal ASP.NET Core offers a simplified hosting model, called minimal APIs, that allows us to build lightweight APIs with minimal dependencies. However, “minimal” doesn’t mean minimal security. Minimal APIs need authentication too. We’ve explored JWT authentication in an earlier post here. In this article we’ll examine how we can build a basic authentication handler for minimal APIs in ASP.NET Core. Below we’ll implement a basic authentication handler that will identify and authenticate the user. Because we will validate the user’s identity using credentials stored in a database, w...
Info World
By Joydip Kanjilal ASP.NET Core offers a simplified hosting model, called minimal APIs, that allows us to build lightweight APIs with minimal dependencies. Ideal for building fast and simple services, minimal APIs were initially introduced in ASP.NET Core 6 to strip away the complexity of traditional APIs and make it easier to build microservices. The goal of this post is to explore the new features for building minimal APIs introduced in ASP.NET Core 8. To use the code examples provided in this article, you should have Visual Studio 2022 installed in your system. If you don’t already have a c...
Info World
閲覧を続けるには、ノアドット株式会社が「プライバシーポリシー」に定める「アクセスデータ」を取得することを含む「nor.利用規約」に同意する必要があります。
「これは何?」という方はこちら