In one of my previous posts I may have commented about Google's programming language called Go, also referred to as Golang. Its origins, evolution and historical background is very well documented in a number of website, so I will not spend to much effort on it in this post.
I became aware of Golang while I was learning to code in Google's other programming language cold Dart. Having primarily been a Pascal and PHP programmer, Golang's conspicuous C like syntax initially was a mild concern. Fortunately this concern was short-lived and generously offset by Golang's extensive list of features such as (to mention a few):
- Cross-Platform compatibility.
- Native support for concurrency paradigms.
- Develop executables.
My taste for software development is inclined towards certain type of applications, each include some level of a relational database integration:
- Web portals (60%)
- Native Windows GUI (30%)
- System administration scripts (10%)
Golang seems to fit very well for the first and last application types. I have already developed a couple sample application, mainly for tutorial purposes and I must confess, the language is fun. Below is sample code that pings several IP addresses and displays the ping results in the command line window:
This simple code highlight a few features of Golang (in no particular order):
- date assignments.
- array declaration.
- for loop.
- function declaration.
- channel assignments.
- go routines.
If you have never done any coding in Golang, I suggest you start right now and experiment for yourself the potential benefits of Google Go.
No comments:
Post a Comment