-
Notifications
You must be signed in to change notification settings - Fork 0
Functional Programming Object Oriented Programming
tl;dr je houdt je variabelen binnen de functies, cluttered daarmee niet de global scope en zorgt er zo voor dat je code alleen bestaat uit blokken die al geprocessede info eruit yeeten. =minder spaghetticode=minder 'onopvallende invloeden op andere stukken code'=minder bugs
Dingen die ik geprobeerd heb, niet alles werkte dus niet alles zit ook in mn uiteindelijke code (even uit al mn geopende tabjes)
https://www.d3-graph-gallery.com/graph/bubble_legend.html
https://www.tutorialsteacher.com/d3js/loading-data-from-file-in-d3js
Data uit csv naar hierarchie: https://observablehq.com/@d3/d3-stratify https://beta.vizhub.com/Razpudding/2b231e4f093b411bbb259115019e02ea?edit=files&file=index.js
Data uit twee datasets combinen: http://learnjsdata.com/combine_data.html https://github.com/cmda-tt/course-19-20/tree/master/examples/functional-patterns https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat https://googlechrome.github.io/samples/object-assign-es6/
https://developer.mozilla.org/nl/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach https://developer.mozilla.org/nl/docs/Web/JavaScript/Reference/Global_Objects/Array/map https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys
Data uit de twee arrays combinen: https://stackoverflow.com/questions/17500312/is-there-some-way-i-can-join-the-contents-of-two-javascript-arrays-much-like-i/17500836#17500836
https://github.com/cmda-tt/course-19-20/blob/master/examples/functional-patterns/impure.md https://www.w3schools.com/js/js_functions.asp arrow functions https://www.freecodecamp.org/news/when-and-why-you-should-use-es6-arrow-functions-and-when-you-shouldnt-3d851d7f0b26/