Better Know A Ruby Thing: On The Use of Private Methods

In Ruby, a method without side effects should be public.You should only have a private method if there is a side effect such that the object will end up in a bad state if it called at the wrong time. (Also, you should try to avoid having methods that are dangerous if called at the wrong time…)You are already arguing with me.To be clear, lots of very smart people disagree with me about this.
Better Know A Ruby Thing: On The Use of Private Methods #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/better-know-a-ruby-thing-on-the-use-of-private-methods

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles