23.02.2015 Views

www.it-ebooks.info

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Understanding and Setting Up Our Development Environment<br />

Choosing an IDE<br />

Choosing the right IDE is mostly a matter of a personal developer's taste. However,<br />

choosing the right IDE can be cr<strong>it</strong>ical for a Magento developer.<br />

The challenge for the IDEs comes mostly from Magento's extensive usage of factory<br />

names. This makes the implementation of certain features such as code completion<br />

(also known as intellisense) difficult. Currently, there are two IDEs that excel on their<br />

native support of Magento – NetBeans and PhpStorm.<br />

Although NetBeans is open source and has been around for a long time, PhpStorm has<br />

been taking the upper hand and gaining more support from the Magento commun<strong>it</strong>y.<br />

Furthermore, a recent release of Magicento, a plugin specifically created to extend<br />

and integrate Magento into PhpStorm, has made <strong>it</strong> the best option among currently<br />

available options.<br />

Working w<strong>it</strong>h a version control system<br />

The Magento code base is very extensive, comprising of over 7,000 files and close to a<br />

million and half lines of code. For this reason, working w<strong>it</strong>h a version control system<br />

is not only a good practice but also a necess<strong>it</strong>y.<br />

Version control systems are used to keep track of changes across multiple files and<br />

by multiple developers; by using a version control system we gain access to very<br />

powerful tools.<br />

Of the several version control systems available (G<strong>it</strong>, SVN, Mercurial), G<strong>it</strong> deserves<br />

special attention due to <strong>it</strong>s simplic<strong>it</strong>y and flexibil<strong>it</strong>y. By releasing the upcoming version<br />

2 of Magento on G<strong>it</strong>hub, a G<strong>it</strong> hosting service, the Magento core development team has<br />

recognized the importance that G<strong>it</strong> has among the Magento commun<strong>it</strong>y.<br />

For more <strong>info</strong>rmation on Magento2, please vis<strong>it</strong><br />

https://g<strong>it</strong>hub.com/magento/magento2.<br />

G<strong>it</strong>hub now includes a .g<strong>it</strong>ignore file specifically for Magento, which will ignore<br />

all the files in the Magento core and only keep track of our own code.<br />

[ 24 ]<br />

<strong>www</strong>.<strong>it</strong>-<strong>ebooks</strong>.<strong>info</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!