Posts

December 2016

OMG, guys we have left few days only for 2016, isn't it? what a year for Sri Lankan cricket! we made history by completely trouncing Australia in a 3-0 whitewash in the Test series. First time ever – absolutely brilliant! We lost a true icon in SL music when the beloved Dr. Pandith W.D. Amaradeva passed away. His contributions to Sri Lankan music will never be forgotten. My Big Move to Oz 🇦🇺 Talk about a life-changing year! I landed in Australia and scored a job with Telstra – the country's top telco. Not a bad way to start a new chapter, eh? Tech Highlights  Some serious tech game-changers this year: Amazon dropped the Echo, their voice-activated speaker that's basically a robot assistant in your living room iPhone 7 launched with some seriously impressive new features What a year! Can't wait to see what 2017 brings.

IBM IIB

I just give you brief description on how we can enable basic authentications to secure access to HTTP and SOAP public endpoints that are running in our IIB on Cloud integrations. These endpoints are HTTPInput and SOAPInput message flow nodes. If basic authentication is enabled for an integration, HTTP requests to any HTTP or SOAP nodes in that integration require the correct URL, a user name, and a password. So, if basic authentication is disabled for an integration, HTTP requests can access any of your HTTP or SOAP nodes in that integration by using only the correct URL, and do not require a user name or password. Basic authentication settings are associated with an integration and apply to all HTTP and SOAP nodes in that integration. For integrations for which we have enabled basic authentication, the user name that is required to access HTTP and SOAP nodes is fixed to IIB and a corresponding password is generated automatically. In the Integration Details view, you can view the...

My Learning Angular as a Backend Engineer - first time

Recently I wanted to try hot new framework called AngularJS. As someone who's spent years writing backend APIs, I thought - hey, maybe it's time to see whateveryone is talking about (in Frontend)  So I decided to write down some key points and insights from my experience of learnig into AngularJS. Coming from a backend world where everything is neat code and database queries, my first reaction was like "Whoo, what's all this DOM manipulation stuff?!" Before AngularJS, I had used some jQuery and writing tons of JavaScript to update few webpages. But then AngularJS comes along and changes everything we did. Some cool things I found while learning: Two-way data binding is amaaazing! Just add ng-model to an input and boom - my JavaScript object updates automatically. No more manual DOM updates! When I first saw this working I was like "why didn't we have this before?!" Directives are pretty neat. At first they looked sca...

Test-Driven Development

I’ve tried practicing Test Driven Development (TDD) for so many different developments. Test-Driven Development (TDD) has gained popularity among developers as a methodology to improve code quality and design. However, my early experiences with TDD left me feeling overwhelmed and burdened by the tests themselves. Determined to unlock the true potential of TDD, I embarked on a journey to master this development approach. Through numerous struggles and enlightening discoveries, I have gained a deeper understanding of TDD. In this blog post, I will share my insights and the importance of grasping the TDD life-cycle for effective development. The TDD Life-Cycle: Write the test: TDD begins with writing a test that reflects the functionality you wish to implement. This test initially fails, as there is no corresponding implementation code. Run the test (test does not pass): Running the test at this stage will inevitably result in failure, given...

Interviewing Programmers

Hello my dear senior friends in SW engineering , how do  you interview new recruits for programming ?Do you start with phone interview and continue on written tests to face-to-face interview? Eventually it will come down to your experience and gut feeling? Most of times we do it in that way. But we have experienced some best practices of picking "better" programmers! In an environment like work we need more “practical programmers” than just “good coders”. Because most of times our programmers will need to directly work with end user and understand the requirement from business perspective. So we have more responsibility to choose “right” people from interviews. We take advantage of intern programs, we hunt down the smart CS/IT students and individually ask them to apply for an internship with us, because if you wait around to see who sends you a resume, you're already missing out. In one incident tried asking applicant to develop a program, I have used a very genera...

How to convert an String into int value

There are many ways to convert an String into Integer object in Java e.g. Integer.valueOf(), new Integer(), Integer.parseInt() or writing your own algorithm to convert string to int etc, but which one is the best tool for the job. here are different ways of converting String object into int or Integer in Java : 1) By using Intger.parseInt(String string-to-be-converted) method This is my preferred way of converting an String to int in Java, Extremely easy and most flexible way of converting String to Integer. Let see an example of String to int conversion:  //using Integer.parseInt  int i = Integer.parseInt("123");  System.out.println("i: " + i); Integer.parseInt() method will throw NumberFormatException if String provided is not a proper number. Same technique can be used to convert other data type like float and Double to String in Java. Java API provides static methods like Float.parseFloat() and Double.parseDouble() to perform data type conversion. ...

SOA

"What is this SOA?" Have you ever questioned this? many of my non-IT colleagues ask me this. So here I will word it in very simple style. Actually, SOA is architecture style.. It is an approach you follow when you develop some systems or integrated software. From my personal experience I would say, applying SOA in Big Bang is bad, think big, start small. Our target should be to build SOBA(service oriented business applications) SOA governance is the key to have service  catalog . We have to have Service bus to avoid point to point interaction.