Saturday, July 16, 2011

Web app productivity #bca5

@snikchnz
Mal Curtis - Web app productivity
learnable
sitepoint.com
online education marketplace
web biz education freelancing etc
mal.co.nz
HTML
CSS
js
Ruby
php
Rails
Amazon EC2 deployment
macvim?
scc git + github
SASS stylesheet mgmt
RSpec simpletest
cucumber
cont integration

github
paid non-opensource

share team members

mkdir bca
cd bca
git init
git status
touch README.md
git add README.md
staged - now green (on Mac?)
commit -m "Added readme"
git status

Github stores and provides interface to GIT commmands
Githug - create new repo
existing git repo?
can add remote
push - can pull too??
git push -u origin master


SASS
syntactically Awesome Stylesheets
style with attitude
makes CSS fun again
vars
nesting
mixins
selector inheritance
[alt: stylist? stylus?]
DSL
color assignments
.scss file
bca.scss app style sheet
include in other sheets
incl without .scss extn
apple-K clears screen :) in Mac
public/stylesheets - deployed from here?
#sass --watch -c app/stylesheets:public/blah.scss
SASS is a Ruby gem
gem install sass ?

debugging with firebug ? line #'s - CSS file linenums - xref tpo .scss line # ?
break up into page etc stylesheets, buttons etc.
compression support for production?
Rails 3.1? nope - 3.09?

Unit testing? RSpec for Ruby devt
Behaviour-driven
for PHP: Simpletest
PHPUnit
learnable
define biz logic as test cases
regression alarms / reporting - unrelated coade not breaking something?
testr.dev
courses.mal.vm/dev/tests
# of passes, fails, exceptions
assertations?
assertions?


Dropbox should have done test :) -- issue from a few weeks ago?
simpletest
Cucumber
S/w dev teams describe how s/w should behave in plain text
Scenarios - outline and steps
WebRat - automate browser testing - selenium?
heavy AJAX/JS stuff needs Selenium for testing
press button -> correct page?
github andrewk behaviour
course_steps.rb
'Given' precondition
'When'
'Then'
'And I should see'
can give to nondev's to specify what should happen
coverage reports?
bundle exec cucumber featuresw/sales_page.feature
DEPRECATION_WARNING
sets up database? truncates tables
CI server push if all tests pass
(is this == production?)
diff drivers for langs
Capistrano deploy
Jenkins CI server / push

No comments: