Data?1498155293

Rails' CurrentAttributes considered harmful - Ryan Bigg

Very briefly, it makes program state unpredictable.To elaborate, imagine you have a couple of objects that both use the same global variable. Assuming you're not using a source of randomness anywhere within either module, then the output of a particular method can be predicted (and therefore tested) if the state of the system is known before you execute the method.
#ruby #rails #rubyonrails #bosnia #programming #tutorials #news

U
Nezir Zahirovic

Freelance software developer Ruby On Rails (4 years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles