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 Node.js Basics (2014) Building a Command Line Application Preparation and Planning

jsdevtom
jsdevtom
16,963 Points

What is a high level solution?

This term keeps being mentioned but I have no idea what it means. I know what a solution is but what is a high level solution? Is there such a thing as a low level solution?

akak
akak
29,445 Points

Can you add some context? As my enrollment is currently paused I can't view the video. In what sentence it is used? About what task?

JS is a high level language, but that's probably not the answer. Also in JS we have higher level functions...

Or maybe it's just about making something more complicated in the future but now simplified for the example?

jsdevtom
jsdevtom
16,963 Points

@ akak. Thanks for your reply. The transcript is as follows:

During this project, 0:05 we'll employ a problem solving methodology known as the 4 P's of Problem Solving. 0:11 First preparation, where we understand the problem and 0:13 think of a high level solution. 0:15 This is a good time to look at the tools that are available for us to use. 0:21 Second, planning. 0:22 Where we actually plan out our solution. 0:25 This can be a high level, it doesn't need to go into too much detail. 0:29 Third, where we perform the thing that we're trying to do. 0:32 So we perform the required steps to our solution. 0:37 And then fourth, we perfect the solution. 0:41 Perfecting doesn't mean that the projects will be perfect when we get to the end of 0:44 the perfecting step, but we'll be incrementally improving the project.

1 Answer

akak
akak
29,445 Points

In that context high level solution is just a way of presenting solution that is abstracted from code.

Just like high-level languages are languages that are abstracted from machine code. In JS we don't write A000202 F8 SED, instead we write console.log('foo') and it gets compiled to binary and executed. We don't need to handle memory allocation and other stuff that we'd have in low level language.

So basicly when he is just saying that while planing you can use high level solution he means that at planning stage you can abstract from code, write everything in words and when you get to execution - that's when you rewrite your notes into code. You can write: "at this point show log info" instead of writing console.log('info').

jsdevtom
jsdevtom
16,963 Points

Thank you! :-)