推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
kingname
V2EX  ›  Python

基于数据流的框架设计有什么弊端?

  •  
  •   kingname ·
    kingname · Sep 5, 2015 · 1915 views
    This topic created in 3922 days ago, the information mentioned may be changed or developed.
    楼主得到一个任务,需要重构一个框架。我的设想是:

    这个框架只负责数据流的管理,它本身不含任何实际的功能,所有实际功能全部使用插件来实现。

    流程类似于:

    `plugin1 ---> 框架----->plugin2

    当然,实际上的流程不是线性的,数据流可能会多次流过这个框架。

    原来的框架代码量是 10 万行左右,请教一下各位,如果我使用这种想法来重构的话,会不会出现什么大问题或者大坑?

    谢谢各位~
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3196 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 5414617a · 42ms · UTC 13:10 · PVG 21:10 · LAX 06:10 · JFK 09:10
    ♥ Do have faith in what you're doing.