The correct Way to get started on Discovering UI5 will be to stick to below movie series on Anubhav Trainings. You sometimes get started with HTML5, CSS, JS, and jQuery and afterwards go to SAP UI5 Framework and Fiori Growth with MVC. In the last stage discover OData Services to the Gateway server. All of this without the need of copy-paste of code