- TDD all the way.
- Code Coverage and other metrics.
- simple_cov and metric_fu
- No Logic in views use rails helpers and implement partials for DRYness.
- app/helpers
- No Business Logic in controllers.
- No more than 5 lines in a method , No more than 100 lines in a class.
- Fat Models skinny controllers. ( Later we will look into service and policy objects)
- DRY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place all the behaviors and hooks related to the matching controller here. | |
# All this logic will automatically be available in application.js. | |
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ | |
# \etrack | |
class @StopWatch | |
MAX_HOUR: 12 | |
MAX_MINUTE: 59 | |
constructor: -> | |
that = @ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class @DateParameter | |
constructor: -> | |
that = @ | |
@date = $('.date') | |
@date.on 'click', (e) -> | |
@parent_date=this.parentNode; | |
unless @parent_date.classList.contains("notmonth") | |
reload_display this.innerHTML | |
$(".date").unbind("click"); | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class @TimeMachine | |
constructor: (parameter) -> | |
that = @ | |
@element = $('grab from id or class') | |
@element.on 'click', (event) -> | |
the_function | |
the_function = -> | |
@element.toggleClass('.color') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build a Collaborative Learning System where you can collaborate on educational contents . | |
Here are the user stories | |
1) User should be able to register using his username, email address and password | |
2) User should recieve confirmation email after registering | |
3) User should only be able to log in after confirmation. | |
4) User should be able to add any topic to discuss with his/her friends. | |
5) Users should be able to add comments into any discussion topics. | |
6) User should be able to view all the comments in any topic being discussed. | |
7) User should be notified whenever any discussion he is involved in has any changes via Email. | |
8) User should be notified whenever any new topic is added to be discussed via Email. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails assets:precompile -> This is the command you use to compress the assets . | |
- This command will generate assets via using the asset pipelining. And have them | |
in public/assets folder. | |
rails assets:clean -> This will clean the older assets you have . | |
- This command will clear older versions of the assets | |
rails assets:clobber -> Nuke public/assets . | |
- delete everything. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT(1) Git Manual GIT(1) | |
NNAAMMEE | |
git - the stupid content tracker | |
SSYYNNOOPPSSIISS | |
_g_i_t [--version] [--help] [-C <path>] [-c <name>=<value>] | |
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] |
- set up a hostname for your new server.
hostnamectl set-hostname hostname
- Set up a timezone for your new server.
dpkg-reconfigure tzdata
- add user [
adduser user_name groups
] - Set up a ssh access for your new server.
ssh-keygen -b 4096
with a passphrase.
- First things first we should have our features shortlisted and documented being as descriptive as possible.
- We should select a few unique selling or our strongest features to market and come up with stories to pitch . ( Use Elevator Pitch model or something else I leave it upto you explore the start up tools )
- We should do the market validation based on the features we select to bring forward.
- Would organizations be willing to use it?
- Would organizations pay to use it ?
- How much would be organizations be willing to pay for it ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: builo-test-web | |
strategy: debug | |
remote_user: ubuntu | |
gather_facts: false | |
pre_tasks: | |
- name: install aptitude | |
raw: sudo apt-get -y install aptitude | |
- name: install python |