[WSO2Con EU 2017] How to Learn and Contribute to Ballerina

Preview:

Citation preview

Director Solutions Architecture, WSO2

How to Learn and Contribute to Ballerina

Senaka Fernando

• Ballerina - What, Why, Who?• What motivated me to learn Ballerina• Contributing to Ballerina

Outline

• A general purpose, concurrent and strongly typed programming language

• Optimized for Enterprise Integration• With both textual and graphical syntaxes

What is Ballerina

A Programming Language for the ‘Networked World’

Ballerina isDesigned forDevelopers

Images: http://blog.broex.in/words-of-wisdom-broex

• It’s easy to learn and code in Ballerina - many examples available and more to come

• It’s designed for the right kind of technology• It’s kind of cool - you need to try it!

What Motivated Me?

8

server

Image: http://www.business2community.com/tech-gadgets/who-should-your-business-trust-for-its-electronics-recycling-0555161#KQfdoGbGEifUdufV.97

The Way I See ‘Serverless’

Learning Ballerina is Easy

• Download “Tools + Runtime”• Start the composer (cd bin; ./composer)• Open http://localhost:9091/ on a browser• Try out the Hello World sample

Getting Started with BallerinaOpen https://ballerinalang.org/ on a Browser

Routing Services Template

More Examples

• Copy to Clipboard• Create New• Paste in source view and open in design view

Experimenting with ExamplesVisit https://ballerinalang.org/docs/by-example/

• F1 (or fn+F1) loads Ballerina by example• In the Design View, use the Compact View to make

things easier to read• In the Source View you can fold and expand source

code

Ballerina Editor Tips and TricksA Few Things to Remember

• Click each box to preview• Use the Jump to Source to toggle the view• It is easier to set breakpoints in Source View

Ballerina Editor Tips and TricksA Few Things to Remember

Swagger In/Swagger Out

It’s Easy to Import Swagger

Contributing to Ballerina

• Stackoverflow• Slack channel• Ballerina developer mailing list• GitHub

Getting Involved

• https://github.com/ballerinalang/ballerina/issues• Improving/extending IDE support• Connectors for Ballerina• Ballerina tracks at this conference

Getting Involved - Ways to Contribute

The ‘Ballerina BoF’ is Up NextJoin Us!

wso2.com