Good programming practices

Archive for February, 2011

EduFan 2.0 beta – refreshed code

February 27th, 2011

As I announced previously, I refreshed EduFan source code and there is the new version. Calls of deprecated methods was changed with new methods. There was generated documentation with Javadoc. More…

Generating tree from two-dimensional array

February 24th, 2011

Suppose we have an arrays, which contain hierarchically ordered elements. It should be easier to operate if it would be a tree.
In other words, we want to transform a matrix, for example: More…

AJAX and normal URL in each link

February 6th, 2011

AJAX allows you to change some part of a page without reloading the whole window. But this raises problems of accessibility for search engines and disabled users. However it is easy to combine both of these methods, offering an AJAX version only there, where it is possible. There is no need for the large changes in the code.


In a simple web pages it changes only the main content, thus, there is no need to reload the entire page. It can be easly changed – whenever you click on the link, AJAX is called, and if JavaScript is not supported, there will be a normal page reloading. More…