Changes between Version 45 and Version 46 of DEVELOPMENT_OVERVIEW


Ignore:
Timestamp:
12/15/08 22:32:40 (16 years ago)
Author:
danvisel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DEVELOPMENT_OVERVIEW

    v45 v46  
    55This is a step-by-step tutorial for installing the tools used during Sophie2 development. [[BR]] 
    66 
    7 '''Accounts creation'''. In order to communicate with the team members, you must create the following accounts: 
    8   * Google groups: [http://groups.google.com/group/sophie2-devs Developers Mail Group], [http://groups.google.com/group/sophie2-users Users Mail Group]. You must have a gmail account to apply for a membership. 
     7'''Accounts creation'''. In order to communicate with team members, you must create the following accounts: 
     8  * Google groups: [http://groups.google.com/group/sophie2-devs Developers Mail Group], [http://groups.google.com/group/sophie2-users Users Mail Group]. You must have a gmail account to apply for membership. 
    99  * Skype account: provide it to our Human Resource Manager and you will be included in the group chat. 
    1010  * SVN/Trac accounts: ask someone from the team for these.[[BR]] 
    1111 
    12 '''Workstation setup'''. Every machine in the office should have at least ''two users'': one for private usage (you choose your username and password) and one for public usage(ask a team member for the username and password). A ''text editor'' is neccesary (for example, Notepad++, you can download it from [http://notepad-plus.sourceforge.net/uk/site.htm]). Other important software: ''web browser'', ''PDF reader'', ''Flash player'', ''Skype'',  
    13 ''Sophie'' ([http://opensophie.org/en/downloads]).[[BR]] 
     12'''Workstation setup'''. Every machine in the office should have at least ''two users'': one for private usage (you choose your username and password) and one for public usage(ask a team member for the username and password). A ''text editor'' is necessary (for example, Notepad++, you can download it from [http://notepad-plus.sourceforge.net/uk/site.htm]). Other important software: ''web browser'', ''PDF reader'', ''Flash player'', ''Skype'',  
     13''Sophie'' ([http://sophieproject.cntv.usc.edu/]).[[BR]] 
    1414 
    15 '''SVN setup'''. Subversion (SVN) is the version control system that we use. On Windows you can use TortoiseSVN (download it from [http://tortoisesvn.net/download]). The official site of SVN is [http://subversion.tigris.org/]. There you can find SVN binaries for other OS-es. You must install the subversion client in order to continue to the next step, e.g.[[BR]] 
     15'''SVN setup'''. Subversion (SVN) is the version control system that we use. On Windows you can use TortoiseSVN (download it from [http://tortoisesvn.net/download]). The official site of SVN is [http://subversion.tigris.org/]. There you can find SVN binaries for other OSs. You must install the Subversion client in order to continue to the next step[[BR]] 
    1616 
    17 '''Repository setup'''. Once you have installed SVN, you can download the repository on your own machine. Basically, this means you will have your copy of the project. In Windows, just choose a folder on your drive, right click and select SVN Checkout. Further explanation for the repository links / structure / rules for commiting can be found at [wiki:PLATFORM_STANDARDS_REPOSITORY]. Just before you continue to the next step, you should know how to submit a file to the repository (for example, your daily report).[[BR]] 
     17'''Repository setup'''. Once you have installed SVN, you can download the repository on your own machine. Basically, this means you will have your copy of the project. In Windows, just choose a folder on your drive, right click and select SVN Checkout. Further explanation for the repository links / structure / rules for committing can be found at [wiki:PLATFORM_STANDARDS_REPOSITORY]. Just before you continue to the next step, you should know how to submit a file to the repository (for example, your daily report).[[BR]] 
    18181) Create the new file in the desired folder (for reports, it is /manage/reports/{current iteration}/. The format of reports is explained below, in the "Process" chapter). [[BR]]  
    19 2) Use "svn add" to schedule the file for commiting to the repository. [[BR]] 
    20 3) Use "svn commit" to commit it. Attention: commiting without comment is NOT allowed! [[BR]] 
    21 A sample boook about subversion can be found at [http://svnbook.red-bean.com/].[[BR]] 
     192) Use "svn add" to schedule the file for committing to the repository. [[BR]] 
     203) Use "svn commit" to commit it. Attention: committing without comment is NOT allowed! [[BR]] 
     21A sample book about subversion can be found at [http://svnbook.red-bean.com/].[[BR]] 
    2222 
    23 '''JDK'''. Since Sophie2 is written in Java, it requires Java Development Kit (JDK) in order to delop it, and Java Runtime Environment to run it. JDK can be downloaded and installed from [http://java.sun.com]. [[BR]] 
     23'''JDK'''. Since Sophie2 is written in Java, it requires Java Development Kit (JDK) in order to develop it, and Java Runtime Environment to run it. JDK can be downloaded and installed from [http://java.sun.com]. [[BR]] 
    2424 
    2525'''Maven setup'''. Maven is a software tool for Java project management and build automation. Downloads and installation  
    26 instructions are located at [http://maven.apache.org/download.html]. A tutotial for building with Maven is written here:  
     26instructions are located at [http://maven.apache.org/download.html]. A tutorial for building with Maven is written here:  
    2727[wiki:PLATFORM_DEPLOYMENT_BUILD_MAVEN]. If you build the project with maven, you would probably need to open  
    2828[http://asteasolutions.net:7080/sophie2/browser/trunk/sophie2-platform/old/lib/readme.txt sophie2-platform/old/lib/readme.txt] and read the bottom lines. [[BR]] 
    2929 
    30 '''Eclipse setup'''.  The software platform we use for developing Sophie2 is Eclipse. First of all, the intallation.  
    31 Download the latest eclipse version from [http://www.eclipse.org/downloads/] and install it to your computer. Then, modify your compiler esttings according to the [wiki:COMPILER_SETTINGS] document. The next two steps, subclipse installation and maven integation, are described in [wiki:PLATFORM_INFRASTRUCTURE_OVERVIEW#EclipsePlug-ins]. The most important for these is that they are eclipse plugins, which integrate the subversion and maven functionalities in Eclipse. The M2 plugin is required for loading our maven project in eclipse. Once you have installed the plugins, you can follow the steps from [wiki:PLATFORM_DEPLOYMENT_BUILD_ECLIPSE], which describes how to import Sophie2 in Eclipse and run the FakeAuthor configuration. [[BR]] 
     30'''Eclipse setup'''.  The software platform we use for developing Sophie 2 is Eclipse. First of all, the installation.  
     31Download the latest eclipse version from [http://www.eclipse.org/downloads/] and install it to your computer. Then, modify your compiler settings according to the [wiki:COMPILER_SETTINGS] document. The next two steps, Subclipse installation and Maven integration, are described in [wiki:PLATFORM_INFRASTRUCTURE_OVERVIEW#EclipsePlug-ins]. The most important for these is that they are eclipse plugins, which integrate the subversion and maven functionalities in Eclipse. The M2 plugin is required for loading our maven project in eclipse. Once you have installed the plugins, you can follow the steps from [wiki:PLATFORM_DEPLOYMENT_BUILD_ECLIPSE], which describes how to import Sophie2 in Eclipse and run the FakeAuthor configuration. [[BR]] 
    3232You already have everything needed to develop Sophie2 :) 
    3333 
     
    3535 
    3636= 1. The Project = 
    37 '''The Goal'''. The most important part of a project is its goal. So, the goal of our project is to take the good aspects of Sophie and optimize them, as well as to remove the bad ones. [[BR]] 
     37'''The Goal'''. The most important part of a project is its goal. So, the goal of our project is to take the good aspects of Sophie and optimize them, add features as well as to remove others. [[BR]] 
    3838 
    39 '''Schedule'''. The Sophie2 project is split into about 600 tasks, each with one or more revisions (totally, about 2000). These tasks have several states, and you will learn about them in the next chapter. The tasks are divided into 12 sprints (iterations), each sprint is about 1 month long. The methodology used for the schedule of the project is not exactly SCRUM, but is similar to it. For more information what SCRUM is, read [http://en.wikipedia.org/wiki/Scrum_(development)]. [[BR]] 
     39'''Schedule'''. The Sophie2 project is split into about 600 tasks, each with one or more revisions (in total, about 2000). These tasks have several states, and you will learn about them in the next chapter. The tasks are divided into 12 sprints (iterations). Each sprint is about 1 month long. The methodology used for the schedule of the project is not exactly SCRUM, but is similar to it. For more information what SCRUM is, read [http://en.wikipedia.org/wiki/Scrum_(development)]. [[BR]] 
    4040 
    4141'''Layers'''. Task names are also grouped in several development layers: 
    4242 * PLATFORM: specifies coding standards, platform structure, plugin structure, as well as tools for building the project. 
    43  * CORE: the smallest layer; it provides fundamental functionalities for every part of the platform. It includes the properties library (ProLib), logging, modulalrity. 
     43 * CORE: the smallest layer; it provides fundamental functionalities for every part of the platform. It includes the properties library (ProLib), logging, and modularity. 
    4444 * BASE: provides basic GUI (menus, halos, palettes, layout). 
    4545 * MAIN and EXTRA: they contain the main functionality, which makes Sophie2 a complete platform. These two are split according to the dependencies, so that MAIN does not depend on EXTRA. 
    4646 * SCS: Sophie community server. It includes the Trac system we use, the Subversion, provides information for the external contributors. 
    4747 * S2S: Sophie2 server. This is the server product. 
    48  * SUPPORTING_ARTIFACTS: te project schedule, the backlog and the process are categorized as supporting artifacts. 
    49  * END_PRODUCT: here are a few tasks related to application tuning and making user help. [[BR]] 
     48 * SUPPORTING_ARTIFACTS: the project schedule, the backlog and the process are categorized as supporting artifacts. 
     49 * END_PRODUCT: here are a few tasks related to application tuning and creating user help. [[BR]] 
    5050 
    51 '''Additional'''. The non-development side of the project is described in the [wiki:PROJECT_OVERVIEW] document. There you can read some things about Astea, Sophie, the license we use, and other useful things. 
     51'''Additional'''. The non-development side of the project is described in the [wiki:PROJECT_OVERVIEW] document. This includes information about t Astea Solutions, Sophie, the license we use, and other useful things. 
    5252 
    5353 
     
    5555= 2. The Process = 
    5656This chapter includes the states of each task until it is completed, the rules you have to follow when performing a task, some good/bad examples. The "writing reports" thing is also placed here. [[BR]] 
    57 Generally speaking, every task must first be analyzed, then a design must be made, and finally the design is implemented. If the task is a coding one, its implementation is tested. After each phase, a review is made. The tasks, sorted by iterations, can be looked at [http://asteasolutions.net:7080/sophie2/roadmap]. The exact task states and much more are described and regularly updated at [wiki:PROCESS]. This document is fundamental, so read it carefully. Also, tasks are several different types. For explanation what the types are, read [wiki:PLATFORM_STANDARDS_GENERAL]. [[BR]] 
    58 Every state of a task is important. However, here are the existing recomendations for performing various actions: 
    59  * Analyzing: [wiki:PLATFORM_STANDARDS_ANALYSIS how to write good analysis]. Please note, that when you create an analysis, the wiki page you write it in most probably won't exist. If you are logged in the Trac, you will be asked whether to use a page template. You should use TaskPageTemplate. 
     57Generally speaking, every task must first be analyzed, then a design must be made, and finally the design is implemented. If the task is a coding one, its implementation is tested. After each phase, a review is made. The tasks, sorted by iterations, can be looked at [http://asteasolutions.net:7080/sophie2/roadmap]. The exact task states and much more are described and regularly updated at [wiki:PROCESS]. This document is fundamental, so read it carefully. Also, tasks are of several different types. For an explanation what the types are, read [wiki:PLATFORM_STANDARDS_GENERAL]. [[BR]] 
     58Every state of a task is important. However, here are the existing recommendations for performing various actions: 
     59 * Analyzing: [wiki:PLATFORM_STANDARDS_ANALYSIS how to write good analysis]. Please note that when you create an analysis, the wiki page you write it in most probably won't exist. If you are logged in the Trac, you will be asked whether to use a page template. You should use TaskPageTemplate. 
    6060 * Designing: [wiki:PLATFORM_STANDARDS_DESIGN how to write design] - design recommendations. 
    61  * Coding: [wiki:CODE_TASKS_REQUIREMENTS code tasks requirements], [wiki:CODE_SMELLS code smells](bad code examples), [wiki:LOGGING logging]. [wiki:JAVADOC_CONVENTIONS Javadoc] should also be here. 
    62  * Testing: [wiki:TESTING auto tests](unit / system), [wiki:PLATFORM_STANDARDS_MANUAL_TESTS_R0 manual tests]. [[BR]] 
     61 * Coding: [wiki:CODE_TASKS_REQUIREMENTS code tasks requirements], [wiki:CODE_SMELLS code smells] (bad code examples), [wiki:LOGGING logging]. [wiki:JAVADOC_CONVENTIONS Javadoc] should also be here. 
     62 * Testing: [wiki:TESTING auto tests] (unit / system), [wiki:PLATFORM_STANDARDS_MANUAL_TESTS_R0 manual tests]. [[BR]] 
    6363The process is executed with the help of Trac - the issue tracking system we use. If you have problems with using it, go to [wiki:TracGuide]. 
    6464 
     
    6767= 3. The Product = 
    6868'''Design'''. Here will be some of the main design features, which are present in Sophie2.  
    69  * Plugins: software units. In the context of our project, "plugin" is the same as module, or bundle. In eclipse, they are actually represented as different projects. Have a look at [wiki:PLATFORM_STRUCTURE platform structure]. There you can see where modules are located and what their structure is. 
    70  Decomposition to plugins of Sophie 2 is one of the most important things to do for the project. If you need to create a new module, one of the ways to do this is the way, described in [wiki:PLATFORM_DEPLOYMENT_BUILD_ECLIPSE#Howtocreateanewmodule how to create a new module]. 
    71  * Extensions / Extension points: these are used to reverse the dependencies, so that we cannot have cyclic dependencies in the project. The other advanage of extensions is that it provides extensible functionality.  
    72  * Editions: different standalone subsets of Sophie2 platform. Sophie2 has 3 editions: Author, Reader and Server. The page dedicated to editions is [wiki:PLUGIN_EDITIONS_STRUCTURE Plugin editions structure]. 
    73  * Distributions: the distribution is the end product an user will see on his/her hard drive after installing the edition. In order to be fully functional, a distribution has to provide executables and/or some other needed resources.The problem here is the way we provide these things, and the solution is the /distrib directory (look again at [wiki:PLATFORM_STRUCTURE platform structure]). [[BR]] 
    74  * High-level design. This refers to the Model-View-Controller (MVC) design pattern. Its idea is to define how the model and the view interact each other. There is a MVC tutorial at [wiki:CORE_MVC_BASE]. There is a problem with the standard MVC pattern, and it is that it becomes too complicated in this particular project. This is why Properties are introduced here. So, each model in Sophie2 is defined by a property. This way the controller is replaced by Logics, and this simplifies the whole pattern. The properties are represented by the ProLib library, and you can read the important Properties tutorial here: [wiki:PRO_LIB_CORE_TUTORIAL]. [wiki:PRO_LIB_CORE_CODE_TEMPLATES This page] defines useful code templates for properties. [[BR]] 
     69 * Plugins: software units. In the context of our project, "plugin" is the same as module or bundle. In Eclipse, they are actually represented as different projects. Have a look at [wiki:PLATFORM_STRUCTURE platform structure]. There you can see where modules are located and what their structure is. 
     70 Decomposition to plugins of Sophie 2 is one of the most important things to do for the project. If you need to create a new module, one of the ways to do this is described in [wiki:PLATFORM_DEPLOYMENT_BUILD_ECLIPSE#Howtocreateanewmodule how to create a new module]. 
     71 * Extensions / Extension points: these are used to reverse the dependencies so that we cannot have cyclic dependencies in the project. The other advantage of extensions is that they provide extensible functionality.  
     72 * Editions: different standalone subsets of the Sophie 2 platform. Sophie 2 has 3 editions: Author, Reader and Server. The page dedicated to editions provides information about the [wiki:PLUGIN_EDITIONS_STRUCTURE plugin editions structure]. 
     73 * Distributions: the distribution is the end product a user will see on his/her hard drive after installing the edition. In order to be fully functional, a distribution has to provide executables and/or some other needed resources. The problem here is the way we provide these things, and the solution is the /distrib directory (look again at [wiki:PLATFORM_STRUCTURE platform structure]). [[BR]] 
     74 * High-level design. This refers to the Model-View-Controller (MVC) design pattern. Its purpose is to define how the model and the view interact with each other. There is an MVC tutorial at [wiki:CORE_MVC_BASE]. There is a problem with the standard MVC pattern: it is too complicated for this particular project. This is why Properties are introduced here. So, each model in Sophie 2 is defined by a property. This way the controller is replaced by Logics, and this simplifies the whole pattern. The properties are represented by the ProLib library, and you can read the important Properties tutorial here: [wiki:PRO_LIB_CORE_TUTORIAL]. [wiki:PRO_LIB_CORE_CODE_TEMPLATES This page] defines useful code templates for properties. [[BR]] 
    7575 
    7676 
     
    7979You will certainly encounter a problem you cannot resolve on your own. You can find help:  
    8080 * In the [wiki:FAQ developers' FAQ] section 
    81  * In our mail groups (see the begining of this document);  
    82  * In our Skype group chat (again, see the begining of this document);  
    83  * In the Sophie2 forum: [http://asteasolutions.net:7080/sophie2/discussion/]. [[BR]] 
     81 * In our mail groups (see the beginning of this document)  
     82 * In our Skype group chat (again, see the beginning of this document)  
     83 * In the Sophie 2 forum: [http://asteasolutions.net:7080/sophie2/discussion/] [[BR]] 
    8484Useful Links: 
    85  * [wiki:ImportantDocs Important Documents]. [[BR]] 
    86  * [wiki:TitleIndex Full Wiki index]. [[BR]] 
     85 * [wiki:ImportantDocs Important Documents] [[BR]] 
     86 * [wiki:TitleIndex Full Wiki index] [[BR]] 
    8787 * [wiki:USEFUL_LINKS Other useful links] [[BR]] 
    8888Comments: