Skip to content

smaruf/ballerina-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ballerina Study

Learning Ballerina to enhance skills.

Overview

Ballerina is an open-source programming language designed for cloud-era application development. It simplifies the process of building network services that integrate APIs.

Getting Started

To get started with Ballerina, follow these steps:

  1. Install Ballerina: Download and install Ballerina from the official website.
  2. Set Up Environment: Add Ballerina to your system's PATH.
  3. Verify Installation: Run ballerina -v in your terminal to verify the installation.

Basic Concepts

  • Services: Ballerina is built around network services.
  • Data Types: Learn about basic and complex data types.
  • Functions: Understand how to write and use functions.
  • Error Handling: Explore Ballerina's error handling mechanisms.
  • Concurrency: Use workers and strands for concurrent programming.

Example

Here is a simple example of a Ballerina service:

import ballerina/http;

service /hello on new http:Listener(8080) {
    resource function get sayHello(http:Caller caller, http:Request req) returns error? {
        check caller->respond("Hello, World!");
    }
}

Resources

About

Learning ballerina for bring up skill

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published