Ruby On Rails Classroom image

Pooja  Negi / Student / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3 | 4|
Lessons:- Adding a Page

Of course, it’s never a bad idea to take a look at the page in a browser to make sure our tests aren’t completely crazy (Figure 3.8).

Refactor

Now that we’ve gotten to Green, we are free to refactor our code with confidence. Oftentimes code will start to ‘‘smell,’’ meaning that it gets ugly, bloated, or filled with repetition. The computer doesn’t care, of course, but humans do, so it is important to keep the code base clean by refactoring frequently. Having a good test suite is an invaluable tool in this regard, because it dramatically lowers the probability of introducing bugs while refactoring.

        Our sample app is a little too small to refactor right now, but code smell seeps in at every crack, so we won’t have to wait long: We’ll already get busy refactoring in Section 3.3.4.  

 

 

 

 
 
 
image
Pooja   Negi

Skills    Ruby On Rails

Qualifications :- High School - SSN high school, College/University - HNBGU, College/University - SRHU,
Location :-Ranipokhari,Rishikesh,Uttarakhand,India
Description:- Student
Explore
 

  Students (0)