Noizeramp

  • Home
  • Archive
  • Posts
  • Tags
  • Java 6 Mustang Beta Impressions

    1 March 2006 ⋅ 1 min read ⋅ java

    Eric Bruno gives us his initial impressions about the latest feature-packed Java 6 Mustang beta release. I kind of agree that the list is particulary tasty and promissing. But I know that I’m not going to use it any soon. Why?

    Well, it’s simple. Take our application — BlogBridge — as an example. It has a number of users even with Java 1.4 installed, we have to support them as they represent a significant segment of our user base. We don’t want to take any more maintenance load for having it run on 1.4, 1.5 and now 1.6. You might ask, what maintenance headaches? You might wonder, it all should be compatible!

    Yes, it SHOULD, but unfortunately it’s NOT.

    I’m not so pessimistic as I might appear from above. It’s just that I can’t taste its wonders fully yet what makes me a little bit worried.

    In any case, nice release, guys!

  • Book: Wicked Cool Java

    3 February 2006 ⋅ 1 min read ⋅ development book java

    Pito has just told me that the a book “Wicked Cool Java” by Brian D. Eubanks is already available. You can find the review on Slashdot or visit the official site to get more information. In this post I won’t dive deep into details, but will just say why it’s so exciting personally to me.

    Wicked Cool Java

    In the Chapter 4 “Crawling the Semantic Web” the author mentions the project I’ve been involved in as an active contributor for more than two years already — Informa. Informa is the news feeds parsing library with several utility modules greatly simplifying life, own persistence layer with mappings for several most popular database engines, RSS/Atom parsers, exporters etc. In his fourth chapter the author mentions and gives examples of how to use Poller module which is one of my beloved children as well as Cleaner and Persistence Manager.

    Well, what can I say!? It’s WICKED COOL and I’m really proud of it even though it looks like there’s no direct mention of me as an author of the modules. ;)

    Have a good reading! And go grab the book at Amazon!

  • Testing Method Signature

    27 January 2006 ⋅ 2 min read ⋅ java development testing

    Today I had some new interesting testing task. What I needed was to ensure that some method has public and non-static signature. The method plays role of hook in OPML import utility class — the hook, which is used to create Reader object for a given URL. By default, it uses simple InputStreamReader wrapper, but the client application may wish to have something more sophisticated. So, the task was clear — to ensure that this method does not lose its signature, because it already happened once when I was reviewing the code and noticed that this method had unjustified public modifier. That time I changed it to “private static” and the application using this library lost its encoding detection skills.

    Today, when I was looking for a bug in encoding detection it was a sort of revelation to see that the code even doesn’t get called. Yeah, sort of blown off the entire leg instead of simply shooting off the boots. So, traditionally I fixed the signature and put some warning for the future, but… the next thought was how to make an automated test to be one hundred per cent sure about it. It appeared simple and I would like to share it with you just to encourage.

    public class ImporterTest extends TestCase
    {
      // lots of other stuff skipped ...
    
      public void testCreateReaderForURLDefinition()
        throws NoSuchMethodException
      {
        Method crfu = Importer.class.getMethod(
          "createReaderForURL", new Class[] { URL.class });
    
        assertEquals("Method should be public and non-static.",
          Modifier.PUBLIC, crfu.getModifiers());
      }
    }
    

    Easy and bulletproof.

  • Usage of static inner classes

    15 October 2005 ⋅ 2 min read ⋅ java development

    Why is it good to have static inner classes? When an inner class is not static it holds a reference to its main class. If your inner class does nothing with the main class the reference is completely useless and only takes some memory. Nothing really harmful, though.

    Read more

  • Advanced Installer for Java Goes On Mac

    5 October 2005 ⋅ 1 min read ⋅ java development interesting

    Hooray! Wonderful news knocking at the door — Advanced Installer for Java (3.3) goes on Mac; and this is a really big step forward. We, as the proud users of AIFJ, are extremely happy to have an opportunity to build the Mac distributions of our application — BlogBridge — without serious messing with console. When we were choosing the installer for the application our main criteria was the presence of the Windows platform support. The Mac support was preferred but rather optional as we knew how to build a distribution package from the command line or with a console script. Of course, having this process automated means a big boost in our performance. A lot of thanks to you guys!

    Also the team reports the following changes:

    • Inclusion and exclusion filters for Synchronized Folders.
    • Editing multiple files’ properties at once.
    • File version override.
    • Stretched or fixed size switch for dialog banners and bitmaps.
    • Configurable Merge Modules.
  • Java Timestamps go Database

    30 September 2005 ⋅ 2 min read ⋅ java development

    Couple of years ago I wrote a small application to manage a post cards distribution for a small advertising company. The application worked with a Cloudscape database but it’s not the point. The point is that my friend, who was working for that company, asked me to help with some strange problem. After the hardware upgrade all of the records in the database became invisible. I need to say that there is a screen where you can examine the amounts of cards sent to a different organizations at the given dates, and there is another screen where you can build a comprehensive reports with the same information but for a given dates range. Well, the records were not visible on the single-date statistics page, but they were in the reports. I was shocked…

    Read more

  • Wonderful Resource On EJB3

    4 September 2005 ⋅ 1 min read ⋅ java

    For those of you who already started to study this wonderful world of enterprise applications programming with EJB3 I suggest to visit fascinating resource on the web — Oracle’s EJB3 Resources. You will find lots of details on nearly every aspect of EJB3 application plus downloadable source code. As a learner, I found many interesting bit there.

    Highly recommended!

  • Funny things in EJB3 Spec

    31 August 2005 ⋅ 1 min read ⋅ interesting java

    Just don’t take it very serious. :) The clever guys also do funny things.

    public interface Calculator {
      public float add(int a, int b);
      public float subtract(int a, int b);
    }
    

    (and I am not about number of methods)

    Smile! :)

  • Packaging Java applications for Ubuntu and other Debian’s

    31 August 2005 ⋅ 3 min read ⋅ java linux

    As all of you probably know, we are building the BlogBridge application – the next generation of feed aggregators. At the present moment we are distributing the application in two forms: as Java Web Start application and ZIP-packaged Java application available for download from SourceForge.net. Lately, we started to think how to create native installation/uninstallation experience for our users on different platforms. We decided to support native installations for Windows, Mac OS X, generic Tar.GZ archives and Debian packages.

    In this tutorial I will share the basics of Debian package creation for Java applications.

    Read more

  • Calling Methods of Super Classes

    18 August 2005 ⋅ 3 min read ⋅ java

    I was running quickly through the list of my subscriptions when one post by Martin Fowler attracted my attention. Martin is famous in OOP world for his knowledge and experience in design and development of applications. Indeed, he has a lot of great publications (books and articles), he attended many conferences and wrote a lot of wonderful software. What am I talking about? Ah, the article… yes, in his article he tells us how badly smells the calling of methods of super class. I wouldn’t have believed, If only I hadn’t seen that with my own eyes. Excuse me, Mr. Fowler, but I can’t agree with you, completely…

    Read more

  • 1
  • 2
  • arrow-right