The programmer's notes

Here I am sharing my ideas about design, programming techniques and tricks.

Tuesday, December 6, 2011

How slow getStackTrace() is?

›
Today during discussion about usage of low level Java tricks I was told that Throwable.getStackTrace() is a very heavy operation. So, I dec...
3 comments:
Friday, July 29, 2011

Find bad coding practices using regular expressions

›
I have been using eclipse for last 8 years and very glad to be a witness of its continuous improvement. Specifically I mean its compilation ...
Tuesday, July 26, 2011

Automatic detection of debugger

›
Yesterday I was debugging test case that consists of a few similar unit tests. All unit tests call some API that executes tasks with backgro...
Tuesday, July 12, 2011

Performance of method invocation by reflection

›
One day discovering code in project I am working on I found the following code: try {     module.getClass().getMethod(methodName, Serializ...
1 comment:
Thursday, July 7, 2011

File access: stream vs nio channel

›
Java provides 2 ways to access files: using streams and NIO channels. Streams implement blocked IO: the read() method is blocked until some ...
Tuesday, July 5, 2011

java.util.Pattern vs regular string search

›
Following discussion at work where I took a role of advocate of regular expressions I decided to verify how they are really fast. I remembe...
Sunday, January 30, 2011

Codility certificate

›
Recently I found out a cool site that allows programmers to verify their programming skills and recruiters to verify the programming skills ...
Thursday, January 13, 2011

Get program entry point

›
Today I read the following discussion: How can I determine which class's `main` method was invoked at runtime? The problem was to dis...
Tuesday, January 4, 2011

Access windows registry with pure java

›
Introduction Java is a cross platform language and therefore does not support platform specific features. Windows has a special unique fea...
2 comments:
Sunday, October 31, 2010

Useful abuse of API

›
Can abuse of API be useful? Sometimes it can be! Word "abuse" is defined as the improper usage or treatment for a bad purpose ...
Thursday, October 7, 2010

Twitter

›
I have just opened Twitter account: https://twitter.com/alexradzin
Tuesday, October 5, 2010

Hierarchical structures with Java Enums

›
Java enums are typically used to hold array like data. This tip shows how to use enum for hierarchical structures. Motivation Once upon ...
10 comments:

Send delayed JMS messages

›
Very often I had to implement feature that has to do something asynchronously in a minute, day, or at 5PM next Monday. Every time I implem...

Customized ValueOf

›
When I am writing enum I very often found myself implementing static method similar to standard enum’s valueOf() but based on field other ...
1 comment:

Dynamic Enums

›
Introduction Enums introduced to Java 1.5 is a very useful and well known feature. There are a lot of tutorials that explain enums usage in...

Discover type of parametrized class

›
Introduction Generics is a beautiful feature of Java 1.5. But it has some limitations. One of them is that it is impossible to discover typ...
‹
›
Home
View web version

About Me

My photo
AlexR
Experienced software engineer. Busy with coding in various languages since 1997. Has been coding in Java and related technologies since 2000.
View my complete profile
Powered by Blogger.