• Projects
  • About
  • Mailing List
  • Instagram
  • Blog

David Mahfouda

  • Projects
  • About
  • Mailing List
  • Instagram
  • Blog

RC3

  1. Took a node tutorial that involved spinning up an Express server and MongoDB — I didn’t really finish

  2. Realized the node is a “runtime environment” — which basically means I can call node from my console to run javascript — so I used this to try to read the bible.txt file I am parsing // it didn’t work

  3. Paired with Douglass and made a lot of progress on Advice Column God

    • Was able to get fs.readFile working (it required an err argument as part of the callback)

    • watched Douglass write a reduce function to quickly find the longest word in a string

    • wrote a json object to a json file (this is our primary data structure for the ask g-d project) we did the variable assignment rigth from the writeFile function!

    • Douglass suggested I use the getElementById function only once, and then use variable names thereafter

    • Objects should be defined with const to protect them from being completely overriden, they can still be modified

    • Douglass also showed me how to use replace & regex on strings in javascript, which was powerful & useful

    • We ran into some issues with our textarea object — basically the inner html was set to whitespace bc I had space between my text area tags

Wednesday 09.26.18
Posted by David Mahfouda
Newer / Older

Powered by Squarespace.