Static Languages vs Dynamic Languages.

Here it is. The first match of the blog. I’m kind of excited about the amount of acceptance that it will have as the purpose of the blog seems very promising, so I hope for it to be very helpful for all the geek community around.

Well enough talk let’s begin.



In my experience as a software developer I have been working with this two kinds of languages and I must say that it’s a pleasure to code with both of them but which is the preferred one to use for development? Let’s dig in on each of them.

Static languages.


happy girl static electricity

When we started to learn programming, most of us started to code using an static language which maybe by this reason in my perspective, are the most used by the community.

As the code is compiled, it helps the developer to deduce silly mistakes like semicolons, typos, bad value assignments, etc. in a fastest ways which saves time.

Also the IDEs can help the developer to provide better guidance at the code they write because they know or infer the kind of objects or types that you want to use.

The code organization and structuring seems to be well covered with the use of packages, namespaces , imports etc.

But it is this kind of features in order to have a more controled development experience required?

Dynamic Languages


Plot

I entered into the field of dynamic languages when I started to work with PHP and JavaScript.At first time, I was kind of shocked as I was expecting some “help” as I had when coding in an static typed language, but not.

As I was starting to code, I was impressed about the amount of flexibility that the language provided. Just adding whatever I want to a variable and be able to assign as well another completely different thing to it, it was just amazing.

Also be able to apply functional programming concepts and prototypes was just something different and exciting.

Then the horror came while coding more complex applications. The pain of scopes, spaghetti code in the effort to make DOM manipulations and Ajax calls on the JavaScript perspective.

Dynamic languages in the sense provide less help for the developer as they are are not type-safe and maybe its a good feature for these languages as they dont have to worry about typing things in order to exploit a better potential. But this also comes with a price as well.

Javascript code organization was kind of hard when DOM manipulation was emerging as most of the interaction performed in the page was started to moved into the browser you get tons of scripts, some embedded in the html pages ,some others in other files so it was kind of hard to keep the track of the functionality implemented.

Some frameworks appeared in the market to try to solve this concerns but in the end, as the nature of Javascript, the complexity of code organization is higher than what a common static typed language provides.

What it’s your opinion on this? Take a time and write comments for this post so everyone can discuss on the topic and as always the only winner in the matches of this blog is you the reader.

Thanks and take care!

Share