1. Can you explain the purpose of each type of HTTP Request when using a RESTful web service?
  • RESTful web services heavily rely on HTTP by design. They use different HTTP methods to perform their job and uses HTTP response code to inform clients about success or failure of a particular…
  1. Tell me about a project you’re particularly proud of. What did you do that worked out well?
  • I proud of the check point 1 I did a month ago. This is the first server I build with express. …
  1. What’s the difference between operational and programmer errors?
  • Operational errors are part of everyday coding life and can happen in both development and in implementation. Operational errors don’t really have to do with having written “bad code”, it has more to do with process failure. Examples of this can be…
  1. How does Node.js handle child threads?
  • Node.js is a single-threaded language and uses the multiple threads in the background for certain tasks as I/O calls but it does not expose child threads to the developer.
  • But node.js gives us ways to work around if we really need to do some…
  1. What is “callback hell” and how can it be avoided?
  • Callback hell is when when you write JavaScript visually from top to bottom and there are a lot of callbacks that are not organized and it makes the code messy. It will make your code look like a pyramid. To…
  1. If a user attempts to create a resource that already exists — for example, an email address that’s already registered — what HTTP status code would you return?
  • 409 is the most appropriate response code here. Even though you are most likely returning 201 on success, you’re still POSTing to…
  1. What do you find challenging about coding?

Learning about routes and controllers are harder for to understand. Right now it’s hard for me navigate the folders. I know it’s a good way to organize our code. I’m willing to learn more about controllers and SQL.

2. Talk about a project…

  1. How do you organize your code? What are some suggestions you find on the web?

How I organize my code is by trying to keep everything in one directions, keep my rows separate and adding any notes where I may get confused
Some useful tips I found online are:
- Encapsulate…

  1. Write about something you learned this week.

This week we learned about APIs and Fetch APIs.

We use APIs for manipulating documents loaded into the browser. The most obvious example is the DOM (Document Object Model) API, which allows you to manipulate HTML and CSS — creating, removing and changing…

  1. Tell us about something you learned this week.

We learning about sorting algorithms. A sorting algorithm is an algorithm used to reorder items in a list or an array according to a specific requirement. For example, sorting algorithms can organize an array of items from smallest to largest.

An efficient…

Meng Fu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store