30-Day Coding Challenge
Days 10 & 11 - Setbacks and More Hacks I’ll Rarely Use
It ends on day 10. My consistency plummeted as I couldn’t write a single line of code or do anything related to programming.
It’s frustrating to see that this is how far I could go.
But is this it?
Setbacks are part of life. So, it’s normal.
I knew what matters is whether I’d go with the flow of doing nothing on day 11. And thankfully, I didn’t.
Because I coded today.
So, my 30-day challenge continues and I plan on hitting the mark. Since I missed a day, I’ll shift my end date forward by a day.
Nothing’s changed.
And today (Day 11), I discovered the use of Semicolons to run different operations in one line of code.
x = 10; y = 20; z = 30
print(x); print(y); print(z)
Why didn’t I come across this before?
That’s because I hadn’t seen any programmer use it.
And I can understand why.
After all, it reduces the readability of your code, especially when used frequently.
And I don’t enjoy going through crowded codes. It’s straight-up annoying.
So, I’d rather use multiple lines for different operations like this:
x = 10
y = 20
z = 30
print(x)
print(y)
print(z)
But who knows, it may come in handy in the future.
Day 12 approaches…