0
Answered

Refactoring Guru is Awesome!

Tonka 6 months ago updated 6 months ago 2

Hi all,

just wanted to say Thanks! 

the website is awesome and provides lots of useful information.

I will get the book as well, just put it on my list.

I was checking your website last year and I think the option for choosing a language for the examples was not there. It was only Java based, I think. So, thank you for adding more languages, that's truly great!

I am a newbie developer, just about to turn one year on my first job so I was wondering - how do you choose a design pattern based on the problem/app/service you want to build? 

Wish you good luck! 

Cheers! :) 

Answer

Answer
Answered

Thanks, I'm really glad that you like my work.

As for your question, I really like the evolutionary approach for building apps: make it work somehow in v1.0, let it be ugly, slow and imperfect, just make it work. The problem with making the code nice in 1.0 is that you don't know a lot about how it all will look in the end, what caveats will you discover, etc. Once you're done with 1.0, refactor the crap out of it, make it fast, make it pretty in 2.0.

Apart from my work, I'd recommend you reading this great book on refactoring to patterns: https://www.amazon.com/Refactoring-Patterns-Joshua-Kerievsky/dp/0321213351

Answer
Answered

Thanks, I'm really glad that you like my work.

As for your question, I really like the evolutionary approach for building apps: make it work somehow in v1.0, let it be ugly, slow and imperfect, just make it work. The problem with making the code nice in 1.0 is that you don't know a lot about how it all will look in the end, what caveats will you discover, etc. Once you're done with 1.0, refactor the crap out of it, make it fast, make it pretty in 2.0.

Apart from my work, I'd recommend you reading this great book on refactoring to patterns: https://www.amazon.com/Refactoring-Patterns-Joshua-Kerievsky/dp/0321213351

Hi Alexander,

Thank you for your message! I will keep the book in mind. :)

I think I will follow your advice - I will just make it work and look for possible problems down the road.

I hope that after doing the first part and right before the refactoring part I will be able to look at all design patterns from a more practical point of view. 👍

Best,

Anton