Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Nov. 20th 2014

Simple Rules for Simpler Code: Wrap Primitives (Sometimes)

Episode 5 Run Time 12:15

Download

The next guideline instructs us to always wrap primitives (things like strings and integers). However, I'm going to caution you on this one. You must first consider the complexity of your app, and the benefits that each wrapper provides.