I’ve Cracked the Code, Please Call Tech Support- Episode 21, The Holiday Special

Break time! This class has been going hard since September, so having a couple of weeks to recuperate and reset is a welcome respite. Coding is great, but you’ve got to listen to your body sometimes and get rest to avoid burnout.

  1. What’s the difference between operational and programmer errors?

Operational errors are errors with the normal operation of a program, while a programmer error is a bug- something that the programmer has goofed. The thing is, though, operational errors are programmer errors- it’s the wrong way to go about what you want to do.

2. What is ‘event-driven’ programming?

As per EdgeTechAcademy.edu, event-driven programming is “when a program is designed to respond to user engagement”. Basically, if a user interacts with our design (pushing a button, for example), it’s designed to respond to said input.

3. What are ‘worker processes’?

A worker process is one that processes a request that our application receives, and in turn, sends a response to the requester. If a user requests a list of products, the worker process will receive the request. If everything checks out, the process will then send the list to the user.

4. Describe how Node.js can be made more scalable.

Shout out to FreeCodeCamp.org for this information!

There are three main things that we can do to make our projects scalable in Node.js: Cloning, Decomposing, and Splitting.

Cloning is the practice of cloning the same application multiple times and having each instance handling part of the load.

Decomposing is having multiple, different applications with different code bases, or even their own user interfaces. This allows everything to be run by a series of microservices, rather than one large application.

Splitting takes one application and divides it into multiple instances, where each instance is only responsible for a part of the application’s data.

5. Explain global installation of dependencies.

According to NodeJS.org, global installations should be avoided when you can, just like global variables. If you’re installing something that you want to use in your shell, such as on your command line, then (and only then) install it globally.

6. Explain RESTful Web Service.

RESTful Web Services are built to utilize standardized structure and language in order to accomplish tasks. REST stand for Representational State Transfer, and using standardized commands (like PUT, GET, POST, and DELETE) requests for information can be made and received.