-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Developer Guidelines
0ip edited this page Apr 25, 2012
·
10 revisions
Please talk to people on the mailing list before you change this page
Our goal is to iterate in small steps. Release often, release early. Evolution instead of a revolution
- easy to install for admins
- easy to use for people
- using less resources on server side
- easy to embed for admins
- also runable as etherpad lite only
- keep it maintainable, we don't wanna end ob as the monster Etherpad was
- extensible, as much functionality should be extendable with plugins so changes don't have to be done in core
- Please write comments. I don't mean you have to comment every line and every loop. I just mean, if you do anything thats a bit complex or a bit weird, please leave a comment. It's easy to do that if you do while you're writing the code. Keep in mind that you will probably leave the project at some point and that other people will read your code. Undocumented huge amounts of code are worthless
- Never ever use tabs
- Indentation: JS/CSS: 2 spaces; HTML: 4 spaces
- Don't overengineer. Don't try to solve any possible problem in one step. Try to solve problems as easy as possible and improve the solution over time
- Do generalize sooner or later - if an old solution hacked together according to the above point, poses more problems than it solves today, reengineer it, with the lessons learned taken into account.
- Keep it compatible to API-Clients/older DBs/configurations. Don't make incompatible changes the protocol/database format without good reasons
*Make a new branch for every feature you're working on. Don't work in your master branch. This ensures that you can work you can do lot of small pull requests instead of one big one with complete different features
- Don't use the online edit function of github. This only creates ugly and not working commits
- Test before you push. Sounds easy, it isn't
- Try to make clean commits that are easy readable
- Don't check in stuff that gets generated during build or runtime (like jquery, minified files, dbs etc...)
- Make pull requests from your feature branch to our develop branch once your feature is ready
- Make small pull requests that are easy to review but make sure they do add value by themselves / individually
see git flow http://nvie.com/posts/a-successful-git-branching-model/
- master, the stable. This is the branch everyone should use for production stuff
- develop, everything that is READY to go into master at some point in time. This stuff is tested and ready to go out
- release branches, stuff that should go into master very soon, only bugfixes go into these (see http://nvie.com/posts/a-successful-git-branching-model/ for why)
- you can set tags in the master branch, there is no real need for release branches imho
- The latest tag is not what is shown in github by default. Doing a clone of master should give you latest stable, not what is gonna be latest stable in a week, also, we should not be blocking new features to develop, just because we feel that we should be releasing it to master soon. This is the situation that release branches solve/handle.
- hotfix branches, fixes for bugs in master
- feature branches (in your own repos), these are the branches where you develop your features in. If its ready to go out, it will be merged into develop
Over the time we pull features from feature branches into the develop branch. Every month we pull from develop into master. Bugs in master get fixed in hotfix branches. These branches will get merged into master AND develop. There should never be commits in master that aren't in develop
- Docs
- Translating
- HTTP API
- Plugin framework (API hooks)
- Plugins (available)
- Plugins (list)
- Plugins (wishlist)
- Etherpad URIs / URLs to specific resources IE export
- Etherpad Full data export
- Introduction to the source
- Release Procedure
- Etherpad Developer guidelines
- Project to-do list
- Changeset Library documentation
- Alternative Etherpad-Clients
- Contribution guidelines
- Installing Etherpad
- Deploying Etherpad as a service
- Deploying Etherpad on CloudFoundry
- Deploying Etherpad on Heroku
- Running Etherpad on Phusion Passenger
- Putting Etherpad behind a reverse Proxy (HTTPS/SSL)
- How to setup Etherpad on Ubuntu 12.04 using Ansible
- Migrating from old Etherpad to Etherpad
- Using Etherpad with MySQL
- Customizing the Etherpad web interface
- Enable import/export functionality with AbiWord
- Getting a list of all pads
- Providing encrypted web access to Etherpad using SSL certificates
- Optimizing Etherpad performance including faster page loads
- Getting to know the tools and scripts in the Etherpad /bin/ folder
- Embedding a pad using the jQuery plugin
- Using Embed Parameters
- Integrating Etherpad in a third party app (Drupal, MediaWiki, WordPress, Atlassian, PmWiki)
- HTTP API client libraries