{"action":"created","issue":{"url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/970","repository_url":"https://api.github.com/repos/getify/You-Dont-Know-JS","labels_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/970/labels{/name}","comments_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/970/comments","events_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/970/events","html_url":"https://github.com/getify/You-Dont-Know-JS/issues/970","id":209826769,"number":970,"title":"this & object prototypes Chapter 4: Potential inaccuracy on the concept of \"data structures\"?","user":{"login":"x-ji","id":2999209,"avatar_url":"https://avatars0.githubusercontent.com/u/2999209?v=4","gravatar_id":"","url":"https://api.github.com/users/x-ji","html_url":"https://github.com/x-ji","followers_url":"https://api.github.com/users/x-ji/followers","following_url":"https://api.github.com/users/x-ji/following{/other_user}","gists_url":"https://api.github.com/users/x-ji/gists{/gist_id}","starred_url":"https://api.github.com/users/x-ji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x-ji/subscriptions","organizations_url":"https://api.github.com/users/x-ji/orgs","repos_url":"https://api.github.com/users/x-ji/repos","events_url":"https://api.github.com/users/x-ji/events{/privacy}","received_events_url":"https://api.github.com/users/x-ji/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-23T17:17:53Z","updated_at":"2017-08-15T14:53:46Z","closed_at":"2017-08-15T14:53:46Z","body":"At the beginning of Chapter 4 of *this & object prototypes*, you have \r\n\r\n> OO or class oriented programming stresses that data intrinsically has associated behavior (of course, different depending on the type and nature of the data!) that operates on it, so proper design is to package up (aka, encapsulate) the data and the behavior together. **This is sometimes called \"data structures\" in formal computer science.**\r\n\r\nIt seems to me that \"data structures\" should not be in any way related to OOP... It just describes the data itself and shouldn't entail the \"operations that are associated to/packaged with it\". In fact, there is a book out there called exactly [*Purely Functional Data Structures*](https://books.google.com/books/about/Purely_Functional_Data_Structures.html?id=SxPzSTcTalAC&redir_esc=y)!\r\n\r\nThe book series is wonderful, but to state that the idea of packaging data and behavior together is \"called data structures in formal computer science\" sounded really jarring and probably wrong..."},"comment":{"url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/comments/322491936","html_url":"https://github.com/getify/You-Dont-Know-JS/issues/970#issuecomment-322491936","issue_url":"https://api.github.com/repos/getify/You-Dont-Know-JS/issues/970","id":322491936,"user":{"login":"getify","id":150330,"avatar_url":"https://avatars1.githubusercontent.com/u/150330?v=4","gravatar_id":"","url":"https://api.github.com/users/getify","html_url":"https://github.com/getify","followers_url":"https://api.github.com/users/getify/followers","following_url":"https://api.github.com/users/getify/following{/other_user}","gists_url":"https://api.github.com/users/getify/gists{/gist_id}","starred_url":"https://api.github.com/users/getify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getify/subscriptions","organizations_url":"https://api.github.com/users/getify/orgs","repos_url":"https://api.github.com/users/getify/repos","events_url":"https://api.github.com/users/getify/events{/privacy}","received_events_url":"https://api.github.com/users/getify/received_events","type":"User","site_admin":false},"created_at":"2017-08-15T14:53:46Z","updated_at":"2017-08-15T14:53:46Z","body":"Thanks for the discussion. I think I will leave the text as-is for now."}}
{"actor":{"display_login":"getify"}}