C#

9
Ebook

ASP.NET 8 Best Practices. Explore techniques, patterns, and practices to develop effective large-scale .NET web apps

Jonathan R. Danylko

As .NET 8 emerges as a long-term support (LTS) release designed to assist developers in migrating legacy applications to ASP.NET, this best practices book becomes your go-to guide for exploring the intricacies of ASP.NET and advancing your skills as a software engineer, full-stack developer, or web architect.This book will lead you through project structure and layout, setting up robust source control, and employing pipelines for automated project building. You’ll focus on ASP.NET components and gain insights into their commonalities. As you advance, you’ll cover middleware best practices, learning how to handle frontend tasks involving JavaScript, CSS, and image files. You’ll examine the best approach for working with Blazor applications and familiarize yourself with controllers and Razor Pages. Additionally, you’ll discover how to leverage Entity Framework Core and exception handling in your application. In the later chapters, you’ll master components that enhance project organization, extensibility, security, and performance.By the end of this book, you’ll have acquired a comprehensive understanding of industry-proven concepts and best practices to build real-world ASP.NET 8.0 websites confidently.

10
Ebook

ASP.NET Core 3 and React. Hands-On full stack web development using ASP.NET Core, React, and TypeScript 3

Carl Rippon

Microsoft's ASP.NET Core is a robust and high-performing cross-platform web API framework, and Facebook's React uses declarative JavaScript to drive a rich, interactive user experience on the client-side web. Together, they can be used to build full stack apps with enhanced security and scalability at each layer.This book will start by taking you through React and TypeScript components to build an intuitive single-page application. You’ll understand how to design scalable REST APIs that can integrate with a React-based frontend. You’ll get to grips with the latest features, popular patterns, and tools available in the React ecosystem, including function-based components, React Router, and Redux. The book shows how you can use TypeScript along with React to make the frontend robust and maintainable. You’ll then cover important .NET Core features such as API controllers, attribute routing, and model binding to help you build a sturdy backend. Additionally, you’ll explore API security with ASP.NET Core identity and authorization policies, and write reliable unit tests using both .NET Core and React before you deploy your app to the Azure cloud.By the end of the book, you’ll have gained all the knowledge you need to enhance your C# and JavaScript skills and build full stack, production-ready applications with ASP.NET Core and React.

11
Ebook

Asynchroniczność i wielowątkowość w języku C#

Grzegorz Lang

Przejdź na wyższy poziom C# Programowanie wielowątkowe pozwala wykonywać różne czynności z wykorzystaniem więcej niż jednego wątku. W efekcie zwiększa się wydajność operacji, które były ograniczone parametrami procesora. W dodatku dzięki zastosowaniu programowania wielowątkowego zadania można wykonywać w tle, bez pogorszenia responsywności aplikacji. Asynchroniczność umożliwia także zachowanie responsywności aplikacji użytkowych oraz zwiększenie skalowalności aplikacji serwerowych. Brzmi obiecująco. Niestety, programowanie z wykorzystaniem wątków i asynchroniczności nie należy do najprostszych. Jest to dziedzina z natury skomplikowana i błędogenna, także w języku C#. Ten poradnik zbiera i zwięźle tłumaczy wszystkie zagadnienia związane z asynchronicznością i wielowątkowością w C#. Poszczególne tematy uzupełniono przykładami, pomagającymi lepiej zrozumieć problem, którego rozwiązanie można zastosować później w praktyce. Dla wygody w korzystaniu z książki każdy koncept opisano oddzielnie, jednak by go zrozumieć, trzeba przyswoić wiedzę z poprzednich rozdziałów. Dowiedz się, na czym polega wielowątkowość w C# Opanuj zasady programowania równoległego Naucz się programować asynchronicznie Poznaj podstawowe zasady synchronizacji

12
Ebook

Augmented Reality with Unity AR Foundation. A practical guide to cross-platform AR development with Unity 2020 and later versions

Jonathan Linowes

Augmented reality applications allow people to interact meaningfully with the real world through digitally enhanced content. The book starts by helping you set up for AR development, installing the Unity 3D game engine, required packages, and other tools to develop for Android (ARCore) and/or iOS (ARKit) mobile devices. Then we jump right into the building and running AR scenes, learning about AR Foundation components, other Unity features, C# coding, troubleshooting, and testing. We create a framework for building AR applications that manages user interaction modes, user interface panels, and AR onboarding graphics that you will save as a template for reuse in other projects in this book. Using this framework, you will build multiple projects, starting with a virtual photo gallery that lets you place your favorite framed photos on your real-world walls, and interactively edit these virtual objects. Other projects include an educational image tracking app for exploring the solar system, and a fun selfie app to put masks and accessories on your face. The book provides practical advice and best practices that will have you up and running quickly.By the end of this AR book, you will be able to build your own AR applications, engaging your users in new and innovative ways.

13
Ebook

Bardziej efektywny C#

Wagner Bill

