{"id":28794375,"url":"https://github.com/raravi/todo-vanilla","last_synced_at":"2026-05-08T00:43:25.821Z","repository":{"id":42944325,"uuid":"233463310","full_name":"raravi/todo-vanilla","owner":"raravi","description":"A simple ToDo web app using only javascript!","archived":false,"fork":false,"pushed_at":"2023-01-09T12:52:14.000Z","size":286,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T03:14:56.061Z","etag":null,"topics":["babel","bem","css","es5","es6","javascript","mvc-pattern","transpile"],"latest_commit_sha":null,"homepage":"https://raravi.github.io/todo-vanilla/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raravi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-12T21:45:06.000Z","updated_at":"2023-04-11T15:28:10.000Z","dependencies_parsed_at":"2023-02-08T12:01:20.167Z","dependency_job_id":null,"html_url":"https://github.com/raravi/todo-vanilla","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raravi/todo-vanilla","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raravi%2Ftodo-vanilla","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raravi%2Ftodo-vanilla/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raravi%2Ftodo-vanilla/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raravi%2Ftodo-vanilla/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raravi","download_url":"https://codeload.github.com/raravi/todo-vanilla/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raravi%2Ftodo-vanilla/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260475005,"owners_count":23014807,"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":["babel","bem","css","es5","es6","javascript","mvc-pattern","transpile"],"created_at":"2025-06-18T02:35:06.786Z","updated_at":"2026-05-08T00:43:25.813Z","avatar_url":"https://github.com/raravi.png","language":"JavaScript","funding_links":["https://ko-fi.com/Y8Y21VCIL"],"categories":[],"sub_categories":[],"readme":"# todo-vanilla\n\nA simple ToDo web app using only javascript!\n\n![license](https://img.shields.io/github/license/raravi/todo-vanilla)\u0026nbsp;\u0026nbsp;![version](https://img.shields.io/github/package-json/v/raravi/todo-vanilla)\u0026nbsp;\u0026nbsp;![dependencies](https://img.shields.io/depfu/raravi/todo-vanilla)\u0026nbsp;\u0026nbsp;![last-commit](https://img.shields.io/github/last-commit/raravi/todo-vanilla)\n\nThis project is written to highlight the differences between ES5 / ES6 code. And provide an easy reference to refactor the same app into MVC pattern.\n\nIt is motivated by [todomvc](http://todomvc.com), and conducted as an exercise to understand the differences of each method followed.\n\nFor all methods,\n* **Semantic HTML** elements used for better organization of code.\n* [BEM](http://getbem.com/) used to write CSS. **BEM** helped to incorporate changes to the design of the app with minimal updates to the CSS.\n\n## Method 1: ES5\n\nThe first iteration was used to get Todo app working as fast as possible. The javascript was written in classical style. There is no separation of **UI/Business Logic/Data**.\n\n## Method 2: ES6\n\nUsing ES6 features led to cleaner code.\n* `const / let` instead of `var` variables.\n* `for..of` loop is more natural.\n* arrow functions don't need `this` to be set separately.\n* spread operator makes life much easier :)\n\n## Method 3: MVC pattern\n\nRefactoring the code to be written in MVC requires quite a bit of boilerplate. But it makes writing code easier!\n* The focus is adding each functionality one after the other.\n* Thinking in terms of what each part handles (Model, View, Controller) reduced errors.\n* When errors cropped up, they were far easier to debug than in the previous approaches!\n* Maintainable code.\n\n## ES5 transpiled\n\nThis folder contains the transpiled output of the ES6 Javascript code. It is generated to understand the performance of transpiled code on older browsers.\n\n* Does the transpilation add too much extra code for it to be not useful?\n* Which ES6 features add the most code?\n\nBy knowing these, we get an idea of the benefits of using ES6 features too!\n\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Y8Y21VCIL)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraravi%2Ftodo-vanilla","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraravi%2Ftodo-vanilla","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraravi%2Ftodo-vanilla/lists"}