Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

r?fzzzy r?kitcambridge Use express #430

Merged
merged 17 commits into from
May 28, 2015
Merged

r?fzzzy r?kitcambridge Use express #430

merged 17 commits into from
May 28, 2015

Conversation

ianb
Copy link
Contributor

@ianb ianb commented May 22, 2015

Fixes #410, gets rid of models.js and so fixes #361, and touches a bunch of the server here and there.

const express = require("express");
const bodyParser = require('body-parser');
const morgan = require("morgan");
const linker = require("./linker");
Copy link
Contributor

Choose a reason for hiding this comment

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

Why repeat const over and over instead of using the comma form?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't like the comma form, it's harder to edit and rearrange, each line doesn't stand on its own.

Copy link
Contributor

Choose a reason for hiding this comment

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

I disagree. The fact that each line doesn't stand on it's own is the advantage.

ianb added a commit that referenced this pull request May 28, 2015
@ianb ianb merged commit 73a4b6f into master May 28, 2015
@ianb ianb deleted the use-express-wip branch May 28, 2015 15:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider Express Refactor models.js
2 participants