7 apr

What Test-Driven Development is not

Tags html5 css3

A very pertinent question in software engineering is about Test-Driven Development, TDD for the closest. There is resistance from those who do not know - well, it's not for less: the name refers to testing and test refers to a process in the area of Verification and Validation .

7 apr

Migrating applications without having to migrate for employment.

Tags html5 css3

You have a working software, but recently learned of new funcionabilidades that will totally opposed to what you currently have. At this time you think, but how will I adjust all data generated so far? How migrarei user accounts, private information and add new constraints to the accounts which have hitherto not needed it? Yeah, buddy. Welcome aboard!

7 apr

<?php
 trait Hello {
    public function ola() {
        echo "Olá";
  }

Traits in PHP. Horizontal inheritance.

Tags html5 css3

PHP does not support multiple herença - amen - and for this reason, we sometimes limited in some design decisions (design). The biggest problem at this point is that all herença so far (PHP 5.3.x) is vertical, ie, if I need a different level of abstraction in the middle of the process, or will I need to add the new abstraction and rewrite everything below it, or still, I have to duplicate code because it will not be able to meet herença.

7 apr

Ruby and class variables

Tags html5 css3

Hence, reading the book Eloquent Ruby , I came across such a problem. No fault of the Rails (or the Umains POG), and yes, behavior wacky Ruby. The miscreant, this class variables as global variables. So if you have a heritage in both classes where the constant is defined, the value of the last class to be loaded will set the value of the class variable.