Book Image

Magento Extensions Development

By : Jérémie Bouchet
Book Image

Magento Extensions Development

By: Jérémie Bouchet

Overview of this book

Magento has been revealed as the best and the most popular open source e-commerce platform in the world, with about 250k+ online stores. Magento 2 is the most recent version of this awesome toolset: every new and modern development techniques are used to offer a real modular approach and powerful architecture. The book will support you in the writing of innovative and complex extensions. Starting from the beginning, we will cover how to set up a development environment that allows you to be really efficient in your functionality writing, including GIT registering and many other development tools. We then move on to provide a large overview of the best practices to scale your module in a high-load environment. After these foundations, you will see how to use test driven-development (TDD) and unit tests to handle your code. We then build a complex extension together, step by step, and internationally-ready. Next, you will find out how to protect the users’ data. Finally, we will take a look a publishing the extension on the new Magento Connect marketplace and how to protect your intellectual property. After you read this book, you will know everything you need to know to become an invaluable extension editor, whether it is for your customers’ needs or for your own requirements.
Table of Contents (16 chapters)
Magento Extensions Development
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 7. Module Creation Etiquette

In this chapter, we will discuss the etiquette behind creating third-party extensions. Yes, our extension is now optimized for speed and it is fully bug-free, as we have seen in the previous chapter. Nevertheless, our customers trust us by purchasing our module and installing the software on their systems. We must prevent our extension from being a source of woe for our customers.

Some of the following parts will not seem immediately necessary to you because you are a "simple" extension editor. Keep in mind that these are important concepts that are found in all development projects and this culture will be in your extensions code.

For sure, a completely secure system is impossible, so the best approach you can use is to gauge the risk and usability, and ensure that your code does not degrade the security level of your customers' Magento infrastructure.

Do not underestimate the risk; the Internet is filled with people trying to break your code and crash...