Showing posts with label JUG. Show all posts
Showing posts with label JUG. Show all posts

Sunday, July 22, 2012

Handling I/O in Java

Handling input/output or I/O is one of the most common situations that programmers have to deal with. If you are writing a real world application, then you have to write a considerable amount of code to handle I/O regardless of the programming language or platform you’re going to use. Interestingly I/O plays a major role even in some of the simplest programs we can write. Even to write a standard ‘Hello World’ program in a language like Java or C, you need to know how to output characters to a console.
However, most developers often tend to ignore the importance and significance of I/O when writing code. Developers generally have an API level understanding of how to perform I/O operations using their main stream programming language. But they do not possess an in-depth understanding of how I/O works in the underlying system or how it can affect the performance and stability of the programs they write. Java developers in particular believe that knowing how to use the standard I/O API of Java is sufficient to write applications of good quality. Their lack of understanding on limitations and performance bottlenecks of the standard I/O API is astonishing. Most Java developers don’t have a firm grip on I/O coding best practices, third party I/O libraries available or relatively new concepts like NIO.
Last week I gave a talk at JAVA Colombo, the Sri Lankan JUG, trying to address some of the above issues. I started by giving a brief overview on I/O and I/O APIs in Java. I also introduced the NIO API and gave a short live demonstration of it comparing its performance to the standard I/O API of Java. Finally I discussed some of the best practices, patterns and anti-patterns related to writing I/O related code in Java. Full slide deck is now available on-line. Feel free to go through it send in your feedback.

Wednesday, March 7, 2012

Introducing JAVA Colombo: The Sri Lankan Java User Group

Sri Lanka is home to a large number of Java developers. Hundreds of Sri Lankan programmers are involved in writing Java code for various open source and proprietary projects. Unfortunately though, we haven’t had the notion of a strong Java developer community in Sri Lanka up until now. However starting from next week that’s about to change. We are starting JAVA Colombo, a Java User Group (JUG) for all Java developers in Sri Lanka. JAVA Colombo will serve as a regular meeting place as well as a knowledge sharing hub for any Java programmer interested in taking part. We intend to have regular meetups and other educational events in and around Colombo to help developers learn and connect.
Our first official meetup will be held on 15th of March 2012 at 6pm at WSO2 premises. This will be a great opportunity for Sri Lankan Java developers to meet each other and have a taste of the JUG experience. To make the meetup even more interesting we are also planning to have an expert panel discussion on the topic “Secure Coding with Java”.
If you are a Java programmer or a Java enthusiast and you wish to become a part of this effort, please sign up today at meetup.com.