DEV Community

Cover image for Redux in Ballerina programming language πŸŽ‰πŸŽ‰πŸŽ‰
Hammed Oyedele
Hammed Oyedele

Posted on

2 1

Redux in Ballerina programming language πŸŽ‰πŸŽ‰πŸŽ‰

Motivation

Hello guys, I have found a new favourite programming language and I decided to implement one of my favourite libraries from the JavaScript world in it.

At first, I had challenges with the static types but eventually figured everything out.

What is Ballerina?

According to the official website:

Ballerina is an open-source programming language and platform for cloud-era application programmers to easily write software that just works.

What is redux_bal?

redux_bal is a static-typed implementation of Redux JavaScript library in the network-oriented Ballerina programming language. Read more at:

GitHub logo devhammed / redux_bal

Implementation of Redux in Ballerina programming language.




Top comments (0)

11 Tips That Make You a Better Typescript Programmer

typescript

1 Think in {Set}

Type is an everyday concept to programmers, but it’s surprisingly difficult to define it succinctly. I find it helpful to use Set as a conceptual model instead.

#2 Understand declared type and narrowed type

One extremely powerful typescript feature is automatic type narrowing based on control flow. This means a variable has two types associated with it at any specific point of code location: a declaration type and a narrowed type.

#3 Use discriminated union instead of optional fields

...

Read the whole post now!