LibCoder

Test Driven Development in Ruby: A Practical Introduction to TDD Using Problem and Solution Domain Analysis

1C Agda Ruby
Test Driven Development in Ruby: A Practical Introduction to TDD Using Problem and Solution Domain Analysis
Автор: Paranj Bala
Дата выхода: 2017
Издательство: Apress Media, LLC.
Количество страниц: 302
Размер файла: 2,8 МБ
Тип файла: PDF
Добавил: LibCoder
Оглавление
 ContentsAbout the AuthorAbout the Technical ReviewerForewordAcknowledgmentsIntroductionChapter 1: The BasicsTerminologyKataCoding KataDomainProblem DomainSolution DomainDomain ExpertDomain KnowledgeDefining the Problem Domain and the Solution DomainLearning TDDLearning by Coding KataLearning RetrospectiveIntent vs. ImplementationIntentImplementationIntent and ImplementationMusicLyricsHome PlanSeparate Intent from ImplementationSheep ExampleTest API ExampleBowling Game ExamplePrecision in Language and MeaningTests Are Executable DocumentationShift in Mental StateOverview of TDDTest Driven DevelopmentThe Five Steps of TDDFailing TestWriting a Failing TestMinimal ImplementationRefactoringSeparation of Intent from ImplementationPing Pong Pair Programming TechniqueBlack Box PerspectiveShift in System and Mental StatesImportance of DisciplineOvercoming DifficultyProblem-Solving SkillsFour Phases of Problem SolvingUnderstand the ProblemDevise a PlanCarry Out the PlanLook BackSubskills of Test Driven DevelopmentProblem Domain AnalysisSolution Domain AnalysisAlternative RepresentationsDivide and Conquer StrategyDesigning Test CasesSum a List of NumbersSequence of Test CasesStarter TestNext TestStory TestAssertionTest Driving CalculatorCanonical Test StructureGivenWhenThenArrange, Act, AssertCalculatorAdditionSubtractionCommon MistakesCommon Mistakes in the TDD CycleMistakes in Step OneMistakes in Step TwoMistakes in Step ThreeMistakes in Step FourMistakes in Step FiveBase ConversionProblem StatementProblem Domain AnalysisSolution Domain AnalysisAlgorithmCodeCode Reflecting Test DataMultiple AssertionsVowel CheckerForgetting to Test the Negative CaseNot Testing the Boundary ConditionsNot Updating the TestsImplementation-Aware TestsSummaryChapter 2: KatasFibonacci SequenceProblem StatementProblem Domain AnalysisSolution Domain AnalysisAssumptionsTest-Driven FibonacciFizz BuzzProblem StatementProblem Domain AnalysisSolution Domain AnalysisTest-Driven FizzBuzzNo if-else ConstraintNo if ConstraintImplementation-Independent TestsCrossing the System BoundaryMocking as a Design TechniqueAbstraction Levels in a SystemTesting Random BehaviorTesting Time-Dependent BehaviorSimulating User InputOpen Closed PrincipleDifference ReductionDefect LocalizationStackBasic StackTest Precisely and ConcretelyMake Your Code RobustThe Sieve of EratosthenesAlgorithmPrime FactorsProblem StatementProblem Domain AnalysisSolution Domain AnalysisSummaryChapter 3: Techniques in TDDObvious ImplementationFake It Till You Make ItTriangulationAdditionSum a List of NumbersProblem Domain AnalysisSolution Domain AnalysisInitial ConditionSteps to Solve the ProblemAlgorithm DescriptionAssumptionsTest CasesSolution Domain Analysis ReduxReductionProblem StatementExample....1Example....2Steps to Solve the ProblemIterative ConstructInitial ConditionsEuclidean AlgorithmTest-Driven GCDTransformation Priority PremiseRefactorings and TransformationsTransformation ListCounterProblem StatementProblem Domain AnalysisSolution Domain AnalysisSteps to Solve the ProblemAlgorithmLogical DesignSkeleton CodeTerminating ConditionInitial ConditionPseudo CodeTest-Driven CounterFactorialSummaryChapter 4: Importance of Test CasesProblem StatementProblem Domain AnalysisSolution Domain AnalysisAlgorithm DescriptionCodeSummaryChapter 5: Character-to-Number ConversionProblem StatementDiscussionSolution Domain AnalysisTest CasesSummaryChapter 6: Conway’s Game of LifeProblem StatementProblem Domain AnalysisAssumptionsSolution Domain AnalysisMoore NeighborhoodTest CasesTest-Driven Game of LifeApplication StatementRefactor SolutionCode ReviewSummaryChapter 7: Gilded RoseForm vs. StructureProblem StatementInitial SetupFormStructureDeMorgan’s LawsMaking Temporal Dependency ExplicitImproving the StructureExpress IntentTell-Don’t-Ask PrincipleInheritanceImplementing the New FeatureExpress Domain ConceptsRetrospectiveSummaryChapter 8: Dealing with Third-Party APIsSubscription PlanCreate a PlanDelete a PlanStripe CustomerSubscribe a Customer to a PlanTest-Driven Stripe LibraryIntegration TestsUnit TestsMake Your Code RobustSummaryChapter 9: Pair RankingProblem Domain AnalysisSolutionSummaryIndex

Описание

Ниже — практический обзор по теме «test».

You will carry out problem domain analysis, solution domain analysis, designing test cases, and writing tests first. Learn the basics of test driven development (TDD) using Ruby. These fundamental concepts will give you a solid TDD foundation to build upon. At the end of each chapter an exercise is given to reinforce the material. Test Driven Development in Ruby is written by a developer for developers.The concepts are first explained, then a coding demo illustrates how to apply the theory in practice. Complete with working files and code samples, you'll be able to work alongside the author, a trainer, by following the material in this book.

What You Will LearnCarry out problem domain analysis, solution domain analysis, designing test cases, and writing tests firstUse assertionsDiscover the structure of a test and the TDD cycleGain an understanding of minimal implementation, starter test, story test, and next testHandle refactoring using RubyHide implementation detailsTest precisely and concretelyMake your code robustWho This Book Is ForExperienced Ruby programmers or web developers with some prior experience with Ruby.

Если материал оказался полезен — сохраните страницу.

test ruby domain analysis driven development using problem

Частые вопросы

Можно ли скачать «Test Driven Development in Ruby: A Practical Introduction to TDD Using Problem and Solution Domain Analysis» бесплатно?

Да, «Test Driven Development in Ruby: A Practical Introduction to TDD Using Problem and Solution Domain Analysis» доступна для бесплатного скачивания на нашем сайте в формате PDF. Ссылка на файл находится на этой странице.

В каком формате и какого размера файл?

Книга предоставляется в формате PDF, размер файла 2,8 МБ.

Кто автор и когда вышла книга?

автор — Paranj Bala, издательство Apress Media, LLC., год выпуска 2017, 302 страниц.

О чём книга «Test Driven Development in Ruby: A Practical Introduction to TDD Using Problem and Solution Domain Analysis»?

Learn the basics of test driven development (TDD) using Ruby.

Похожие материалы