Magento 2 is bringing along some drastic, although still in development phase. Yet exciting changes in comparison with its predecessor Magento 1.
Let’s try and break down some new prominent features in Magento 2, and what it does better than Magento 1.
- New file structure
When it comes to the new Magento 2, some Magento 1 developers will feel a bit lost at first as most of your working files have been greatly reorganized. Everything, except for config.xml, is now moved under “app” file, where you register your specific module.
Templates, layouts and js, css files for both frontend and backend is now placed neatly under “view” file of each module. Moreover, for all core and custom modules, there is now only one code pool.
These changes no doubt are a big help for developers to easily maintain code, without changing core functionality.
- New default theme and admin GUI
There is a new default theme, codename “Luma”, brought by Magento. This is a clean, eye-catching theme that has some considerable changes compared to Magento 1’s Madison Island theme, including tiles structure, fully responsive images and typography, and better performance. The core team also introduced a brand new, user-friendly backend UI.
- Bye-Bye Prototypes, Hello jQuery!
- Enhanced performance and scalability
Magento 2 is now faster, more secure and easier to use than Magento 1. Indexers come with new efficient updates to improve query performance, Magento performance toolkit to verify and optimize system performance, Varnish Cache is responsible for caching common request which helps reducing server load and speed up page load.
In the Enterprise Edition, only Full page caching was available. This is now built into the Community Edition of Magento. The feature makes way for the fastest shopping experience possible by lowering disk read and network round-trips.
- New built-in technologies: then and now
|Was in 1.0||Now in 2.0|
|Jquery in rwd package||PHP 5.5.x|
|HTML5/CSS3||Install needed components via|
Magento UI library
|Full page caching|
|Magento performance toolkit|
- Object manager, dependency injection and new command line interface
The Magento core team has been spending a lot of time trying to simplify and clear the idea of ecommerce development which is left from Magento 1. The new object-manager system/dependency injection has replaced the traditional class rewrite system, coming along with more design patterns.
Magento 2, furthermore is shipped with a new CLI containing some useful commands. You can also add new custom commands to run sample code, observe output, update installed modules, clear cache,etc.