Submit Blog Login Last Submitted Blogs RSS Archive Contact  
Daily Development
 
 
 
Daily Development
Blog about practises and challanges in daily software developers work such a tools usage, architecture and design, project management, configuration management and others.
Language: English
RSS Feeds for this Blog
Statistics
Unique Visitors: 0
Total Unique Visitors: 501
Visitors Out: 1189
Total Visitors Out: 1664
 
 
Articles
Refactor singleton out of your code
2007-08-01 22:37:32
There are a lot of posts about that the Singleton design pattern [GoF] is not pattern but anti-pattern (eg. SINGLETON - the anti-pattern!). Some posts also proposes an alternatives for Singleton design pattern or solutions for already existing Singleton design pattern problem (eg. Patterns I Hate #1: Singleton). But I didn't found any post which describes solution for big project with bunch of singleton class usage without big effort of rewriting many places by hand.Because I was in situation that I should refactor a big project containing bunch of Singletons, I was thinking about some automatic way how to remove them. I found a solution using several refactorings. After bellow described sequence of steps you can replace Singleton design pattern by Registry design pattern [P of EAA] which ...
 
Refactor singleton out of your code
2007-08-01 13:40:00
There are a lot of posts about that the Singleton design pattern [GoF] is not pattern but anti-pattern (eg. SINGLETON - the anti-pattern!). Some posts also proposes an alternatives for Singleton design pattern or solutions for already existing Singleton design pattern problem (eg. Patterns I Hate......
 
Don't write code - use Eclipse
2007-07-04 08:20:04
Eclipse IDE provides multiple functionalities which can help you when you are coding. The functionalities what I am talking about are typically very small and easy to use actions such as Content Assistant, Quick Fix, Refactoring and other code manipulations. Usage of those features can improve speed and quality of your coding.In this article and also in the other articles under label coding tips I would like to describe usage of those features in the way where you will write as little code as possible and the rest of code will be generated by Eclipse.Let start with very simple example - assignment of new instance of StringBuffer class to the local variable or to the field.So what we want to have at the and will be something like:StringBuffer buffer = new ...
 
Singleton pattern implementation in 4 steps
2007-07-04 08:19:42
The article describes very simple, fast and efficient way how to create class implementing Singleton design pattern [GoF]. Everything is done in 4 steps using standard features of Eclipse IDE (refactoring and source code manipulation). But it is of course applicable for every IDE providing similar refactoring functionality.Steps:Create new empty 'SingletonClass' class - use New > Class action from popup menu over package or Ctrl+N shortcut. In the dialog just ensure that the source folder and project are specified and define the name of new class. Press Enter or click OK.From the body of the class invoke Source > Generate Constructors from Superclass... action, of course using Alt+Shift+S, C shortcut. In the following diaglog just press Enter or click OK. (This step can be done together wi...
 
My first real Java application
2007-07-04 08:19:15
I just found very funny Java application in my archive. It was year 2002 and I was studying college in Ostrava. We had strange theme called Java Technologies. Following applet was my semestral project for the theme. It is very simple, multi threaded (!!!), simulation of cross way. A colored squares are cars and yellow squares in their corners are flashers. The cars follows traffic lights and right-hand rule. Look and enjoy :-)Do you want sources? Download crossway.zip...
 
What I am missing on del.icio.us
2007-07-02 17:26:54
As member of a team I was looking for some solution which will enable us to share bookmarks across the team. Because I have some good experiences with del.icio.us bookmark manager and it also fulfil basic conditions, my focus was clear from the beginning.The basic conditions were:bookmarks should be shared among all team membersbecause the members are traveling and then they are out of corporate network we need access to bookmarks from anywhereposting and using bookmark should be as simple as possibleThen I identified additional conditions:some members uses IE, some members uses Mozillaat least some members of team (eg. me :-) has it's own personal account on del.icio.us and they want to use bookmarks from both of them at a time.My idea was that every member will have it's own account and ...
 
My first real Java application
2007-07-02 12:05:00
I just found very funny Java application in my archive. It was year 2002 and I was studying college in Ostrava. We had strange theme called Java Technologies. Following applet was my semestral project for the theme. It is very simple, multi threaded (!!!), simulation of cross way. A colored squares......
 
What I am missing on del.icio.us
2007-07-02 03:52:00
As member of a team I was looking for some solution which will enable us to share bookmarks across the team. Because I have some good experiences with del.icio.us bookmark manager and it also fulfil basic conditions, my focus was clear from the beginning. The basic conditions were: bookmarks......
 
Code Content Assistant Efficiency
2007-06-20 11:25:58
Purpose of this article is to evaluate efficiency of content assistant functionality provided by Eclipse with focus on type name completion. The results will be of course applicable not just for type names but also for field and method names.Content assistant functionalityEclipse content assistant is simply suggesting code completions while writing code considering to concrete context - type names, field names, method names, ... It also provides excellent feature called "camel case matches" (NPE matches to NullPointerException) which is also object of my evaluation.Content assistant efficiency definitionContent assistant efficiency is number, which says how many times more you will get considering to what you spend. When we are talking about type names ...
 
Intercepting Filter Design Pattern
2007-06-18 16:11:21
Intercepting Filter is classified as an enterprise or J2EE design pattern. Intercepting Filter design pattern is typically used in cases where some messages should be processed but the target processing should be wrapped into chain of arbitrary pre/post processings as are authorization checks, message resources transformations (eg. translation, escaping), ...Intercepting Filter design pattern is built from five basic components:FilterManagerFilterChainIFilter interfaceContextITarget interfaceFilterManager - FilterManager class is a boundary class of Intercepting Filter design pattern. It means that a client uses it as an interface to process some target operation (represented by ITarget interface) in a specific context (re...
 
Interceptor Design Pattern
2007-06-18 16:06:35
Usage of Interceptor Design Pattern [POSA2] can solve many problems in daily development. It is very easy to: monitor what is the application doing insideprovide possibility to change some of application's behaviorprovide possibility to extend application with new featuresimplementer of the extension need not to know rest of the applicationimplementer of the extension need not change existing codenew extensions can or can not affect current systemInterceptor design pattern is built from three basic components: IInterceptor interfaceDispatcherContextIInterceptor - IInterceptor interface can define arbitrary number of operations which are executed by Dispatcher in specific cases (at the beginning of the request processi...
 
Intercepting Filter Design Pattern
2007-06-14 13:00:00
Intercepting Filter is classified as an enterprise or J2EE design pattern. Intercepting Filter design pattern is typically used in cases where some messages should be processed but the target processing should be wrapped into chain of arbitrary pre/post processings as are authorization checks,......
 
Windows XP - Expired Credentials
2007-06-13 14:05:05
I just get following message from Windows XP:Then when I clicked:It happends when I was logged in using remote desktop on a remote machine. Then I Disconnected (but I was still logged in), changed my domain password and connected again. After while, when I was working on access rule configuration, it happends ;-)It seems very funny for me. It is like: "When you change your lock of the door, you should close and open the door to start working" :-)...
 
Windows XP - Expired Credentials
2007-06-13 06:50:00
I just get following message from Windows XP: Then when I clicked: It happends when I was logged in using remote desktop on a remote machine. Then I Disconnected (but I was still logged in), changed my domain password and connected again. After while, when I was working on access rule......
 
Singleton pattern implementation in 4 steps
2007-05-30 15:41:00
The article describes very simple, fast and efficient way how to create class implementing Singleton design pattern. Everything is done in 4 steps using standard features of Eclipse IDE (refactoring and source code manipulation). But it is of course applicable for every IDE providing similar refactoring functionality.Steps:Create new empty 'SingletonClass' class - use New > Class action from popup menu over package or Ctrl+N shortcut. In the dialog just ensure that the source folder and project are specified and define the name of new class. Press Enter or click OK.From the body of the class invoke Source > Generate Constructors from Superclass... action, of course using Alt+Shift+S, C shortcut. In the following diaglog just press Enter or click OK. (This step can be done together with prv...
 
Singleton pattern implementation in 4 steps
2007-05-30 08:41:00
The article describes very simple, fast and efficient way how to create class implementing Singleton design pattern [GoF]. Everything is done in 4 steps using standard features of Eclipse IDE (refactoring and source code manipulation). But it is of course applicable for every IDE providing similar......
 
Code Content Assistant Efficiency
2007-05-16 11:15:00
Purpose of this article is to evaluate efficiency of content assistant functionality provided by Eclipse with focus on type name completion. The results will be of course applicable not just for type names but also for field and method names. Content assistant functionality Eclipse content......
 
Don't write code - use Eclipse
2007-04-20 02:13:00
Eclipse IDE provides multiple functionalities which can help you when you are coding. The functionalities what I am talking about are typically very small and easy to use actions such as Content Assistant, Quick Fix, Refactoring and other code manipulations. Usage of those features can improve......
 
Interceptor Design Pattern
2007-04-11 09:01:00
Usage of Interceptor Design Pattern [POSA2] can solve many problems in daily development. It is very easy to: monitor what is the application doing insideprovide possibility to change some of application's behaviorprovide possibility to extend application with new featuresimplementer of the......
 
 
 
 
eXTReMe Tracker