Learn Go with Tests
معرفی کتاب «Learn Go with Tests» نوشتهٔ Chris James، منتشرشده توسط نشر 2022 در سال 2022. این کتاب در فرمت epub، زبان انگلیسی ارائه شده است.
\* Explore the Go language by writing tests \* Get a grounding with TDD. Go is a good language for learning TDD because it is a simple language to learn and testing is built-in \* Be confident that you'll be able to start writing robust, well-tested systems in Go Install Go - Set up environment for productivity. Hello, world - Declaring variables, constants, if/else statements, switch, write your first go program and write your first test. Sub-test syntax and closures. Integers - Further Explore function declaration syntax and learn new ways to improve the documentation of your code. Iteration - Learn about for and benchmarking. Arrays and slices - Learn about arrays, slices, len, varargs, range and test coverage. Structs, methods & interfaces - Learn about struct, methods, interface and table driven tests. Pointers & errors - Learn about pointers and errors. Maps - Learn about storing values in the map data structure. Dependency Injection - Learn about dependency injection, how it relates to using interfaces and a primer on io. Mocking - Take some existing untested code and use DI with mocking to test it. Concurrency - Learn how to write concurrent code to make your software faster. Select - Learn how to synchronise asynchronous processes elegantly. Reflection - Learn about reflection Sync - Learn some functionality from the sync package including WaitGroup and Mutex Context - Use the context package to manage and cancel long-running processes Intro to property based tests - Practice some TDD with the Roman Numerals kata and get a brief intro to property based tests Maths - Use the math package to draw an SVG clock Reading files - Read files and process them Templating - Use Go's html/template package to render html from data, and also learn about approval testing Generics - Learn how to write functions that take generic arguments and make your own generic data-structure Revisiting arrays and slices with generics - Generics are very useful when working with collections. Learn how to write your own Reduce function and tidy up some common patterns.
دانلود کتاب Learn Go with Tests