Release 0.1 Complete!

Guys, gals and non binary pals we have done it! Release 0.1 version 0.0.0 is complete and I have to say, it wasn’t as bad as I thought. Let me run you through what I did.

So if you read the last story I told you about the tutorial I found online. If you haven’t seen that story or the tutorial then check it out, it’s great. Anyway, picking up from where we left off, I managed to get arguments built in. I also got chalk and for colours. It was now a matter of putting it all together and I did this through 4 arrays

First Array

This would allow me to separate each line into a single element in an array where it would be passed into the next array.

Second Array

Third Array

Fourth and Final Array

So in this block try and catch block we check the head if the status returns 200 which means good which we mark in bright green. If it returns 400 or 404 we display that in the console as a bright red bad, any other error code returns a unknown and timeouts, DNS and other errors will be in a dark red. It may take a while at the end as it waits a maximum of 13 seconds before making things as a timeout. This value can be changed if you download the file but you may get more timeout errors on links that would normally be good.

lFinder CLI working

And that’s pretty much it for the Release 0.1! You can find it here on my github if you wish to try it out yourself. My next story will be about how me and my partner for lab 0.1 tried to debug each other’s release 0.1. Thanks for tuning in again! And I will see you soon.

--

--

Student in software development at Seneca college, Ontario Canada. Primarily going to talk about programming stuff but may talk about other hobbies here.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alexander Hugh

Student in software development at Seneca college, Ontario Canada. Primarily going to talk about programming stuff but may talk about other hobbies here.