+4
Заплановано

Smell-specific refactoring code examples instead of generic ones?

Vitalii Pushkar 2 роки тому оновлено Alexander Shvets 10 місяців тому 5

Hi, is it possible to have more Smell-specific code examples?

When I go through a Code Smell slides, it suggests a few Recipes to fight the Code Smell but each recipy showcases a different code example, unrelated to the current Code Smell.

I understand where it comes from: Recipes (Refactorings) have their own, self-contained pages with an example and they are simply inserted in the Code Smells slides. But it would be so much easier to understand the idea, if all Recipes within a Code Smell slide secition focused on the same code!

Thank you

Відповідь

Відповідь
Заплановано

Vilalii, thanks for your feedback! I understand what you're talking about. That's one of the top-priority things that I'll be changing in the second edition of the course.

Відповідь
Заплановано

Vilalii, thanks for your feedback! I understand what you're talking about. That's one of the top-priority things that I'll be changing in the second edition of the course.

Do you have any working java code examples for refactoring which has BEFORE and AFTER refactoring? That would be great, I am teaching Refactoring to undergrad students, I would like to give them as an in-class exercise to practice. 

Any help would be highly appreciated. 

Hi Murat. If you're referring to full-fledged refactored programs, then no, sorry.

I am disappointed that there are no code examples.
What is the point of setting my language to Java if there are no code examples anyway?

This may be the number 1 cause I will not recommend the course to peers.

Before purchasing the course, it clearly said that there will be code examples!!!!!

> I am disappointed that there are no code examples.

Hi Omar! I have a feeling that you're just starting the course. Proceed further and you'll see a lot of examples.