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:

Capture

 

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.

Riccardo.

posted @ Wednesday, June 23, 2010 3:58 PM

Print

Comments on this entry:

# re: La domanda è sempre la stessa.

Left by lavecchia a parte at 6/23/2010 10:16 PM
Gravatar
Great Job Ziggy

# re: La domanda è sempre la stessa.

Left by luoluying at 6/9/2011 9:25 AM
Gravatar
アバクロンビー&フィッチ(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 1/18/2012 10:43 AM
Gravatar
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.

# cheap true religion jeans

Left by cheap true religion jeans at 5/15/2012 9:04 AM
Gravatar
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 11/15/2012 9:51 AM
Gravatar
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 12/20/2012 7:49 AM
Gravatar
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.

# โป๊ไทย

Left by โป๊ไทย at 10/14/2014 1:45 AM
Gravatar
La domanda � sempre la stessa.

# EDUCATION

Left by superiorpapers.com at 4/12/2015 1:25 PM
Gravatar
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 8/19/2015 8:02 AM
Gravatar
<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 8/28/2015 2:30 PM
Gravatar
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

# Security Guards

Left by Edward Stevens at 2/18/2016 11:20 AM
Gravatar
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. Nationwide security guards

# re: La domanda è sempre la stessa.

Left by gurudissertation com at 9/1/2016 11:38 AM
Gravatar
I agree,in many cases i read like I do a heavy refactor the code , modify the code , and then I pass all the tests that have since become red or before I change the tests and then I will bring them back all green by changing the code ?

# re: La domanda è sempre la stessa.

Left by Chris Dean at 3/6/2017 12:38 PM
Gravatar
The Borderlands series is one of the best in the lot of action gaming. Now the third installment of the series is about to release with the addition of two new varieties of items including the laser gun and I am waiting for this game to release to check it out myself. Hope it lives up to our expectations.You can check out Borderlands 3 release date

# re: La domanda è sempre la stessa.

Left by Brandydy at 3/7/2017 2:23 PM
Gravatar
View http://goldessayclub.com/ and you will become the ultra-writer with super-skills.

# re: La domanda è sempre la stessa.

Left by geometry dash 2.1 at 3/15/2017 8:17 AM
Gravatar
I really loved reading your blog. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well!

# re: La domanda è sempre la stessa.

Left by happy wheels at 3/15/2017 8:18 AM
Gravatar
I have read your article. it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it, again!

# re: La domanda è sempre la stessa.

Left by happy wheels demo at 3/15/2017 8:19 AM
Gravatar
I think this is an informative post and it is very useful and knowledgeable. I really enjoyed reading this post. big fan, thank you!

# re: La domanda è sempre la stessa.

Left by five nights at freddy's at 3/15/2017 8:19 AM
Gravatar
think this is one of the most significant information for me. And i’m glad reading your article. Thank for sharing!

# re: La domanda è sempre la stessa.

Left by flip diving at 3/15/2017 8:51 AM
Gravatar
Information you share really right, thank you, I'll follow you regularly to learn more, wish you many more interesting articles!

# re: La domanda è sempre la stessa.

Left by peterson5678 at 4/11/2017 2:11 PM
Gravatar
thanks for sharing i like this and i learned a lot.....
It's a good piece of information

walmart credit card |

walmart.com

Your comment:



 (will not be displayed)


 
 
 
Please add 8 and 4 and type the answer here:
 

Live Comment Preview:

 
«August»
SunMonTueWedThuFriSat
303112345
6789101112
13141516171819
20212223242526
272829303112
3456789