Skip to main content

Posts

Showing posts from April, 2020

Introduction to the Ballerina Programming Language

Ballerina is the latest programming language released on September 10th of this year. There are more than a thousand programming languages out there. Why do you need another programming language? Ballerina language intended to simplify the particular programming domain known as integration. You might be a developer who develops different kinds of web services and intends to interconnect those services. Then the Ballerina language will be your next programming companion. This post supposed to give you an introduction to Ballerina, a flexible, powerful and beautiful programming language that helps you to implement any sort of integration requirements. You can download and install Ballerina from the official  Ballerinalang  website. What does it look like? When I said that this is a programming language, the first concern that comes to your mind is how it looks. Ballerina language syntax takes shape based on programming languages such as Java, Go and JavaScript. Ballerin...

Weird Encoded Java Code and How It Works

I discovered following strange Java code that print  Just another Java hacker  on your terminal. Obviously, that piece of code looks like a mess. Even if you copy this code into your favorite IDE, IDE could not figure out the syntax of this code. Trust me, this piece of code works, and this is how it works. Obviously, it has a class name with the main method. Let’s clear out the code and format it. Now it looks like this. class Sig{ public static void main(String...args){ \u0066or(int\u0020$:"vÌÈÊ\"¤¾Àʲ¬Æ\"v¤Î¤\"²¤¨¸¬Æ".to\u0043h\u0061rArray() )System./*goto/*$/%\u0126//^\u002A\u002Fout.print((char)(($>> +(~'"'&'#'))+('<'>>('\\'/'.')/\u002Array.const(~1)\*\u002F))); } } Now you can see that there are some Unicode characters in this code. Next, we’ll extract all Unicode characters. Also, I’m removing  /*goto/*$/%\u0126//^\u002A\u002F  and  \u002Array.co...