Syntax or semantics

Only in relation to this topic, what would I say is syntax?

Syntax is the arrangement of the code and its organization of file paths, class files and so on and forth.

What then is semantics? Semantics is the meaning of the code written.

Now we have gotten that out of the way, let’s start on biblical proportions….

In the beginning, there was darkness no way of organizing stuff or the code. Then God the Open community said let there be light order and there was light order.

Coding is done by each person in the manner that they prefer. That is they code in the manner that suits them best, or how they had learnt to program. Take spaghetti coding, for instance. Put anything, anywhere and if it works, then that is the end of the story.

Yet still, we have to remember we live in a society and if we want our code,  our legacy to survive us, we must code in a manner that others would easily come to terms with. Since we are all different we would most certainly code in different techniques.

Just like how we have languages with which to communicate with each other, programmers must have one way of putting their code together.  I am not saying become dummies and follow someone’s lame ass way of programming. Be unique and stick with your own logic.

That is what makes you special after all. In the same way there are different ways to kill a cat, there are also several ways to solve a problem.

I am advocating for having a common way of organizing your code. When you are in a team, and you have to leave your work to someone else or simply want the wider open source community to use it, then you would want to be well sorted out.

There are some who might argue that having your own way of coding gives you an advantage of sorts since only you understand the syntax of your code. They may be on the money with that one. However the global community would not come to your rescue when you face a problem. And then you will be all alone.

There are others, the world over, experienced developers, who have written their own frameworks or have just thought of better ways of writing code. I would like to follow that bunch.

When I have to write applications from the ground up, I like to think they ( that is the applications ) are well structured. Still, there are apps out there that would put mine to shame. So if you cannot beat them, join them.

I would prefer having my own logic, my own unique way of doing things, my own semantics yet still have the opportunity to use it in the best tried frameworks.

So yeah, I definitely advocate semantics over syntax. I would opt for the best frameworks with my own spice of unique logical flow in apps.

What about you?

Leave a comment