yichuandoris / MI-449-SS17-740-js-server-intro-jtrO3q

0 stars 0 forks source link

Project Feedback #1

Open yichuandoris opened 7 years ago

yichuandoris commented 7 years ago

@egillespie Can you take a look at this? It's hosted here and meets the following criteria:

egillespie commented 7 years ago

Outstanding work, @yichuandoris! Your site works great and the code looks good too.

I have one recommendation to help make your code easier to read. If one line of code is so long that you have to scroll to read the whole line, it's okay to write the code on multiple lines.

For example, this line of code:

response.end('<a href="/">Home</a>' + '<h1>404 Error. Page Not Found!</h1>' + 'The requested URL ' + '<strong>' + request.url + '</strong>' + ' was not found on this server.' + '<p>Thatโ€™s all we know.</p>')

Could be written in multiple lines by moving each string onto its own line, like this:

response.end(
  '<a href="/">Home</a>'
  + '<h1>404 Error. Page Not Found!</h1>'
  + 'The requested URL <strong>'
  + request.url
  + '</strong> was not found on this server.'
  + '<p>Thatโ€™s all we know.</p>'
)

Try updating all of your long lines of code like this, then push them to GitHub and I'll take another look.

Thanks! ๐Ÿฆ‰

yichuandoris commented 7 years ago

Hi Erik, Thanks for the recommendation. I've updated those long lines and git push to GitHub as well as Heroku. Kindly have another look. Thank you. - Doris

egillespie commented 7 years ago

Looks good! Thanks for touching that up. :shipit: