Skip to content

assignment 10 #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

assignment 10 #5

wants to merge 1 commit into from

Conversation

MrEXV
Copy link

@MrEXV MrEXV commented Apr 20, 2016

in this assignment i choose composition method instead inheritance mode, because i think tweet data match point's X y coordinate. point's method is not needed.i only need to utilze the spatial information.

…de, because i think tweet data match point's X y coordinate. point's method is not needed.i only need to utilze the spatial information.
@MrEXV MrEXV changed the title in this assignment i choose composition method instead inheritance mo… assignment 10 Apr 20, 2016
self.source=source #the source
self.id_str=id_str #the id_str
self.lang=lang #the language
self.created_time=created_time #the create time
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something to think about: Is it better to write a class with many arguments that essential parse an existing data structure or a class that can take said data structure and parse it? If you are coming from a language that supports multiple constructors, you can achieve something similar using classmethod decorators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants