Verleger: 8

57209
Wird geladen...
E-BOOK

Test-Driven Development. Podstawy

Rob Myers

Techniki i wskazówki tworzenia wysokiej jakości kodu, który jest łatwy w utrzymaniu. Sterowane testami tworzenie oprogramowania (TDD) to nie tylko sposób na testowanie kodu, ale całościowa metoda tworzenia oprogramowania: sposób myślenia o kodzie, sam proces pisania kodu oraz sposób ciągłej interakcji z kodem tworzonym przez zespół. Podręcznik Test-driven development prowadzi Czytelników przez proces pisania testów przed kodem, który daje gwarancję, że każda funkcja zostanie jasno zdefiniowana, dokładnie zweryfikowana i będzie gotowa do sprostania zmieniającym się potrzebom biznesowym. Książka ta pokazuje, jak TDD może zmienić proces tworzenia oprogramowania, ograniczając liczbę kosztownych błędów i umożliwiając zespołowi niezawodne dostarczanie wartości. Dzięki temu będzie mniej usterek i mniej troski o zakłócenie działania istniejących funkcji podczas wdrażania nowych. Programiści mogą śmiało przekształcać wewnętrzną strukturę kodu, aby dostosować go do nowych funkcji, i poświęcać mniej czasu na usuwanie błędów. Dzięki technikom i praktycznym przykładom zawartym w tej książce TDD staje się przystępne zarówno dla programistów, jak i menedżerów oraz właścicieli produktów. Dowiecie się, jak stworzyć sieć zabezpieczeń w postaci zautomatyzowanych testów, które chronią Waszą inwestycję, przyspieszają wdrażanie i umożliwiają śmiałe wprowadzanie innowacji - niezależnie od tego, czy korzystacie z istniejących systemów czy nowych technologii. Przyjmując podejście oparte na testach, zdobędziecie umiejętności potrzebne do tworzenia oprogramowania, które nie tylko jest niezawodne dzisiaj, ale także odporne na przyszłe zmiany. - Opanowanie podstawowego procesu TDD opartego na zasadzie "Red, Green, Refactor", aby tworzyć iteracyjnie oprogramowanie zorientowane na jakość. - Tworzenie i rozszerzanie zachowania na podstawie jasnych, możliwych do wykonania specyfikacji. - Projektowanie z uwzględnieniem wyjątkowych przypadków i warunków brzegowych, aby uniknąć kosztownych niespodzianek. - Utrzymywanie sprawnego i łatwego w utrzymaniu zestawu testów dzięki sprawdzonym, długoterminowym strategiom. - Wykorzystywanie dublerów testowych do izolowania zależności i zapewniania szybkości oraz precyzji testów. - Zastosowanie technik TDD w istniejących kodach źródłowych, dzięki czemu stare oprogramowanie stanie się łatwiejsze do testowania i bardziej niezawodne. - Zrozumienie korzyści biznesowych wynikających z pełnego wdrożenia TDD: mniej błędów, szybsze wprowadzanie nowych funkcji i większa elastyczność. - Poznanie sposobu, w jaki zasady TDD są stosowane w różnych językach programowania, środowiskach programistycznych i nowoczesnym tworzeniu sztucznej inteligencji opartej na agentach. Książka pozwala na wykonanie praktycznego kroku w kierunku zmniejszenia liczby błędów i płynniejszych wdrożeń, zgłębiając TDD we własnym tempie dzięki konkretnym przykładom i wskazówkom, które naprawdę przydadzą się w praktyce. Rob Myers to doświadczony programista i instruktor z ponad pięćdziesięcioletnim stażem. Szkolił i doradzał zespołom na całym świecie w zakresie TDD i praktyk Agile, pomagając organizacjom różnej wielkości osiągnąć trwałą doskonałość w tworzeniu oprogramowania.

57210
Wird geladen...
E-BOOK

Test-Driven Development w C# i .NET. Tworzenie wysokiej jakości kodu w architekturze DDD za pomocą znanych narzędzi i bibliotek

Adam Tibi

Spośród wielu koncepcji tworzenia oprogramowania na szczególną uwagę zasługuje model programowania sterowanego testami - TDD. Zastosowanie podejścia TDD ułatwia utrzymanie wysokiej jakości kodu. Technika ta opiera się na dodawaniu funkcjonalności do produktu dopiero po utworzeniu i przeprowadzeniu testów jednostkowych. TDD coraz częściej jest wyborem szanowanych firm programistycznych. W tej praktycznej książce przedstawiono zasady TDD na rzeczywistych przykładach z użyciem popularnych frameworków, takich jak ASP.NET Core i Entity Framework. Po zapoznaniu się z solidnym wprowadzeniem do koncepcji TDD dowiesz się, jak można używać Visual Studio 2022 do tworzenia aplikacji internetowej z wykorzystaniem Entity Framework, a także baz danych SQL Server i Cosmos DB. Nauczysz się też korzystać z różnych wzorców, takich jak repozytorium, usługi i budowniczy. Ponadto omówiono tu architekturę DDD i inne najlepsze praktyki stosowane podczas tworzenia oprogramowania, w tym reguły SOLID i wskazówki FIRSTHAND. Nie zabrakło przydatnych uwag o biznesowych aspektach podejścia TDD. W książce między innymi: testy jednostkowe i mechanizm wstrzykiwania zależności NSubstitute: imitacje i dublery używane podczas testów zastosowanie TDD dla ASP.NET API, Entity Framework i baz danych tworzenie potoków ciągłej integracji za pomocą GitHub zaawansowane scenariusze używania imitacji korzyści z wdrażania podejścia TDD przez zespoły i firmy TDD wprowadza dobre praktyki i doskonali programistę!

57211
Wird geladen...
E-BOOK

Test-Driven Development with C++. A simple guide to writing bug-free Agile code

Abdul Wahid Tanner

Modern, standard C++ is all that is needed to create a small and practical testing framework that will improve the design of any project. This allows you to think about how the code will be used, which is the first step in designing intuitive interfaces. TDD is a modern balanced software development approach that helps to create maintainable applications, provide modularity in design, and write minimal code that drastically reduces defects. With the help of this book, you'll be able to continue adding value when designs need to change by ensuring that the changes don't break existing tests.In this book, you will use test-driven development (TDD) to gain practical skills by writing a simple testing framework and then using it to drive the design of a logging library. The book will help you enhance your software development skills with test cases. You'll understand how to design and implement test cases. The chapters will also show you how to utilize the TDD approach to be more productive in software development than attempting to code in large unstructured steps.By the end of this book, you'll have gained knowledge of TDD and testing and also built a working logging library with unique features not found in other libraries.

57212
Wird geladen...
E-BOOK

Test-Driven Development with Java. Create higher-quality software by writing tests first with SOLID and hexagonal architecture

Alan Mellor

Test-driven development enables developers to craft well-designed code and prevent defects. It’s a simple yet powerful tool that helps you focus on your code design, while automatically checking that your code works correctly. Mastering TDD will enable you to effectively utilize design patterns and become a proficient software architect.The book begins by explaining the basics of good code and bad code, bursting common myths, and why Test-driven development is crucial. You’ll then gradually move toward building a sample application using TDD, where you’ll apply the two key rhythms -- red, green, refactor and arrange, act, assert. Next, you’ll learn how to bring external systems such as databases under control by using dependency inversion and test doubles. As you advance, you’ll delve into advanced design techniques such as SOLID patterns, refactoring, and hexagonal architecture. You’ll also balance your use of fast, repeatable unit tests against integration tests using the test pyramid as a guide. The concluding chapters will show you how to implement TDD in real-world use cases and scenarios and develop a modern REST microservice backed by a Postgres database in Java 17.By the end of this book, you’ll be thinking differently about how you design code for simplicity and how correctness can be baked in as you go.

57213
Wird geladen...
E-BOOK

Test-Driven Development with PHP 8. Build extensible, reliable, and maintainable enterprise-level applications using TDD and BDD with PHP

Rainier Sarabia

PHP web developers end up building complex enterprise projects without prior experience in test-driven and behavior-driven development which results in software that’s complex and difficult to maintain. This step-by-step guide helps you manage the complexities of large-scale web applications. It takes you through the processes of working on a project, starting from understanding business requirements and translating them into actual maintainable software, to automated deployments.You’ll learn how to break down business requirements into workable and actionable lists using Jira. Using those organized lists of business requirements, you’ll understand how to implement behavior-driven development (BDD) and test-driven development (TDD) to start writing maintainable PHP code. You’ll explore how to use the automated tests to help you stop introducing regressions to an application each time you release code by using continuous integration.By the end of this book, you’ll have learned how to start a PHP project, break down the requirements, build test scenarios and automated tests, and write more testable and maintainable PHP code. By learning these processes, you’ll be able to develop more maintainable, and reliable enterprise PHP applications.

57214
Wird geladen...
E-BOOK

Test-Driven iOS Development with Swift 4. Write Swift code that is maintainable, flexible, and easily extensible - Third Edition

Dr. Dominik Hauser

Test-driven development (TDD) is a proven way to find software bugs early. Writing tests before you code improves the structure and maintainability of your apps. Using TDD, in combination with Swift 4's improved syntax, means there is no longer any excuse for writing bad code.This book will help you understand the process of TDD and how to apply it to your apps written in Swift. Through practical, real-world examples, you’ll learn how to implement TDD in context. You will begin with an overview of the TDD workflow and then delve into unit-testing concepts and code cycles.You will also plan and structure your test-driven iOS app, and write tests to drive the development of view controllers and helper classes. Next, you’ll learn how to write tests for network code and explore how the test-driven approach—in combination with stubs—helps you write network code even before the backend component is finished.Finally, the book will guide you through the next steps to becoming a testing expert by discussing integration tests, Behavior Driven Development (BDD), open source testing frameworks, and UI Tests (introduced in Xcode 9).

57215
Wird geladen...
E-BOOK

Test-Driven iOS Development with Swift. Create fully-featured and highly functional iOS apps by writing tests first

Dr. Dominik Hauser

Test-driven development (TDD) is a proven way to find software bugs early. Writing tests before your code improves the structure and maintainability of your app. Test-Driven iOS Development with Swift will help you understand the process of TDD and how it impacts your applications written in Swift. Through practical, real-world examples, you’ll start seeing how to implement TDD in context. We will begin with an overview of your TDD workflow and then deep-dive into unit testing concepts and code cycles. We will showcase the workings of functional tests, which will help you improve the user interface. Finally, you will learn about automating deployments and continuous integration to run an environment.

57216
Wird geladen...
E-BOOK

Test-Driven iOS Development with Swift. Write maintainable, flexible, and extensible code using the power of TDD with Swift 5.5 - Fourth Edition

Dr. Dominik Hauser

Test-driven development (TDD) is a proven way to find software bugs earlier on in software development. Writing tests before you code improves the structure and maintainability of your apps, and so using TDD in combination with Swift 5.5's improved syntax leaves you with no excuse for writing bad code.Developers working with iOS will be able to put their knowledge to work with this practical guide to TDD in iOS. This book will help you grasp the fundamentals and show you how to run TDD with Xcode. You'll learn how to test network code, navigate between different parts of the app, run asynchronous tests, and much more. Using practical, real-world examples, you'll begin with an overview of the TDD workflow and get to grips with unit testing concepts and code cycles. You'll then develop an entire iOS app using TDD while exploring different strategies for writing tests for models, view controllers, and networking code. Additionally, you'll explore how to test the user interface and business logic of iOS apps and even write tests for the network layer of the sample app.By the end of this TDD book, you'll be able to implement TDD methodologies comfortably in your day-to-day development for building scalable and robust applications.