50 sposobów ulepszenia języka C# Powszechnie rozpoznawany ekspert .NET Bill Wagner identyfikuje i wyjaśnia 50 zaawansowanych technik i zasad pisania niezawodnego i dobrze działającego kodu C# 7.0. Zgodnie z rosnącym wyrafinowaniem języka C# i oczekiwaniami społeczności programistów Wagner przedstawia nowe, skuteczne rozwiązania problemów, na które natrafiamy każdego dnia. Trzy wydania Effective C# i zawarte w nich jasne wyjaśnienia, wskazówki i realistyczne przykłady kodu dowiodły swojej wartości dla tysięcy programistów. Bardziej efektywny C# przynosi to samo sprawdzone podejście do nowych funkcjonalności języka C# 7.0, pomagające bardziej wydajnie i skutecznie realizować dobrze znane zadania. Bazując na niezrównanym doświadczeniu i kluczowej roli w globalnych gremiach standaryzujących języka C#, Wagner pokazuje podejścia zorientowane obiektowo, funkcyjne i zorientowane na usługi do zarządzania danymi przy użyciu C#, lepsze sposoby wyrażania naszych zamiarów użytkownikom i innym programistom, a także nowe możliwości wykorzystywania technik asyn-chronicznych i programowania dynamicznego. ? Używanie właściwości zamiast dostępnych pól danych (punkt 1) ? Rozróżnianie pomiędzy typami wartościowymi i referencyjnymi (4) ? Zależności pomiędzy różnymi koncepcjami równości (9) ? Unikanie operatorów konwersji (11) ? Rozróżnianie pomiędzy interfejsami a metodami wirtualnymi (15) ? Unikanie przeciążania metod zdefiniowanych w klasach bazowych (19) ? Tworzenie grup metod, które są jasne, minimalne i kompletne (22) ? Włączanie natychmiastowego zgłaszania błędów w iteratorach i metodach asynchronicznych (26) ? Używanie metod asynchronicznych do pracy asynchronicznej (27) ? Unikanie alokowania wątków i przełączania kontekstów (30) ? Konstruowanie równoległych zapytań PLINQ z uwzględnieniem wyjątków (36) ? Używanie puli wątków zamiast tworzenia wątków (37) ? Wykorzystanie BackgroundWorker do komunikacji pomiędzy wątkami (38) ? Używanie najmniejszego możliwego zakresu dla blokad (41) ? Zalety i wady dynamicznego programowania (43) ? Pełne wykorzystanie API wyrażeń (46) ? Minimalizowanie obiektów dynamicznych w publicznych API (47) Jesteś już skutecznym programistą C#: dzięki tej książce staniesz się wyjątkowym. Bill Wagner jest jednym z czołowych projektantów C#, członkiem ECMA C# Standards Committee i autorem trzech wydań Effective C#. Jest też prezesem Humanitarian Toolbox, został wyróżniony tytułem Microsoft Regional Director oraz .NET MVP od 11 lat, zaś ostatnio dołączył do .NET Foundation Advisory Council. Wagner wielokrotnie pomagał rozmaitym firmom, od start-upów po międzynarodowe korporacje w usprawnianiu procesów projektowych i rozwijaniu zespołów programistycznych. Obecnie jako członek zespołu .NET Core tworzy materiały szkoleniowe dla programistów z dziedziny języka C# i .NET Core.

14
Ebook

Blazor WebAssembly by Example. A project-based guide to building web apps with .NET, Blazor WebAssembly, and C#

Toi B. Wright, Scott Hanselman

Blazor WebAssembly makes it possible to run C# code on the browser instead of having to use JavaScript, and does not rely on plugins or add-ons. The only technical requirement for using Blazor WebAssembly is a browser that supports WebAssembly, which, as of today, all modern browsers do. Blazor WebAssembly by Example is a project-based guide for learning how to build single-page web applications using the Blazor WebAssembly framework. This book emphasizes the practical over the theoretical by providing detailed step-by-step instructions for each project.You'll start by building simple standalone web applications and progress to developing more advanced hosted web applications with SQL Server backends. Each project covers a different aspect of the Blazor WebAssembly ecosystem, such as Razor components, JavaScript interop, event handling, application state, and dependency injection. The book is designed in such a way that you can complete the projects in any order.By the end of this book, you will have experience building a wide variety of single-page web applications with .NET, Blazor WebAssembly, and C#.

15
Ebook

Building Microservices with .NET Core 2.0. Transitioning monolithic architectures using microservices with .NET Core 2.0 using C# 7.0 - Second Edition

Gaurav Aroraa

The microservices architectural style promotes the development of complex applications as a suite of small services based on business capabilities. This book will help you identify the appropriate service boundaries within your business. We'll start by looking at what microservices are and their main characteristics. Moving forward, you will be introduced to real-life application scenarios; after assessing the current issues, we will begin the journey of transforming this application by splitting it into a suite of microservices using C# 7.0 with .NET Core 2.0. You will identify service boundaries, split the application into multiple microservices, and define service contracts. You will find out how to configure, deploy, and monitor microservices, and configure scaling to allow the application to quickly adapt to increased demand in the future.With an introduction to reactive microservices, you’ll strategically gain further value to keep your code base simple, focusing on what is more important rather than on messy asynchronous calls.

16
Ebook

Building RESTful Web services with .NET Core. Developing Distributed Web Services to improve scalability with .NET Core 2.0 and ASP.NET Core 2.0

Gaurav Aroraa, Tadit Dash

REST is an architectural style that tackles the challenges of building scalable web services. In today's connected world, APIs have taken a central role on the web. APIs provide the fabric through which systems interact, and REST has become synonymous with APIs. The depth, breadth, and ease of use of ASP.NET Core makes it a breeze for developers to work with for building robust web APIs. This book takes you through the design of RESTful web services and leverages the ASP.NET Core framework to implement these services. This book begins by introducing you to the basics of the philosophy behind REST. You'll go through the steps of designing and implementing an enterprise-grade RESTful web service. This book takes a practical approach, that you can apply to your own circumstances. This book brings forth the power of the latest .NET Core release, working with MVC. Later, you will learn about the use of the framework to explore approaches to tackle resilience, security, and scalability concerns. You will explore the steps to improve the performance of your applications. You'll also learn techniques to deal with security in web APIs and discover how to implement unit and integration test strategies. By the end of the book, you will have a complete understanding of Building a client for RESTful web services, along with some scaling techniques.