I’ve always been confused by the terms synchronous vs. asynchrous in Javascript, as they seem to mean just the opposite of what they would mean in the real world. I always thought that synchronous meant multiple things could happen at once, and asynchrous means only one thing can happen at a time. According to dictionary.com, […]
WordCamp LAX 2018
The Dating Game: Understanding Price Anchoring by Nathan Allotey nathanallotey.com/wclax || freelance jumpstart podcast Nathan talked about spending too much time with the client but not closing. He came to realize that, rather than giving people a yes/no option of using his services, he would use Price Anchoring to give them a few options to choose […]
React Router – Update Blocking
I was recently having a problem using React Router where my components would not update properly. Sometimes components can get out of sync with their current locations. I was able to solve this by wrapping my Redux connect function in a withRouter(). Link to article on update blocking.
Migraine Tracker – Create Backend
I have long suffered with migraines. Currently I track my daily migraines on an Excel spreadsheet, but I am going to create my own app to track them using the MERN stack Node, Express, MongoDB and Mongoose on the server. I will develop the client in React. npm init -y to create my package.json file […]
Javascript Closures
Closures are also known as lexical scoping. It is a result of functions that can nest, and functions that are values. The context of the inner function includes the scope of the outer function. The image below is taken from Crockford’s “The Good Parts of JavaScript and the Web” course on Front-End Masters (I watched […]
_.map – Javascript Problem
This is an exercise taken from the Javascript: From Fundamentals to Functional course by Bianca Gandolfo on FrontEnd Masters. The characters are taken from a game of Clue – a murder whodunit… Here I have recreated a map() method in a slightly different way. Instead of attaching it to the array prototype, I created it […]
_.forEach – Javascript Problem
This is an exercise taken from the Javascript: From Fundamentals to Functional course by Bianca Gandolfo on FrontEnd Masters. The characters are taken from a game of Clue – a murder whodunit… Here I have recreated a forEach() method in a slightly different way. Instead of attaching it to the array prototype, I created it […]
Crypto-Tracker Project v. 2.0
I have just finished v. 2.0 of CryptoTracker. I have the backend server done, and putting the finishing touches on the front-end. Most of the functionality is there, but I’m still working on formatting. On the home page, I have a chart and graphs that rely on an api call to cryptocompare.com. Crypto price charting […]
Killing Node Processes
If you are trying to start a server on a specific port and get an error saying the port is already in use, you can type “ps ax” in a bash terminal to get a list of process running. In this case I looked for the node processes. Then you simply type “kill” + the […]
Express Router – mergeParams
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.