Concepts Vs Syntax

Concepts Vs Syntax

14/04/2020 0 By Laurence

When we first learn to code, we often want to know all of the syntax of a particular language.  This is important … we do need to know the syntax.

But after a while we realise that you probably can’t know all of the syntax across the languages you use.

It is also just as important to understand the concepts that syntax is associated with. Concepts are like tools or resources.

For example, if we wanted to make a number increase by a set amount, under a certain condition, then we would need to understand the concept of “increment” or (conversely) decrement.

If you understand the concept, then you know what you need to do to create a solution.  Then you can work on getting the syntax right. Or you can work on exploring variations of concepts and syntax.

Concepts and syntax go together.

When starting out, and learning syntax always make sure you understand the concepts behind what the syntax is doing.

Explain your way through the syntax / code that you have written or copied or adapted as a way of understanding what is going on in the code.