Skip to content
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

根本沒有物件導向 #32

Open
linroex opened this issue Feb 6, 2016 · 1 comment
Open

根本沒有物件導向 #32

linroex opened this issue Feb 6, 2016 · 1 comment
Assignees

Comments

@linroex
Copy link
Collaborator

linroex commented Feb 6, 2016

把程式碼包裝成物件,不等於物件導向
我沒辦法告訴你要怎樣寫才能寫出「物件導向」的程式
但有個很簡單的檢驗方式:檢視自己寫的程式碼,能不能適用多種環境?例如spider物件可以拿來爬不同的網站,而不是單一的網站
以及,思考自己的程式碼,是否有重複的地方
在思考的同時,也要想著物件的那些概念(繼承、多形、方法、屬性等等),能否應用病解決問題

@linroex
Copy link
Collaborator Author

linroex commented Feb 12, 2016

spider = 爬、解析
channel 繼承 spider,自己爬、自己的解析、getAll{return post}、size
post.parse()

@AugustHong AugustHong assigned linroex and unassigned AugustHong Feb 15, 2016
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

No branches or pull requests

2 participants