Skill Tree Activated

The quest to become an indie game developer

C#CodingTraining

Codeasy.net C# Beginner – Exact Time Validator

Day 45 #100DaysOfCode

I had to work on a program that would only accept a real time that was input by the user as hours and minutes.

Every time I thought I had it solved and checked my code, I was disappointed by constantly getting fail states. I must have re-written the program from scratch five or six times.

I finally achieved success by carefully going into my code and inserting test lines that would tell me exactly what the data was at every step of the algorithm I was trying to implement. When I noticed a weird state where I could change the data, but it wouldn’t register on the next loop I knew I had my answer! A few adjusted lines and it was done. Whew!

Leave a Reply

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