Skip to content

Michael Munsey HW2 submission#24

Open
munseym wants to merge 1 commit intopce-uw-jscript400:masterfrom
munseym:master
Open

Michael Munsey HW2 submission#24
munseym wants to merge 1 commit intopce-uw-jscript400:masterfrom
munseym:master

Conversation

@munseym
Copy link

@munseym munseym commented Jul 10, 2019

No description provided.

* **Question:** The above can be described as middleware. Describe what middleware is in your own words and how it differs from building a route.

* **Your Answer:**
* **Your Answer:** Middleware is a function that always runs if the code reaches that point. A route is only executed if the request matches the route function.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


* **Your Answer:**
* **Your Answer:** It is a dev dependency that can show you things in your code that you technically can do but probably shouldn't, such as use == when you should use ===. Comparable to FindBugs in Java.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent responses!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants