Monthly Archives: May 2011

How To Scan Open TCP Ports of Multiple IPs Simultaneously Applying Java

This is a simple multi-threaded Java application which scan tcp ports of multiple machines Simultaneously. I applied Observer design pattern to notify user if a port on those machines is accessible or not.  Like the use of interfaces, the Observer … Continue reading

Posted in Java, Networking, Software Engineering | 3 Comments

Practical Usages of Design Patterns – The Template Method and The Strategy

Introduction This is just an easy to learn example for who that is going to apply design patterns within his codes. Here you find a comparison of the Template Method and the Strategy design patterns implementation. The Template Method Design … Continue reading

Posted in Java, Software Engineering | 5 Comments

Good Code, Initial Ideas Behind Spring

The following is Rod Johnson’s definition of good code. This is just the initial pages of Rod’s great book “J2EE Design and Development”. These are the simple guidelines that obviously have led him to develop Spring. What is good code? These are … Continue reading

Posted in Software Engineering | 2 Comments