Flashback to My First PR... that Got Closed šŖ
Let me start with a confessionāmy very first PR was...closed! Yup, Iām talking about this pull request. Unfortunately, my pull request for freeCodeCamp's Developer Quiz Site got closed because I went MIA during midterms. Life got in the way, and I wasnāt able to finish what I started. Totally my fault. š
But hey, if life knocks you down, you bounce back stronger, right? Hacktoberfest 2024 is my chance to do just that, and Iām more prepared and determined this time!
The New Adventure Begins š ļø
This week, Iāve been diving into a new Hacktoberfest project called Terminal Cricket (yes, cricket in your terminal!). Here's the GitHub repo link and the issue Iāve been working on. The issue involved some fun tasks like adding a boundary, loading animations, and creating a game over screen with some ASCII art magic.
What I Worked On šļø
The first thing I tackled was adding a terminal boundary and cleaning up the terminal when entering the game. I also threw in a loading animation for fun. Who doesnāt love a little drama when loading, right?
Here's the process I followed:
-
Step 1: Clear the terminal and print the boundary. I created a neat function using Python's
os
module to clear the terminal and some nifty ASCII art to print a boundary. Simple, but satisfying. - Step 2: Add a loading animation to spice things up. I made use of a basic loop and time delays to give that āloading...ā feel.
While working on this, I realized how much Iāve grown since my first PR. Last time, I hesitated and kept overthinking the code. Now, Iām more confident in experimenting with things like loading animations and terminal effects. š
The Challenge šÆ
As I progressed, I hit a small bumpāthe project had two main.py
files. It was a bit confusing at first. I wasnāt sure if I should be making changes to both or just one. I made sure to ask the project owner for clarification to avoid messing up anything.
The learning? Always communicate with project owners, especially if you're working on someone else's code. Clarifying the project structure and expectations early saves a lot of trouble down the line.
Bat, Ball, and ASCII Art ā¾
A fun part of my contribution was adding a bat and ball ASCII art depending on whether the user chooses to bat or bowl. It was a blast to create, and it added a nice touch to the game experience. Iām excited to see if the project owner likes it!
def show_bat():
# ASCII art for bat
print("ASCII art of a bat displayed here!")
def show_ball():
# ASCII art for ball
print("ASCII art of a ball displayed here!")
The feedback from this feature might be the best part of this experienceāsometimes the simplest touches make the biggest impact!
What I Learned š
- Communication is key: I learned the hard way after my first PR was closed. This time, Iām staying in touch with the owner and waiting for feedback before submitting a pull request.
- Experimentation pays off: The code was not inherently hard, but it was something I hadn't done before. Adding visual elements like ASCII art made the project more interactive and engaging, which was a new experience for me.
Waiting for the Green Light š¦
Right now, I'm waiting for feedback from the project owner before I submit my full pull request. Iāve asked about the double main.py
files (you canāt be too careful!) and want to make sure Iām following the projectās guidelines before diving in deeper.
Reflection on My First PR š§
Letās rewind to my first PR disaster... The inactivity was a big miss on my part, but Iāve learned from it. This time, Iām determined to stay on top of things and keep contributing regularlyāeven during the madness of midterms! This blog is part of my accountability strategy.
What's Next? š®
Iāll be updating this blog every week with my progress. Will my new PR get merged, or will I face another learning curve? Stay tuned to find out! Iām also on the lookout for more issues to tackleālet's see what comes my way.
Links for the Curious:
Stay tuned for next weekās update where Iāll be sharing whether this PR got merged or if there were any changes needed! Fingers crossed š¤
Let me know what you think, and happy coding! š»
Top comments (0)