Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Build a Simple Dynamic Site with Node.js HTTP Methods and Headers Sending Content Type Headers in Node.js

Stephen Limmex
Stephen Limmex
32,604 Points

Is is a best practice to copy code from Wikipedia? Are there not other, more reliable sources available?

Is is a best practice to copy code from Wikipedia? Are there not other, more reliable sources available?

What would be the best source for looking up the text/html code?

3 Answers

Ethan Roode
Ethan Roode
6,675 Points

I like to use www.stackoverflow.com . You will find better sources from people who have lots of experience coding.

Marco Flores
Marco Flores
7,971 Points

This is a source from IETF:

https://www.iana.org/assignments/media-types/media-types.xhtml

The Mozilla MDN is where I usually look up information related to HTTP, HTML, etc.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types

The 'code' he copies is so basic it doesn't matter where you get it from. 1+1 = 2 is the same equation whether it's in a college algebra textbook or a pre-school cartoon book.