ebook img

An Atypical ASP.NET Core 5 Design Patterns Guide PDF

762 Pages·2020·49.558 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview An Atypical ASP.NET Core 5 Design Patterns Guide

An Atypical ASP.NET Core 5 Design Patterns Guide A SOLID adventure into architectural principles, design patterns, .NET 5, and C# Carl-Hugo Marcotte BIRMINGHAM—MUMBAI An Atypical ASP.NET Core 5 Design Patterns Guide Copyright © 2020 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. Group Product Manager: Ashwin Nair Publishing Product Manager: Pavan Ramchandani Commissioning Editor: Kunal Chaudhary Acquisition Editor: Chaitanya Nair Senior Editor: Keagan Carneiro Content Development Editor: Rakhi Patel Technical Editor: Shubham Sharma Copy Editor: Safis Editing Project Coordinator: Kinjal Bari Proofreader: Safis Editing Indexer: Tejal Daruwale Soni Production Designer: Shankar Kalbhor First published: December 2020 Production reference: 1301220 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78934-609-1 www.packt.com To everyone who has supported me in my life and my career or from whom I learned something. – Carl-Hugo Marcotte Packt.com Subscribe to our online digital library for full access to over 7,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website. Why subscribe? • Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals • Improve your learning with Skill Plans built especially for you • Get a free eBook or video every month • Fully searchable for easy access to vital information • Copy and paste, print, and bookmark content Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details. At www.packt.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks. Foreword After 10 years of abiding partnership with Carl-Hugo, I still remember the production support project that ushered this partnership in – the application's accuracy and reliability were the overriding factors, providing the final product's competitive edge. This project brought to light Carl-Hugo's talent and his solid grasp of the .NET programming platform, which spurred me to entrust him with more sensitive and crucial projects, laying the groundwork for our extended partnership. We started tackling projects that had been on hold for a long time, requiring deep analysis, and more importantly, acute imagination to put them across using .NET programs. Once again, Carl-Hugo's knowledge and skills stood out, leading to robust and flexible .NET application designs. Carl-Hugo has consolidated his expertise by spending several years teaching programming. His book An Atypical ASP.NET Core 5 Design Patterns Guide unites that experience with his long-term expertise in the field. Therefore, I highly recommend reading the book and putting it into practice as I've already had the opportunity to attend some of his training sessions and bear witness to this manual's consistency and practical features. Abdelhamid Zebdi IT Director – Nortek Air Solutions 2007-2017 IT OPS Management – House of Commons of Canada 2017 – present Contributors About the author Carl-Hugo Marcotte has been developing, designing, and architecting web applications professionally since 2005. He wrote his first line of code at about 8 years old and has been a computer enthusiast since. He holds a Bachelor's degree in Computer Science from Université du Québec à Trois-Rivières. After working at a firm for a few years, he became an independent consultant, where he developed projects of different sizes for SMEs and educational institutions. He is passionate about software architecture, C#, ASP.NET Core, and the web. He loves to share his knowledge, which led him to teaching programming; blogging; and creating, maintaining, and contributing to multiple open source projects. I want to thank everyone who supported me during my journey into the world of authoring, especially my other half and partner in life, Cathie, who is always there no matter the idea I pursue. About the reviewers Will Marcouiller is the founder and current CEO of Société Groupe Conseil WMI. Since its beginnings, WMI has partnered worldwide with clients of all sizes, from its initial focus on small-and medium-sized enterprises (SMEs) to international corporations, to optimize business processes through the application of continuous improvement concepts combined with the usage of cutting-edge technologies. WMI endeavors to deliver the highest quality integrated software to its clients in fields such as insurance, manufacturing, real estate, transportation, and ministries/governmental organizations. In addition to helping the clients of WMI achieve their objectives, Will has worked to educate the next generation of programmers by teaching in private colleges. David Guida is a software engineer with more than 15 years of professional experience in different domains, including healthcare, finance, and large-scale e-commerce. He is a Microsoft MVP on Developer Technologies and a member of the .NET Foundation. He regularly writes articles on his blog and on other platforms as well, such as DZone and Dev.to. When he is not busy coding or looking for the next book to read, you can find him in his kitchen baking cakes. Packt is searching for authors like you If you're interested in becoming an author for Packt, please visit authors. packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea. Table of Contents Preface Section 1: Principles and Methodologies 1 Introduction to .NET What is a design pattern? 5 .NET 5 versus .NET Standard 12 Anti-patterns and code smells 6 Visual Studio Code versus Visual Studio versus the command-line interface (CLI) 13 Anti-patterns 6 Technical requirements 17 Code smells 7 Summary 18 Understanding the Questions 18 web – Request/Response 8 Further reading 18 Getting started with .NET 11 .NET SDK versus runtime 11 2 Testing Your ASP.NET Core Application Overview of automated testing How to organize your tests 31 and how it applies to ASP.NET How is it easier? 34 Core 20 Summary 36 Test-driven development (TDD) 21 Questions 37 Testing made easy through ASP. Further reading 37 NET Core 23 How do you create an xUnit test project? 24 Basic features of xUnit 24

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.