Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Digital Literacy

Jeniffer Valdez
Jeniffer Valdez
243 Points

Compiling

Can someone explain/clarify when a higher language needs to be compiled? Quiz questioned implied "Higher language have to be..." but I didn't get that take-away from the video. If it is a requirement, what makes it so? If no, what are the different scenarios in which a higher language would be required or not required to be compiled?

1 Answer

Steven Parker
Steven Parker
221,328 Points

There's basically two ways for code in a computer language to run.

You didn't provide a link to the lesson so I might be diverging a bit from the teaching here.

But one way for a program to run is to compile it, which converts it into machine code that the computer can execute directly. And the other way is it interpret it, where a program (which was already compiled) reads the language and performs the appropriate steps in the computer for it. So a higher-level language program must always be either compiled or interpreted. And it could be that the interpreted option may not have been discussed in the lesson so the correct quiz answer might only be "compiled".