Visual C# - Programowanie
Microsoft Visual C# 2022 Krok po kroku
John Sharp
Praktyczny przewodnik po podstawach Visual C# przy użyciu Visual Studio 2022 Poszerz swoje umiejetności i samodzielnie poznawaj podstawy programowania w najnowszej wersji Visual C# i Visual Studio 2022. Znajdziesz tu niezbędne wskazówki, ćwiczenia i przykładowy kod, niezbędne do tworzenia skutecznych, skalowalnych, połączonych z chmurą aplikacji, które mogą działać niemal wszędzie. Dowiedz się jak: - Szybko rozpocząć tworzenie kodu i projektów Visual C# przy użyciu Visual Studio - Posługiwać się zmiennymi, operatorami, wyrażeniami i metodami i kontrolować przepływ sterowania - Budować solidne aplikacje za pomocą zarządzania błędami, wyjątkami i zasobami - Szybko rozpoznawać problem przy użyciu debugera Visual Studio - Doskonalić nowe domyślne metody interfejsów, statycznych funkcji lokalnych, asynchronicznie zwalnianych typów i innych ulepszeń - Wydobyć jak najwięcej z modelu obiektowego i tworzyć funkcjonalne struktury danych - Korzystać z zaawansowanych właściwości, indeksatorów, typów generycznych i klas kolekcji - Tworzyć aplikacje dla systemu Windows 11, które współużytkują dane i usługi chmurowe - Używać lekkich rekordów do łatwiejszego tworzenia niezmiennych typów referencyjnych - Używać LINQ do wykonywania zapytań wobec kolekcji obiektów - Poprawiać czas reakcji aplikacji za pomocą metod asynchronicznych - Używać delegatów do konstruowania rozszerzalnych systemów - Dostosowywać zachowanie operatorów C# dla swoich klas i struktur - Implementować efektywny wzorzec Model-View-ViewModel (MVVM) - Budować aplikacje UWP, które odczytują złożone dane i prezentują je intuicyjnie O tej książce - Dla projektantów oprogramowania, dla których Visual C# jest nowym językiem lub przechodzącym ze starszych wersji - Czytelnik powinien znać przynajmniej jeden język programowania - Nie jest wymagana znajomość .NET ani Visual Studio O autorze John Sharp, główny technolog w brytyjskiej firmie programistycznej CM Group Ltd, ma ponad 37 lat doświadczenia jako programista, konsultant, autor i wykładowca. Jest ekspertem od projektowania i tworzenia rozproszonych aplikacji dla systemu Windows i Microsoft Azure, a także autorem materiałów szkoleniowych dla firmy Microsoft, skupiającym się na takich obszarach, jak danetyka z wykorzystaniem języków R i Python, przetwarzanie big data za pomocą Spark i CosmosDB, SQL Server, NoSQL, usługi web, programistycze środowiska międzyplatformowe oraz architektury skalowalnych aplikacji Azure. Pliki ćwiczeń i kod dostępne są w witrynie MicrosoftPressStore.com/VisualCsharp10e/downloads
Arun Narayanan, Praseed Pai, Shine Xavier
Knowing about design patterns enables developers to improve their code base, promoting code reuse and making their design more robust.This book focuses on the practical aspects of programming in .NET. You will learn about some of the relevant design patterns (and their application) that are most widely used. We start with classic object-oriented programming (OOP) techniques, evaluate parallel programming and concurrency models, enhance implementations by mixing OOP and functional programming, and finally to the reactive programming model where functional programming and OOP are used in synergy to write better code. Throughout this book, we’ll show you how to deal with architecture/design techniques, GoF patterns, relevant patterns from other catalogs, functional programming, and reactive programming techniques. After reading this book, you will be able to convincingly leverage these design patterns (factory pattern, builder pattern, prototype pattern, adapter pattern, facade pattern, decorator pattern, observer pattern and so on) for your programs. You will also be able to write fluid functional code in .NET that would leverage concurrency and parallelism!
Fiqri Ismail
The .NET Standard is a standard that represents a set of APIs that all .NET platforms have to implement, making it easy for developers to access and use one common library for their development needs. This book begins with a quick refresher, helping you understand the mechanics of the new standard and offering insight into how it works. You’ll explore the core library concepts, such as working with collections, configurations, I/O, security, and multithreading. You’ll explore the iOS and Android libraries of Xamarin and we’ll guide you through creating a .NET Standard 2.0 library, which you’ll use with both Android and iOS applications. In the final chapters, you’ll learn the various debugging and diagnostics tools to deliver quality libraries and create a NuGet package of the .NET Standard 2.0 library. By the end of this book, you’ll be able to expand your current workflow to various .NET flavors and have the essential skills to create a .NET Standard 2.0 library from scratch to package and deliver it to the world.
Poznaj Blazor. Buduj jednostronicowe aplikacje przy pomocy WebAssembly i C#
David Pine
Wykorzystaj swoje umiejętności programowania w języku C#, aby tworzyć składniki interfejsu użytkownika i środowiska klienckiego za pomocą platformy .NET. Dzięki temu praktycznemu przewodnikowi można dowiedzieć się, jak korzystać z Blazor WebAssembly do tworzenia interfejsów internetowych nowej generacji. Blazor opiera się na ASP.NET Core i stanowi przyszłość aplikacji jednostronicowych w .NET. Autor David Pine, który w firmie Microsoft zajmuje się opracowywaniem treści związanych z .NET i Azure, wyjaśnia, w jaki sposób WebAssembly umożliwia uruchamianie w przeglądarce klienta programów w wielu językach programowania innych niż JavaScript. Dzięki tej książce można poznać funkcje internetowe działające w czasie rzeczywistym i opracowywane za pomocą ASP.NET Core SignalR oraz odkryć strategie dwukierunkowej interakcji z JavaScript. David omawia również wiązanie danych dla składników, hierarchiczną komunikację sterowaną zdarzeniami, zarządzanie stanem w pamięci oraz lokalne przechowywanie danych. Dowiedz się, jak: - Tworzyć piękne, bogate w funkcje aplikacje Blazor - Tworzyć i lokalizować większe aplikacje przy użyciu usług GitHub Actions i Azure Cognitive Services Translator - Tworzyć zaawansowane scenariusze sprawdzania poprawności danych wejściowych dla składników formularzy - Automatycznie wdrażać i utrzymywać aplikacje w usłudze Azure Static Web Apps oraz jak korzystać z usług HTTP - Korzystać z usług geolokalizacyjnych oraz syntezy i rozpoznawania mowy dostępnych w przeglądarce - Tworzyć niestandardowe, modalne mechanizmy sprawdzania tożsamości użytkownika "Platforma webowa Blazor z otwartym kodem źródłowym to zupełnie nowy sposób tworzenia potężnych aplikacji internetowych. Poznaj Blazor wykorzystuje mnóstwo przykładów i kodu opartego na głębokim doświadczeniu Davida Pine'a jako autora treści w zespole .NET, aby umożliwić szybkie rozpoczęcie pisania aplikacji internetowych Blazor w języku C#!" -Scott Hanselman Partner Program Manager, Developer Division, Microsoft David Pine jest autorem treści w firmie Microsoft, gdzie skupia się na dokumentacji programistycznej dla .NET i Azure. Zdobył również tytuły Google Developer Expert in Web Technologies oraz Twilio Champion. Przed dołączeniem do firmy Microsoft David przez kilka lat był specjalistą wyróżnionym tytułem Microsoft MVP w dziedzinie technologii programistycznych. Rozwija się w społeczności programistów, dzieląc się swoją wiedzą poprzez wystąpienia na konferencjach i spotkaniach na całym świecie.
John Callaway, Clayton Hunt
Test-Driven Development (TDD) is a methodology that helps you to write as little as code as possible to satisfy software requirements, and ensures that what you've written does what it's supposed to do. If you're looking for a practical resource on Test-Driven Development this is the book for you. You've found a practical end-to-end guide that will help you implement Test-Driven Techniques for your software development projects.You will learn from industry standard patterns and practices, and shift from a conventional approach to a modern and efficient software testing approach in C# and JavaScript. This book starts with the basics of TDD and the components of a simple unit test. Then we look at setting up the testing framework so that you can easily run your tests in your development environment. You will then see the importance of defining and testing boundaries, abstracting away third-party code (including the .NET Framework), and working with different types of test double such as spies, mocks, and fakes.Moving on, you will learn how to think like a TDD developer when it comes to application development. Next, you'll focus on writing tests for new/changing requirements and covering newly discovered bugs, along with how to test JavaScript applications and perform integration testing. You’ll also learn how to identify code that is inherently un-testable, and identify some of the major problems with legacy applications that weren’t written with testability in mind. By the end of the book, you’ll have all the TDD skills you'll need and you’ll be able to re-enter the world as a TDD expert!
Roslyn Cookbook. Compiler as a Service, Code Analysis, Code Quality and more
Manish Vasani
Open-sourcing the C# and Visual Basic compilers is one of the most appreciated things by the .NET community, especially as it exposes rich code analysis APIs to analyze and edit code. If you want to use Roslyn API to write powerful extensions and contribute to the C# developer tool chain, then this book is for you. Additionally, if you are just a .NET developer and want to use this rich Roslyn-based functionality in Visual Studio to improve the code quality and maintenance of your code base, then this book is also for you.This book is divided into the following broad modules:1. Writing and consuming analyzers/fixers (Chapters 1 - 5): You will learn to write different categories of Roslyn analyzers and harness and configure analyzers in your C# projects to catch quality, security and performance issues. Moving ahead, you will learn how to improve code maintenance and readability by using code fixes and refactorings and also learn how to write them. 2. Using Roslyn-based agile development features (Chapters 6 and 7): You will learn how to improve developer productivity in Visual Studio by using features such as live unit testing, C# interactive and scripting.3. Contributing to the C# language and compiler tool chain (Chapters 8 - 10): You will see the power of open-sourcing the Roslyn compiler via the simple steps this book provides; thus, you will contribute a completely new C# language feature and implement it in the Roslyn compiler codebase. Finally, you will write simple command line tools based on the Roslyn service API to analyze and edit C# code.
Jussi Roine, Olli Jääskeläinen
SharePoint is one of Microsoft's best known web platforms. A loyal audience of developers, IT Pros and power users use it to build line of business solutions. The SharePoint Framework (SPFx) is a great new option for developing SharePoint solutions. Many developers are creating full-trust based solutions or add-in solutions, while also figuring out where and how SPFx fits in the big picture. This book shows you how design, build, deploy and manage SPFx based solutions for SharePoint Online and SharePoint 2016. The book starts by getting you familiar with the basic capabilities of SPFx. After that, we will walk through the tool-chain on how to best create production-ready solutions that can be easily deployed manually or fully automated throughout your target Office 365 tenants.We describe how to configure and use Visual Studio Code, the de facto development environment for SPFx-based solutions. Next, we provide guidance and a solid approach to packaging and deploying your code. We also present a straightforward approach to troubleshooting and debugging your code an environment where business applications run on the client side instead of the server side.
The Modern C# Challenge. Become an expert C# programmer by solving interesting programming problems
Rod Stephens
C# is a multi-paradigm programming language. The Modern C# Challenge covers with aspects of the .NET Framework such as the Task Parallel Library (TPL) and CryptoAPI. It also encourages you to explore important programming trade-offs such as time versus space or simplicity. There may be many ways to solve a problem and there is often no single right way, but some solutions are definitely better than others. This book has combined these solutions to help you solve real-world problems with C#.In addition to describing programming trade-offs, The Modern C# Challenge will help you build a useful toolkit of techniques such as value caching, statistical analysis, and geometric algorithms.By the end of this book, you will have walked through challenges in C# and explored the .NET Framework in order to develop program logic for real-world applications.