Codecast: Create a RubyGem 42: Implement the DiceSet class

Опубликовано: 29 Сентябрь 2024
на канале: Stateless Code
4
2

Episode 42: Dice, the Universe and Everything

This is the 42nd video in the NerdDice create a RubyGem series. In this video, Mike creates and implements the DiceSet class so that the specs in the previous video pass.

This video covers:
00:00:12 Introduction
00:01:06 Create the DiceSet class and get past the uninitialized constant error
00:02:47 Start writing the initialize method get our first green specs
00:06:46 Implement initialize options shared by the Die class
00:07:52 Create dice array with Die objects
00:12:28 Implement total method and add bonus to initialize
00:16:44 Fix bugs in spec to fix failures (was creating 6d3 instead of 3d6). Whole suite passing.
00:18:47 Review code coverage
00:20:17 Write specs for error scenarios
00:27:20 Fix RuboCop issues and refactor
00:32:10 Review, commit, rebase, push, update backlog


This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.