In short, test drive development or TDD is a development methodology by which tests are written before implementation code. Tests are written to fail and developers would work towards getting them to pass by writing the necessary code. This process is often described as the “Red, Green, Refactor” cycle.
That’s what I thought when I first learned to write tests. I was a freelance developer when I started. I was cash strapped and the last thing I needed was more work to get things done. Writing tests to me wasn’t only a concept that was hard to grasp, it was…
Simply said, it’s a plain ruby object that serves only a single purpose. Just like a chair. It only serves to let people sit on it. Period. There are many reasons for this. It makes it easier for anyone to understand what it does while also making it easier to write tests.
Insight: One thing I have learned over the years writing maintainable code is that objects in the software development world can be better understood and written by relating it to real world objects. Just like how you wouldn’t want your electric stove top to also serve as your…
It is essentially a gem that makes it easy for us to use Webpack in Rails applications.
So what does Webpack do? Simply put, it takes all of assets (JavaScripts, css, images, font files, etc.) and bundle them together to make one giant file that you can include into your Rails application. Internally it creates a dependency graph which helps it to navigate through all your asset dependencies in order to generate the bundled file. Like anything else, you can configure webpack via webpacker to generate multiple bundles. …
Entrepreneur. Ruby Engineer. Co-founder of Evercondo.com (Acquired). Currently Application Architect and Team Leader at Frontsteps.com