Sign in

  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 request. REST stands for Representational State transfer and it uses HTTP to allow two systems to communicate via remote calls
  1. What’s a test pyramid? How can you implement it when talking about HTTP APIs?
  • The test pyramid is a concept developed by Mike Cohn. It’s essential point is that you…

  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. What I am did that is working well is that I am taking my time with it and I am allowing myself to change my ideas on it as I work along.
  1. How do you do testing, and what do you think about it? How would you improve QA?
  • I do a lot of my testing as a user. I know the…

  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, for example, when a server fails to connect to a database. Programmer errors are the infamous ‘bugs’ that we hear all about. Programmer errors occur when there are issues with the code itself; it can typically be solved by modifying the code somehow.
  1. What is ‘event-driven’ programming?
  • Event-driven programming is…

  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 work parallelly to our main single thread process.
  • Child Process in Node: The child_process module gives the node the ability to run the child process by accessing operating system commands.
  1. How can you listen on port 80 with Node?
  • What I do on my cloud instances is I redirect port…

  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 avoid callback hell, write better and cleaner code. Make your code shallow and easier to read. Give your functions names that are easy to understand and have a meaning.
  1. What are “stubs” in Node.js?
  • Stubs are test spies that can be used to alter a method or functions behavior.
  • Stubs…

  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 a resource which is described as a collection, and POSTing a duplicate email is definitely a conflict with “the current state of the resource” as a collection. You should return a response body with a description of the problem, and hyperlinks to help resolve the problem, if possible.
  1. Consider a…

  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 that disappointed you. What would you change?

In the past, I’ve ran into being stuck on a project. I wasn’t able to further educate myself or solve the problem. It taught me a lesson. I should of reached for more help and figure out all of my resources. I was…

  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 everything within one directory. …
- Separate raw data from derived data and other data summaries. …
- Separate the data from the code. …
- Use relative paths (never absolute paths). …
- Choose file names carefully. …
- Avoid using “final” in a file name. …

  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 HTML, dynamically applying new styles to your page, etc. Every time you see a popup window appear on a page or some new content displayed, for example, that’s the DOM in action. Find out more about these types of API in Manipulating documents.

The fetch API provides a JavaScript interface…

  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 sorting algorithm is important for optimizing the efficiency of other algorithms (such as search and compression algorithms).

Sorting algorithms are made up of a series of instructions. They take an array or list as an input, perform operations, and output a sorted array.

There are a number of popular sorting…

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