The Right Way to start Discovering UI5 will be to observe underneath movie sequence on Anubhav Trainings. You usually start with HTML5, CSS, JS, and jQuery and after that move to SAP UI5 Framework and Fiori Improvement with MVC. In the last section master OData Products and services over the Gateway server. All this with out duplicate-paste of code