portermichael / portfolio

This is a portfolio project made to showcase blog posts and github work. I'm currently building a jekyll blog to replace this.
https://mike-porter-portfolio.herokuapp.com/
0 stars 0 forks source link

changed eaches to map and added reduce functionality to count # of e's #17

Closed portermichael closed 7 years ago

portermichael commented 7 years ago

This project included some count e functionality. The count e's did not take very long. I'd like to include other stats as well as sort of a fun thing to do. In total this took about 45 minutes. I did spend about two trying to get my article width columns to maintain the same height and gain a width of 100%. I was trying to make it very sequential and attempted to use setTimeout, but was not very successful.

The eCount function was generated on each individual article and all articles as a whole. For each individual article, eCount was generated and added as a property. For the articles as a whole, the array of articles was mapped to a match function counting the number of e's. The array result from that map was counted and all the articles were reduced to a single number.

I also wrapped my articleView and article js files into an IIFE.