{"action":"created","issue":{"url":"https://api.github.com/repos/stefanbund/cis155/issues/18","repository_url":"https://api.github.com/repos/stefanbund/cis155","labels_url":"https://api.github.com/repos/stefanbund/cis155/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/stefanbund/cis155/issues/18/comments","events_url":"https://api.github.com/repos/stefanbund/cis155/issues/18/events","html_url":"https://github.com/stefanbund/cis155/issues/18","id":150722871,"number":18,"title":"Week 12/13 Discussion","user":{"login":"kayvee","id":6440787,"avatar_url":"https://avatars.githubusercontent.com/u/6440787?v=3","gravatar_id":"","url":"https://api.github.com/users/kayvee","html_url":"https://github.com/kayvee","followers_url":"https://api.github.com/users/kayvee/followers","following_url":"https://api.github.com/users/kayvee/following{/other_user}","gists_url":"https://api.github.com/users/kayvee/gists{/gist_id}","starred_url":"https://api.github.com/users/kayvee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayvee/subscriptions","organizations_url":"https://api.github.com/users/kayvee/orgs","repos_url":"https://api.github.com/users/kayvee/repos","events_url":"https://api.github.com/users/kayvee/events{/privacy}","received_events_url":"https://api.github.com/users/kayvee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-25T01:29:23Z","updated_at":"2016-04-28T17:56:57Z","closed_at":null,"body":"> I would like for you to reflect upon how constructing classes in the way you have been has aided your stock market. What facets of each class has led you to success ( or complication, if it's the case), when composing this large project? \r\n\r\nSuccess: I believe, as mentioned before, that classes make the project much more approachable. You can compartmentalize the different 'parts' and aspects to a program and try to have them link together to solve problems and accomplish what the program needs to. Rather than trying to tackle an entire program at once in a functional way, sometimes it is good to know certain aspects already work and can be integrated in another fashion.\r\n\r\nComplications: Something I am still having trouble understanding, not in concept but in practice, are instances. When I randomly create new stocks, how are they accessed? What holds the reference? How do I utilize all the moving parts when they exist and use them in a 'moving' program like a simulation."},"comment":{"url":"https://api.github.com/repos/stefanbund/cis155/issues/comments/215510578","html_url":"https://github.com/stefanbund/cis155/issues/18#issuecomment-215510578","issue_url":"https://api.github.com/repos/stefanbund/cis155/issues/18","id":215510578,"user":{"login":"stefanbund","id":1642220,"avatar_url":"https://avatars.githubusercontent.com/u/1642220?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanbund","html_url":"https://github.com/stefanbund","followers_url":"https://api.github.com/users/stefanbund/followers","following_url":"https://api.github.com/users/stefanbund/following{/other_user}","gists_url":"https://api.github.com/users/stefanbund/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanbund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanbund/subscriptions","organizations_url":"https://api.github.com/users/stefanbund/orgs","repos_url":"https://api.github.com/users/stefanbund/repos","events_url":"https://api.github.com/users/stefanbund/events{/privacy}","received_events_url":"https://api.github.com/users/stefanbund/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T17:56:57Z","updated_at":"2016-04-28T17:56:57Z","body":"Great question here on multiple instances of classes. I try hard to get students to experiment with the notion of building a multitude of classes, within a collection known as the array list. This means that within the array list, there are references to a multitude of objects. Hence when you iterate, or traverse that array list, you get a reference to each of those objects.\n\nThis is a very important professional programming skills, as each day you will find there are situations where an object, customized for your purposes, can add up to create interesting collections. Once you have a collection of interesting objects, you have the ability to work with each one, and its specific details. \n\nYou are absolutely correct in your first comment about having the ability to customize a class, specific to your purpose. Once you make several small classes, which mirror real world things, or mechanisms which you require, it is easy to code them. This is because each class is highly legible, and easy to remember how they work. Thus when you use custom objects you seem to be creating your own version of the Java language, specific to your programming objectives.\n\nThanks again for this great comment this week. \n\nFrom Stefan\n\n> On Apr 24, 2016, at 6:29 PM, Kaveh Varjoy <notifications@github.com> wrote:\n> \n> I would like for you to reflect upon how constructing classes in the way you have been has aided your stock market. What facets of each class has led you to success ( or complication, if it's the case), when composing this large project?\n> \n> Success: I believe, as mentioned before, that classes make the project much more approachable. You can compartmentalize the different 'parts' and aspects to a program and try to have them link together to solve problems and accomplish what the program needs to. Rather than trying to tackle an entire program at once in a functional way, sometimes it is good to know certain aspects already work and can be integrated in another fashion.\n> \n> Complications: Something I am still having trouble understanding, not in concept but in practice, are instances. When I randomly create new stocks, how are they accessed? What holds the reference? How do I utilize all the moving parts when they exist and use them in a 'moving' program like a simulation.\n> \n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly or view it on GitHub\n> \n"}}