Skip to main content

Posts

Showing posts from March, 2017

Getting started with Ballerina in 10 minutes

Ballerina is the latest revelation in programming languages. It has been built with the mind of writing network services and functions. With this post I’m going to describe how to write network services and functions within a 10 minute tutorial. Source:  http://vkool.com/tips-and-tricks-on-ballet-for-beginners/ First things first, go to  ballerinalang  website and download the latest ballerina  tools  distribution which has the runtime and all the tools required for writing Ballerina programs. After downloading, you can extract the archive into a directory (let’s say BALLERINA_HOME) and set the  PATH environment variable to the bin directory of  BALLERINA_HOME  which you have extracted the downloaded tools distribution. In linux, you can achieve this as mentioned below. export PATH = $PATH:/BALLAERINA_HOME/bin e.g. export PATH = $PATH:/Users/chanaka-mac/ballerinalang/Testing/ballerina-tools-0.8.3/bin Now you have setup the balleri...

Ballerina — Why it is different from other programming languages?

In this post, we’re going to talk about special features of the Ballerina language which are unique to itself. These features are specifically designed to address the requirements of the technology domain we are targeting with this new language. XML , JSON and datatable are native data types Communication is all about messages and data. XML and JSON are the most common and heavily used data types in any kind of integration eco system. In addition to those 2 types, interaction with databases (SQL, NoSQL) is the other most common use case. We have covered all 3 scenarios with native data types. You can define xml and json data types inline and manipulate them easily with utility methods in  jsons  and  messages  packages. json j = `{"company":{"name":"wso2", "country":"USA"}}`; messages:setJsonPayload(m, j); With the above 2 lines, you can define your own json message and replace the current message with your message. You can do...

Ballerina, the programming language for geeks, architects, marketers and rest

We @ WSO2 thrilled to announce our latest innovation at the WSO2ConUSA 2017. It is a programming language for all. It is for geeks who like to write scripts for everything they do, for architects who barely speaks without diagrams, for marketing folks who has no idea what programming is and for so called programmers who cracks any kind of programming language you throw at them. Simply put it is a programming language with visual and textual representation. You can try out live samples at  ballerinalang  web site. P rogramming language inventions are not something we see so often. The reason is that, when people are happy with a language and get used to it, they are reluctant to move from that eco system. Unless it is super awesome and can’t live without it, they prefer holding their position. This is even harder for general purpose programming languages than Domain Specific Languages (DSLs). I ntegration of systems has been a tedious task from the beginning and nothing mu...