Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAdam Tatusko
16,589 PointsConcise Code
Not using the .= (e.g., $output .= "more text"; vs. $output = $output + "more text";) and ++ (e.g., $count++; vs. $count = $count + 1;) operators makes my brain hurt! :-)
3 Answers
Adam Tatusko
16,589 PointsThanks for the recommendation. I am definitely going to take the Laravel course after I finish the PHP and MySQL courses.
marcmereyde
5,035 PointsWhile the code may not be concise, best practice or "modern PHP", it is still very helpful for beginners. Beginners need to see the long and detailed way before they can absorb the shortcuts.
Frameworks like Laravel are shortcuts that can only be understood once one has gone through the long/"old-fashioned" way.
Children learn additions and subtractions by hand before they use a calculator, because they first need to understand the concept. Nobody should use ++ before they understand that it really means + 1. It helps to write code the long way a few times to digest the materials.
I think Randy's approach makes sense pedagogically speaking. I hope TeamTreehouse will continue to pursue sound instructional design practices.
Jon Benson
12,168 PointsJon Benson
12,168 PointsAdam, No freaking kidding...I kept saying "why?!" make it stop! Or rather, don't show me what I shouldn't do! Thanks for the laugh!