2015-03-30

TDD Tetris Tutorial #7: TGM Rotation Rules

This screencast series shows how to go through the TDD Tetris Tutorial where you can learn Test-Driven Development by at first writing code to pass pre-written tests, so that it will be easier to write your own tests when the time for it comes.

Replacing our previously written rotation algorithm with a simpler and more flexible implementation, so that we can change our game to use the rotation rules from Tetris: The Grand Master.

Download as MP4

Episode Archive

2015-03-29

TDD Tetris Tutorial #6: Rotating a Falling Piece

This screencast series shows how to go through the TDD Tetris Tutorial where you can learn Test-Driven Development by at first writing code to pass pre-written tests, so that it will be easier to write your own tests when the time for it comes.

More player controls. We implement rotating the falling pieces, including also support for wallkicks.

Download as MP4

Episode Archive

2015-03-28

TDD Tetris Tutorial #5: Moving a Falling Piece

This screencast series shows how to go through the TDD Tetris Tutorial where you can learn Test-Driven Development by at first writing code to pass pre-written tests, so that it will be easier to write your own tests when the time for it comes.

Time to put the player in control. We implement moving the falling pieces, within the bounds of available space on the game board.

Download as MP4

Episode Archive

2015-03-25

TDD Tetris Tutorial #4: Falling Pieces

This screencast series shows how to go through the TDD Tetris Tutorial where you can learn Test-Driven Development by at first writing code to pass pre-written tests, so that it will be easier to write your own tests when the time for it comes.

We have implemented falling blocks and rotatable pieces in isolation. Now let's put them together by implementing arbitrarily shaped falling pieces.

Download as MP4

Episode Archive

2015-03-23

TDD Tetris Tutorial #3: Rotating Tetrominoes

This screencast series shows how to go through the TDD Tetris Tutorial where you can learn Test-Driven Development by at first writing code to pass pre-written tests, so that it will be easier to write your own tests when the time for it comes.

With a generic piece rotation algorithm at hand, it'll be easier to implement rotating Tetris pieces.

Download as MP4

Episode Archive

2015-03-22

TDD Tetris Tutorial #2: Rotating Pieces of Blocks

This screencast series shows how to go through the TDD Tetris Tutorial where you can learn Test-Driven Development by at first writing code to pass pre-written tests, so that it will be easier to write your own tests when the time for it comes.

Another core feature of Tetris is that it's possible to rotate the pieces. Let's write a generic algorithm for rotating arbitrary shapes. That should bring us closer toward a game of Tetris.

Download as MP4

Episode Archive

2015-03-21

TDD Tetris Tutorial #1: Falling Blocks

This screencast series shows how to go through the TDD Tetris Tutorial where you can learn Test-Driven Development by at first writing code to pass pre-written tests, so that it will be easier to write your own tests when the time for it comes.

A core feature of Tetris is that there are pieces falling down. To start small, let's focus on pieces which consist of a single 1x1 block.

Download as MP4

Episode Archive

2015-02-11

Let's Code Jumi #351: NIO.2 Migration (Part 1)

Java 7 comes with a new file I/O API (NIO.2), which has numerous improvements over java.io.File. Upgrading to the new API is best done in small steps, the same way as when refactoring to remove primitive obsession.

Download as MP4

Episode Archive

2015-02-01

Let's Code Jumi #350: Java 7 Language Level

It turns out that changing a project's language level is not as simple as it seems. Changing Maven's settings on a per-module basis is easy, but IntelliJ IDEA 11 doesn't support compiling multiple modules with mixed language levels (IIRC, newer IDEA versions do support it).

Download as MP4

Episode Archive

2015-01-14

Let's Code Jumi #347: Bytecode Assertions (Part 1)

A too high Java class file version can break its consumers, so it's worth writing a test for. At the same time we can make it easier to write assertions for all class files in a JAR file.

Download as MP4

Episode Archive