{"id":18331212,"url":"https://github.com/bankole2000/booklist","last_synced_at":"2025-04-09T18:13:32.658Z","repository":{"id":109352108,"uuid":"169173138","full_name":"Bankole2000/booklist","owner":"Bankole2000","description":"Simple Booklist with ES5 \u0026 ES6 Classes","archived":false,"fork":false,"pushed_at":"2019-03-18T14:39:24.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T18:13:28.817Z","etag":null,"topics":["classes","constructor","dom","es5","es6","events","localstorage","objects","prototype"],"latest_commit_sha":null,"homepage":"https://bankole2000.github.io/booklist/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bankole2000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-05T00:55:54.000Z","updated_at":"2019-03-18T14:39:25.000Z","dependencies_parsed_at":"2023-07-27T04:45:48.547Z","dependency_job_id":null,"html_url":"https://github.com/Bankole2000/booklist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bankole2000%2Fbooklist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bankole2000%2Fbooklist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bankole2000%2Fbooklist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bankole2000%2Fbooklist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bankole2000","download_url":"https://codeload.github.com/Bankole2000/booklist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085327,"owners_count":21045139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["classes","constructor","dom","es5","es6","events","localstorage","objects","prototype"],"created_at":"2024-11-05T19:28:43.295Z","updated_at":"2025-04-09T18:13:32.652Z","avatar_url":"https://github.com/Bankole2000.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The BookList\n\n[![Practice](https://img.shields.io/badge/Practice-Javascript-yellow.svg)]() \n\nA simple project to demonstrate syntactical differences between ES5 and ES6 classes - [View Demo](https://bankole2000.github.io/booklist/) \n\n## What it is\nIts a simple book list app using ES5 constructors vs ES6 classes. built with: \n\n* HTML\n* Vanilla JS - ES5 \u0026 ES6\n* [Skeleton CSS]() - Minimalist light-weight CSS framework \n* [Understanding]() - Mindfulness + Comprehension\n\n## Learning Points\n* ES5 Constructors and Prototypes\n* ES6 Classes\n* DOM Manipulation \u0026 Traversal\n* Event Handing \u0026 Delegation\n* Local Storage Object Methods\n\n## The gist of it\nConstructors and Prototypes in ES5\n```javascript\nfunction Book(prop1,prop2){\n  this.prop1 = prop1;\n  this.prop2 = prop2;\n} // Constructor with properties\nBook.prototype.someMethod = function(arg){\n  // prototype method\n}\nconst book = new Book(value1, value2); // Instantiate\nui.someMethod(arg); // Use prototype method\n```\nHere's the same thing but with ES6 classes\n```javascript\nclass UI {\n  constructor(prop1,prop2){\n    this.prop1 = prop1;\n    this.prop2 = prop2;\n  }\n  someMethod(arg){\n    // prototype method\n  }\n  static someStaticMethod(){\n    // a Static prototype method\n  }\n} // props \u0026 methods neatly in class\nconst book = new Book(prop1, prop2)\n```\n_sweet sweet syntactical sugar_\nBut either way is good to go really.\n\n## Acknowledgements\n* Special thanks to [@bradtraversy](https://github.com/bradtraversy) for his sheer awesomeness - _Gomenasai Sensei sama_\n* And Lord [@torvalds](https://github.com/torvalds) - Lord and Master of Open source. \n* And you, ofcourse, for bothering to read this... bro fist!\n_\u003cp align=\"center\"\u003e\"Adieu, while I meditate on these things. May the `git push --force` be with you\"_\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003cimg align=\"center\" src=\"https://i.imgur.com/bLBIZuy.jpg\" width=\"150\"/\u003e\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbankole2000%2Fbooklist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbankole2000%2Fbooklist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbankole2000%2Fbooklist/lists"}