Day 4: January 31, 2019

Today’s Progress: Finished coding my random card generator project! You click the “Your Daily Cards” banner and it gives you two random cards.
Thoughts: The idea for this came from daily tarot card apps and since you can use a deck of cards for tarot readings, I figured this would be an interesting take. If you want to know what the meaning of the cards are, I suggest doing your own research (but here’s a good primer!)

In regards to the code…I don’t know what it was about today but things went smoother. I went back and changed a bunch of things from the first attempt. My design was extremely convoluted. It worked but it wasn’t efficient. A few examples include:

  • Switching between using a CSS file and shoving style code in my HTML instead of choosing one or the other.
  • Leaving in failed commented out code instead of just deleting it.
  • aving weird var names that have nothing to do with what they are.

I think a lot of this comes from how I initially started coding with the whole project based system. I’m so used to “as long as it works” I forget to ask if it “works well”. To combat this I think I’m going to continue my JavaScript30 hiatus for a few more days and get some JS basics study in.

Key Takeaways From Day Four:

  • Don’t be afraid to delete that unnecessary code!
  • Inspect page on Google is available. Use it.
  • Working =/= Efficent

Link To Project:

Click Me!

Leave a Reply

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