By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: My Journey With the Connect Four Terminal Game | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > My Journey With the Connect Four Terminal Game | HackerNoon
Computing

My Journey With the Connect Four Terminal Game | HackerNoon

News Room
Last updated: 2025/04/07 at 7:22 PM
News Room Published 7 April 2025
Share
SHARE

My most recent project was the Connect Four terminal game. You can check this out here if you want. This project was supposed to improve my TDD (Test-Driven Development) skills, as I had to write tests for every step.

It was a loooong project, and in this article, I’m going to tell you why.

The TDD Lessons Before the Project

Before I got thrown into Connect Four, I had to go through a couple of lessons and exercises about TDD.

These lessons were actually pretty interesting. They explained:

One thing I really liked is that The Odin Project doesn’t force us to use TDD, instead, it just teaches how it works in detail so we can decide for ourselves whether we want to use it or not.

The principles of TDD were pretty clear to me from the start as The Odin Project explains them very clearly, and I was actually keen to try it out.

But at the back of my mind, I was a bit worried that it might stretch the time spent on each project… and, well, I wasn’t exactly wrong.

Starting the Project (And Why It Felt Hard at First)

So, I finished all the necessary lessons and started working on Connect Four.

At this stage in the Ruby course, the game itself wasn’t hard to implement.

The problem was:

Even now, as I’m writing this article while working on the Chess game, it’s still a bit hard to remember all the RSpec syntax.

Anyway! I quickly realized that the most important part of the process actually happens at the very beginning when thinking of test names.

That was the crucial moment when I had to figure out:

  1. What is this test going to check?

  2. What will the corresponding method actually do?

Once I figured that out, I wrote the basic test of course, struggling with RSpec syntax for a long time.

But then… BLINK – it’s green!

Awesome. Now, I can move on to the next test and method.

It took me some time I’d say around 3 weeks? Something like that.

But I must admit, by the end of this project, I had a much better understanding of this whole TDD “magic”.

The Moment It Clicked (Why TDD Is Worth It)

I realized that my project was MUUUCH BETTER thought out.

  • Less spaghetti code

  • Shorter, well-structured methods

  • Everything named properly

On top of that, I noticed I wasn’t wasting another week fixing bugs or refactoring half my code because I didn’t plan it properly from the start.

You know that moment when a tiny mistake messes up half your code, and you have to go back and rewrite a bunch of stuff?

Yeah, that barely happened this time.

Will I Keep Using TDD?

Yes.

I liked this project. I like TDD. And I’m definitely going to stick with it for my future projects.

Less troubleshooting. Easier to understand the code when coming back later. Just write tests in plain English, and you instantly know what your program is supposed to do.

It’s as simple as that.

The hardest part of all this is definitely RSpec—it just takes time to get used to:

  • Mocking
  • What to mock
  • When to mock

But honestly? The only way to get better at this is to just keep practicing until it becomes second nature.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Baby born after after mum had womb transplant in UK first
Next Article Scientists bring legendary animal back from the dead in first ‘de-extinction’
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Oracle looks to open up data access in the era of AI – News
News
This Refurbished Lenovo Chromebook Costs Less Than $100, While Supplies Last
News
From ‘Black Bag’ to ‘Nonnas,’ 10 movies you need to stream right now
Software
How to unblock ePorner for free
News

You Might also Like

Computing

Nvidia’s tailored-for-China H20 AI chip now available for pre-orders · TechNode

4 Min Read
Computing

Alibaba mulls sale of grocery retail chain Freshippo: report · TechNode

1 Min Read
Computing

China’s Chery reportedly forms standalone business unit in collaboration with Huawei · TechNode

1 Min Read
Computing

Xiaomi 15 smartphone set to debut with Snapdragon 8 Gen 4 in October · TechNode

1 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?