Categories


Archives


Recent Posts


Categories


Eschewing new in Javascript and Coding Standards

astorm

Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Updated for Magento 2! No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

This Stack Overflow post about some weird differences between direct instantionation of an Array vs. using the new Array constructor function is a great example of why coding standards can be more than just window dressing. It’s not that one of the methods is better than the other, but by chosing one over the other you avoid the mental overhead of accounting for inconsistant behavior in whatever language you’re using.

Copyright © Alana Storm 1975 – 2023 All Rights Reserved

Originally Posted: 4th June 2018

email hidden; JavaScript is required