La domanda è sempre la stessa.

La domanda è sempre la stessa:
"devo fare un pesante refactor del codice, modifico il codice e poi faccio passare tutti i test che nel frattempo sono diventati rossi o prima modifico i test e poi li farò tornare tutti verdi modificando il codice?"

Io, che non sono un purista, in questi giorni ho provato una strada un po’ alternativa…

Ho riscritto tutti i test che toccano gli oggetti che avrei dovuto modificare nella mia applicazione lasciando comunque una copia dei vecchi test avendo così:
- tutti i vecchi test verdi
- la maggior parte dei nuovi test rossi

Quindi ho modificato il codice dell’applicazione avendo quindi:
- quasi tutti i vecchi test rossi
- tutti i nuovi test verdi

A questo punto i vecchi test non erano più necessari e spazzolandoli ho ottenuto:



Ho trovato interessante questo approccio in quanto, nella fase di sviluppo delle modifiche all’applicazione, mi ha fornito il resoconto costante riguardo l’avanzamento delle modifiche.


posted @ mercoledì 23 giugno 2010 15.58


Comments on this entry:

# re: La domanda è sempre la stessa.

Left by lavecchia a parte at 23/06/2010 22.16
Great Job Ziggy

# re: La domanda è sempre la stessa.

Left by luoluying at 09/06/2011 9.25
アバクロンビー&フィッチ(Abercrombie&Fitch)アバクロ本国アメリカではハリウッドスターもアバクロ 店舗愛用する人気のブランド、Abercrombie&Fitchアバクロ 銀座アバクロのメンズダウンジャケットです。アバクロ 銀座 セールフード付きで、アバクロ 銀座 価格ジップの部分は比翼の付きのボタンになっているのでアバクロ 通販防寒対策はバッチリアバクロ サイズ★左腕にはロゴのアップリケが付いています。アバクロ福岡軽くてあたたかいダウンジャケットは寒い冬の必需品です。少量のみの入荷です。お早めに♪♪ホリスター【ブランド】 アバクロンビー&フィッチ(Abercrombie & Fitch) アバクロホリスター【サイズ】 S/M/L/XLホリスター 日本【素材】 シェル:ポリエステル100% 裏地:ポリエステル100% フホリスター サイズィリング:フェザー65% ダウン35% フィリング2:ポリエステル100%ホリスター 公式【スタ  メンズダウンベスト

# re: La domanda è sempre la stessa.

Left by Tiffany Bracelet USe at 18/01/2012 10.43
in situation you really are a man or lady who desires to lookup great Tiffany Bracelet USe in everyway then this write-up will pacify your style instincts a bit. locate the relatively most ideal style diamond jewelryTiffany Jewelry Clearance to compliment your attire put on casually or at functions and ceremonies.Is it like you in any way instances retain Tiffany Bracelets Clearance questioning to suit on the most ideal diamond jewelry that goes collectively with your dress, I could possibly guidebook you what to suit on collectively with your favored dresses.Discount Tiffany Bracelets Hearts Casual sort people these times should spice up their appears with brightness gemstone diamond jewelry or custom made gemstone beaded Tiffany Charms Wholesale diamond jewelry that is on the marketplace at one of the most affordable prices inside the market. possess a assortment of the exquisite gemstone diamond Tiffany Charms USA jewelry in different colours and styles within your wardrobe and you also can suit on these collectively with your day-to-day clothes.

# re: La domanda è sempre la stessa.

Left by anna at 06/04/2012 9.20
Manyadeal is a good helper forBallast for HID? The kit comes complete with a Electronic HID Ballast, and it is Plug-n-Play. All necessary hardware for installation is included. Combined HID Slim Ballast and starter unit for better performance and easy installation for 55W Ballast.zasdSds

# cheap true religion jeans

Left by cheap true religion jeans at 15/05/2012 9.04
The company has 3 main ranges which expand its scope for the vast majority of the population, these are True Religion outlet Menswear, Ladies wear as well as their most recent product offering True Religion jeans outlet kids wear.

# re: La domanda è sempre la stessa.

Left by online casino at 15/11/2012 9.51
That was our first defeat in 18 matches this season - and over the last 50-odd games played wel have lost nine including the FA Cup final. That's not a bad record.

# re: La domanda è sempre la stessa.

Left by college research paper writing s at 20/12/2012 7.49
Ho trovato interessante questo approccio in quanto, nella fase di sviluppo delle modifiche all’applicazione, mi ha fornito il resoconto costante riguardo l’avanzamento delle modifiche.

# re: La domanda è sempre la stessa.

Left by dgkjfdkjdf at 22/09/2014 9.56
The choice of this Replica Watches port of arrival coincides with the inauguration of the new headquarters of the Yacht Club Fake Rolex of Monaco, which will be celebrated on Friday, June 20, in the presence of Prince Albert II. This Replica breitling watches departure from the traditional arrival in Italy has garnered the support of gentlemen of the Yacht Club Italiano. Partner of these two iconic Mediterranean yacht, Rolex is proud to contribute to this major event in the world of Yachting industry.

# โป๊ไทย

Left by โป๊ไทย at 14/10/2014 1.45
La domanda � sempre la stessa.


Left by at 12/04/2015 13.25
They said to organize for you your work in the best way you would want it to be. However you must be prepared to spend some good amount of money for nothing comes on a free note.

# <h2>Security Guard Equipment</h2>

Left by Lina at 19/08/2015 8.02
<h2>Security Guard Equipment</h2>

Security Guard Equipment - Once you've selected a security guard service based on your needs, you may wonder what resources each guard will have while on the job.

# re: La domanda è sempre la stessa.

Left by mickael at 28/08/2015 14.30
An intelligent way of conveying your point, a must read I suggest everyone to read this.
Usually I do not read everything on internet but you are an exceptional always read your blog.
Good Quality Vinyl Stickers UK

Your comment:

 (will not be displayed)

Please add 3 and 5 and type the answer here:

Live Comment Preview: