28 May '17, 5pm

Hi Ruby-devs! Do you want to feel confident in your next interview? Read about SOLID principles:

S[O]LID - Open/Closed Principle by example 28 May 2017 Patterns Ruby Design S[O]LID - Open/Closed Principle by example Subscribe to receive new articles. No spam. Quality content. Follow @makagon In my previous article I covered Single Responsibility Principle . Today I'm going to write about the "O" in SOLID - Open/Closed Principle. Definition of Open/Closed Principle says: software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification When I read this definition first time I got stuck because it was so hard to figure out how something can be open to extension but closed for modification. How can we extend functionality without changing code, right? But we can achieve that. Let me show you by example how we can do that. class NotificationSender def send(user, message) EmailSender.send(user, message) if user.active? end end ...

Full article: http://rubyblog.pro/2017/05/solid-open-closed-principle-b...

Tweets

S[O]LID - Open/Closed Principle by example

rubyflow.com 28 May '17, 5pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Terrace classic for summer. The @adidasoriginal...

footasylum.com 28 May '17, 5pm

adidas Originals Gazelle OG Trainers in Solid Grey and White. Freshening up the iconic; the Gazelle silhouette returns to ...

[S]OLID - Single Responsibility Principle by ex...

rubyflow.com 20 May '17, 9pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Software Developer - Ruby on Rails, PHP, .NET -...

redolphin.com 28 May '17, 5am

Web Developer | .NET, Ruby on Rails, PHP, Java, Python | Leicester | £50,000 - £60,000pa People Source Consulting are acti...