13 コンポーネントとプラグイン

□未翻訳

□翻訳中

□翻訳完了(細田謙二)

■レビュー(Omi Chiba)

コンポーネントとプラグイン

コンポーネントとプラグインは比較的新しいweb2pyの機能です。それが何なのか、どうあるべきかに関して開発者の間では論争があります。多くの混乱は、他のソフトウェア・プロジェクトにおける異なるユーザーのこれらの用語に由来し、また、開発者が未だその仕様をまとめようと務めていることに由来しています。

Components and plugins are relatively new features of web2py, and there is some disagreement between developers about what they are and what they should be. Most of the confusion stems from the different uses of these terms in other software projects and from the fact that developers are still working to finalize the specifications.

しかしながら、プラグインのサポートは重要な機能であり、我々はいくつかの定義を提供する必要があります。これらの定義は最終的なものではなく、単に、本章で説明するプログラミング・パターンに従ったものです。

However, plugin support is an important feature and we need to provide some definitions. These definitions are not meant to be final, just consistent with the programing patterns we want to discuss in this chapter.

ここでは次の2つの問題を扱いたいと思います:

We will try to address two issues here:

  • サーバーの負荷を最小化し、コードの再利用を最大化するモジュール化されたアプリケーションをどのように構築できるか?

    • How can we build modular applications that minimize server load and maximize code reuse?

  • ほぼプラグイン・アンド・プレイ形式でコードの一部をどのように配布できるか?

    • How can we distribute pieces of code in a more or less plugin-and-play fashion?

コンポーネントは第1の問題を、プラグインは第2の問題を扱います。

Components address the first issue; plugins address the second.