background preloader

Programming

Facebook Twitter

Java

Perl. Article sur ANT. Heureux informaticiens pour qui la paresse est la plus belles des vertus ! Vertu qui peut être exercée de deux manières pour réaliser des tâches répétitives : en entrant dans un mode de veille où les mains priment sur les neurones, ou en profitant des bienfaits de l'automatisation apportés par l'informatique. A moins de considérer l’informatique comme un exercice d’entretien physique, la deuxième solution est généralement plus efficace, et ANT fait partie des outils facilitant la définition de cette automatisation. Subverting Java Access Protection for Unit Testing. By Ross Burton 11/12/2003 As everyone knows, unit testing is a great way of ensuring that code actually does what it claims it does, and that over time, as the system changes, it carries on doing the same thing.

Subverting Java Access Protection for Unit Testing

Formal processes like Extreme Programming (XP) depend heavily on consistent unit testing. When used together, object-oriented design and comprehensive unit tests can lead to a very clean design, as the test-first methodology implies a user-based interface design, resulting in a public interface that is simple yet efficient. However, when it comes to testing, sometimes these clean interfaces are not as good as they could be. There are often member variables that the test suite would like to access but that have been scoped private or protected, and making these members public would expose the internals, ruining the clean design.

Design pattern in simple examples. SWT, Swing or AWT: Which is right for you?