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.
Watch video Codecast: Create a RubyGem 42: Implement the DiceSet class online without registration, duration hours minute second in high quality. This video was added by user Stateless Code 31 August 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4 once and liked it 2 people.