Day 35: Adding Model Data to View Renders

Continued working on the inventory management app. I have been side tracked a lot lately but I was able to add some more of the database calls to each controller. This was done using the mongoose ODM. I still have a bunch of routes to cover but at least I am making some progress. My days might continue to be hectic for a while so I just have to adjust to the new normal and do the best I can.

One thing that I have noticed with all my current chaos is that my notes have been extremely valuable. I jump around between projects sometimes and the result of that is I may be working with different code stacks. Sometimes I solve a unique problem and would like to reference that solution. Having code snippets in my notes with descriptions help me get what I want quickly. So now when I jump between projects and see a problem, I more often than not have a few code snippets that I can use to get me going. Whenever I come across a useful solution I try my best to add it to my notes. Now I just need to make sure I am committing the changes often in Git.

TLDR;

Okay, so here are the highlights of what I did:

  • shell scripting -> Added some notes on using exclusion flags and patterns in the find and grep commands. Being able to exclude directories is great because I rarely want to search through my node_modules folder but they exist everywhere LOL. Now I just need to learn how to exclude folders/directories when using the cp command. Step by Step.
  • Practice -> Continued working on the Inventory Management Application project from The Odin Project. Updated the home route to pull all the record counts for each of the collections in my database.

Excluding a File From a Search with find

find . -iname *gulp* ! -path **/*/node_modules/*

This excludes any node_modules directory from my search. This a super useful exclusion. I used this a work.

Exclude Directories From Searches

grep -ir --exclude-dir=node_modules --include=package.json "typescript" .

--exclude-dir=NAME_OF_DIRECTORY -> I believe this is a directory name pattern and not like what I need to do with the find -path command --include=NAME_OF_FILE -> I believe this is a file name pattern and not like what I need to do with the find -path command

Goal For Round 8 of the #100DaysofCode Challenge

This is my eighth round of the “#100daysofcode” challenge. I will be continuing my work from round five, six, and seven into round eight. I was working through the book “Cracking the Coding Interview” by Gayle Laakmann McDowell. My goal was to become more familiar with algorithms and data structures. This goal was derived from my goal to better understand operating systems and key programs that I use in the terminal regularly e.g. Git. This goal was in turn derived from my desire to better understand the fundamental tools used for coding outside of popular GUIs. This in turn was derived from my desire to be a better back-end developer.

I am currently putting a pause on the algorithm work to build some backend/full stack projects. I primarily want to improve my skills with the back-end from an implementation perspective. I have improved tremendously in terminal and CLI skills but I lost focus due to how abstract the algorithm concepts got. I wanted to work on things that were more tangible until I can get to a position where I could directly benefit from improving my algorithm skills and theoretical knowledge. So that’s the focus right now. Build my backend skills and prove my full stack capabilities by building some dope projects.

Again, I still have no idea if my path is correct but I am walking down this road anyways. Worst case scenario I learn a whole bunch of stuff that will help me out on my own personal projects. Best case scenario I actually become one of those unicorn developers that go on to start a billion dollar company… You never know LOL.