Refactoring Ruby

So if you read this title without knowing that I am learning some Ruby programming you may have started to picture me chipping away at at large red rock (ruby) to create the desired shape for my latest pendent…. well perhaps 😉

In some ways this visual could be true if the actual function of the object was not changed. In a nutshell Refactoring Ruby is basically analysing code and making changes that leaves it


without effecting the function of the code!

A number of diferent ideas were intorduced and then I was given an opportunity to have a go! for example:

#loop6.times{puts “Melbourne in lockdown”}



“I am in lockdown”+ +”!!!!”

#changes to

“I am in lockdown #{lockdown}!!!!”

About Sarah

Currently teaching in Collingwood College as a science and outdoor education high school teacher. After a huge 2020 I have decided to change direction and later in the year plan to undertake a coding bootcamp... After training to be a teacher via a Diploma of Education and Masters in Chemistry via thesis on the effects of bushfire on receiving water bodies (Gippsland 2002-2003) at Monash University Clayton Campus, Melbourne, Australia I have been teaching in Secondary schools in Melbourne including Sophia Mundi Steiner School . I have been an active member of the Australian Breastfeeding Association (ABA), represented Australia at the world Canoe Polo Championships, am keen on other sports: netball, basketball and road cycling. I am a keen gardener and owner of chickens as well as a German Shorthaired Pointer and mother to four children. Life is busy but I would not have it any other way!
This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.