{"id":13630922,"url":"https://github.com/bahmutov/javascript-journey","last_synced_at":"2025-09-28T20:31:11.619Z","repository":{"id":65780571,"uuid":"46008809","full_name":"bahmutov/javascript-journey","owner":"bahmutov","description":"Source code for blog post Journey from procedural to reactive JavaScript with stops","archived":false,"fork":false,"pushed_at":"2016-08-04T20:42:53.000Z","size":38,"stargazers_count":332,"open_issues_count":4,"forks_count":25,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-12-27T21:03:13.407Z","etag":null,"topics":["example","javascript","tutorial"],"latest_commit_sha":null,"homepage":"http://glebbahmutov.com/blog/journey-from-procedural-to-reactive-javascript-with-stops/","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/bahmutov.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}},"created_at":"2015-11-11T20:44:44.000Z","updated_at":"2024-08-23T11:52:03.000Z","dependencies_parsed_at":"2023-02-09T16:35:24.656Z","dependency_job_id":null,"html_url":"https://github.com/bahmutov/javascript-journey","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/bahmutov%2Fjavascript-journey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fjavascript-journey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fjavascript-journey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fjavascript-journey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahmutov","download_url":"https://codeload.github.com/bahmutov/javascript-journey/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234558807,"owners_count":18852283,"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":["example","javascript","tutorial"],"created_at":"2024-08-01T22:02:03.364Z","updated_at":"2025-09-28T20:31:06.313Z","avatar_url":"https://github.com/bahmutov.png","language":"JavaScript","readme":"# javascript-journey\n\n\u003e Companion source code to [Journey from procedural to reactive JavaScript with stops][post]\n\n[![Build status][ci-image] ][ci-url]\n\nProblem: given a list of numbers, multiply each one by a constant\nand print the result.\n\n```js\nvar numbers = [3, 1, 7];\nvar constant = 2;\n// expected output [6, 2, 14]\n```\n\nTo install and run\n\n    git clone git@github.com:bahmutov/javascript-journey.git\n    cd javascript-journey\n    npm install\n\nThen execute individual files using `node src/\u003cfilename\u003e` command. The following\nimplementations are available\n\n* [procedural](src/00-procedural.js)\n* [procedural with individual functions](src/01-procedural-with-reuse.js)\n* [object-oriented](src/02-oo.js)\n* [object-oriented using plain prototype object](src/02-oo-plain-prototype-object.js)\n* [object-oriented using Array methods](src/02-oo-with-array-methods.js)\n* [object-oriented using ES6 class](src/02-oo-es6.js)\n* [functional](src/03-functional.js)\n* [functional recursive](src/03-functional-recursive.js)\n* [functional compose](src/03-functional-compose.js)\n* [functional using lodash](src/03-functional-with-lodash.js)\n* [functional using Ramda](src/03-functional-with-ramda.js)\n* [functional using LispyScript](src/03-functional-lispyscript.ls), see [reference](http://lispyscript.com/)\n* [point-free](src/03-point-free.js)\n* [lazy async sequence](src/04-lazy.js)\n* [promises in parallel](src/05-promises.js)\n* [promises in sequence](src/06-promises-sequence.js)\n* [events](src/07-events.js)\n* [events with decoupled code](src/08-events-decoupled.js)\n* [each step creates new emitter](src/09-step-emitters.js)\n* [reactive](src/10-reactive.js)\n* [generators](src/11-generators.js)\n* [streams](src/12-streams.js)\n* [transducers](src/13-transducers.js)\n* [dependency injection](src/14-dependency-injection.js)\n* [immutable data using seamless-immutable](src/15-immutable-using-seamless.js)\n* [immutable data using immutable.js](src/15-immutable-using-immutable.js)\n* [immutable using Redux pattern](src/15-immutable-with-redux.js)\n* [async await](src/16-async-await.js)\n* [asm.js](src/17-asm.js)\n* [Maybe monad](src/18-maybe-monad.js)\n\n[post]: http://glebbahmutov.com/blog/journey-from-procedural-to-reactive-javascript-with-stops/\n\n### Small print\n\nAuthor: Gleb Bahmutov \u0026copy; 2015\n\n* [@bahmutov](https://twitter.com/bahmutov)\n* [glebbahmutov.com](http://glebbahmutov.com)\n* [blog](http://glebbahmutov.com/blog/)\n\nLicense: MIT - do anything with the code, but don't blame me if it does not work.\n\nSpread the word: tweet, star on github, etc.\n\nSupport: if you find any problems with this module, email / tweet /\n[open issue](https://github.com/bahmutov/javascript-journey/issues) on Github\n\n## MIT License\n\nCopyright (c) 2015 Gleb Bahmutov\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\n[ci-image]: https://travis-ci.org/bahmutov/javascript-journey.svg?branch=master\n[ci-url]: https://travis-ci.org/bahmutov/javascript-journey\n","funding_links":[],"categories":["JavaScript","Resources"],"sub_categories":["[Elm](http://elm-lang.org)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fjavascript-journey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahmutov%2Fjavascript-journey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fjavascript-journey/lists"}