31
Director Solutions Architecture, WSO2 How to Learn and Contribute to Ballerina Senaka Fernando

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

Embed Size (px)

Citation preview

Page 1: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

Director Solutions Architecture, WSO2

How to Learn and Contribute to Ballerina

Senaka Fernando

Page 2: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

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

Outline

Page 3: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

• A general purpose, concurrent and strongly typed programming language

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

What is Ballerina

Page 4: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

A Programming Language for the ‘Networked World’

Page 5: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

Ballerina isDesigned forDevelopers

Page 6: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

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

Page 7: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

• 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?

Page 8: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

8

server

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

Page 9: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

The Way I See ‘Serverless’

Page 10: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

Learning Ballerina is Easy

Page 11: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

• 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

Page 12: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina
Page 13: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina
Page 14: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

Routing Services Template

Page 15: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina
Page 16: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina
Page 17: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

More Examples

Page 18: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

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

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

Page 19: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina
Page 20: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

• 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

Page 21: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

• 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

Page 22: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

Swagger In/Swagger Out

Page 23: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

It’s Easy to Import Swagger

Page 24: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina
Page 25: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina
Page 26: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

Contributing to Ballerina

Page 27: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

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

Getting Involved

Page 28: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina
Page 29: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

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

Getting Involved - Ways to Contribute

Page 30: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

The ‘Ballerina BoF’ is Up NextJoin Us!

Page 31: [WSO2Con EU 2017] How to Learn and Contribute to Ballerina

wso2.com