I spent the last two days trying to figure out why I couldn’t access my req.params in my Express.js router middleware. I finally figured it out! const router = express.Router({ mergeParams: true }); I needed to add { mergeParams: true } when I call the Router.
I just finished the Warbler (Twitter-like app) project from the Colt Steele/Udemy Advanced Javascript Bootcamp. I did it so that I could learn enough about authentication and authorization to finish off my cryptotracker.pro site. I learned a lot, now it is just a matter of getting the crypto site running. I think it there is […]
I am working on a finishing up a project from my bootcamp that I didn’t get fully deployed. It is an app to teach people about cryptocurrencies and allow them to track cryptos they are interested in. I am working with a MongoDB backend for storing the cryptos in a person’s list. Here I’m renaming […]
I’m reviewing React state management, which I still find a bit confusing. This exercise comes from Colt Steele’s Advanced Coding Bootcamp on Udemy. The goal of this exercise is to list four instructors and their hobbies, and with a setTimeout of 5000ms, randomly remove one of the instructor’s hobbies. I randomly generate a number of […]
I am doing a review of React on the Colt Steele Advanced Bootcamp program on Udemy. First I create a single component / single file React app. In this instance, I load in the React, ReactDOM, and ReactDOMFactories libraries. I instantiate the MyInfo class on line 15. On lines 17, 18 and 23, I have […]
ES2107 has new methods for handling promises: async & await. Due to the asynchronous nature of Javascript, when I call an api, it will likely return the api data last, even if it is called at the beginning of the code. I’m taking this example from Colt Steele’s Advanced JS Bootcamp on Udemy. Return one movie from OMDB […]
I just finished The Web Developer Bootcamp by Colt Steele on Udemy. It was a good course, and it helped reinforce things I learned at the UCSD Ext. Coding Bootcamp. It also helped me fill in the gaps on things I hadn’t completely mastered. As our final project in the online Bootcamp, we created a […]
I’m giving a talk tomorrow night (May 23rd) at Fundamental JS on Array methods. Check out the Fundamental JS Meetup Site for details. I will cover the following: What is an array? What is a prototype? I will review four array methods map() forEach() reduce() filter() I will then show how create these methods […]
Wikipedia has the following to say about currying: In mathematics and computer science, currying is the technique of translating the evaluation of a function that takes multiple arguments (or a tuple of arguments) into evaluating a sequence of functions, each with a single argument. Currying is related to, but not the same as, partial application. […]
In this exercise, I will create my own map method – myMap(). According to MDN Developers Network, “The map() method creates a new array with the results of calling a provided function on every element in the calling array.” I have used the same sample data and functions as I did for the myForEach problem. […]