Griffon - Home.
Refactoring par la pratique. Dans cet article, nous allons procéder à un refactoring sur un exemple concret, afin de mettre en exergue quelques bonnes pratiques. Défi : comprendre du code inélégant* *Edit : j’avais initialement écrit “imb*table”, mais il paraît que ça ne fait pas très sérieux Êtes-vous capable de comprendre ce que fait la méthode computeConvexHull() en moins de 3 minutes ? Alors ? Checkstyle lui donne une complexité cyclomatique de 16. Le développeur, lecteur à temps plein On entend souvent dire que produire un code de qualité, c’est un coût à court terme et un gain à long terme. En tant que développeur, je passe l’essentiel de mon temps à lire du code, et proportionnellement peu à en écrire. Étudiez la manière dont vous développez, vous verrez c’est édifiant Puisqu’un développeur passe l’essentiel de son temps à lire du code, le meilleur moyen de gagner en productivité, c’est avoir un code qui soit facile à comprendre.
Améliorer la qualité du code, c’est un gain immédiat, un point c’est tout. Conclusion. EclEmma - Java Code Coverage for Eclipse. Test-driven development. Method of writing code Test-driven development (TDD) is a way of writing code that involves writing an automated unit-level test case that fails, then writing just enough code to make the test pass, then refactoring both the test code and the production code, then repeating with another new test case. Alternative approaches to writing automated tests is to write all of the production code before starting on the test code or to write all of the test code before starting on the production code.
With TDD, both are written together, therefore shortening debugging time necessities.[1] TDD is related to the test-first programming concepts of extreme programming, begun in 1999,[2] but more recently has created more general interest in its own right.[3] Programmers also apply the concept to improving and debugging legacy code developed with older techniques.[4] The original description of TDD was in an ancient book about programming. 1. List the expected variants in the new behavior. 2. 3. 4. 5. RegEx: online regular expression testing. News on Java Development & Software Architecture. A la node Processing on the Grid Why do traditional cache semantics sometimes struggles to scale, and what can we do about it? Hold the chuckles Oracle scaling out to NoSQL domination? The Register claims that the San Francisco giant is about to attack enterprise market gap by establishing a NoSQL standards body. Drink to that From smart grids to microbrews Internet of Things innovators V2COM use Java to connect millions of intelligent devices - here's their story.
Ripe times Lean Concurrency in Java 8 Lambdas and improved APIs in Java 8 will make writing concurrent code that little bit easier. Dygraphs JavaScript Visualization Library.