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

Digital Literacy Computer Basics Computer Languages Fundamentals of Computer Languages

Lower level languages are more user friendly than higher but yet when i put that in it says it is incorrect. Please help

:(

3 Answers

Sergey Podgornyy
Sergey Podgornyy
20,660 Points

Yes, you are wrong. Lower level languages are lower to machine language and people much harder to understand them.

For example, this is code of Assembly

fib:
    mov edx, [esp+8]
    cmp edx, 0
    ja @f
    mov eax, 0
    ret

    @@:
    cmp edx, 2
    ja @f
    mov eax, 1
    ret

    @@:
    push ebx
    mov ebx, 1
    mov ecx, 1

    @@:
        lea eax, [ebx+ecx]
        cmp edx, 3
        jbe @f
        mov ebx, ecx
        mov ecx, eax
        dec edx
    jmp @b

    @@:
    pop ebx
    ret

See, it's really hard to read and understand. Compare this with the same function in C:

unsigned int fib(unsigned int n)
{
    if (n <= 0)
        return 0;
    else if (n <= 2)
        return 1;
    else {
        unsigned int a,b,c;
        a = 1;
        b = 1;
        while (1) {
            c = a + b;
            if (n <= 3) return c;
            a = b;
            b = c;
            n--;
        }
    }
}
Bryan Peters
Bryan Peters
11,996 Points

Low-level languages like Assembly are the most direct way to talk to the processor but can seem much more technical and cryptic syntax. High-level languages are often based or built off of low-level languages and provide much easier-to-read syntax.

Stephanie Weber
Stephanie Weber
16,657 Points

Higher level languages are actually more USER friendly while lower level languages are more MACHINE friendly. Higher level languages tend to match more naturally to how humans think, write, and understand concepts. Lower level languages are easier for the computer to understand because they're closer to machine language. That's why there tend to be more steps involved for a human when writing in lower level languages. The higher level languages do all that work under the hood so humans don't have to.

changed from comment to answer