Combined Reading List
We'd recommend the following books are read in alignment with the respective module content, however, this list provides an overview of the BDes (Hons) Interaction Design course reading list, broken down by year.
##Year 1
We'd recommend the following books are read in alignment with the respective module content, however, this list provides an overview of the BDes (Hons) Interaction Design course reading list, broken down by year.
##Year 1
# instead of debugger, you could use byebug gem | |
# and then you do not need to require debugger | |
group :development, :test do | |
gem 'minitest' | |
gem 'awesome_print' | |
gem 'capybara' | |
gem 'database_cleaner', '~> 1.0' | |
gem 'debugger' | |
gem 'factory_girl_rails' | |
gem 'hirb' |
# This controller returns static pages | |
class PagesController < ApplicationController | |
end | |
# routes.rb | |
get "help", to: "pages#help" | |
get "about", to: "pages#about" | |
get "privacy", to: "pages#privacy" | |
# ApplicationController: |
# in AttachmentsHelper: | |
def safe_attachment_path(attachment, size=nil) | |
retrieve_attachment_path(attachment.id, attachment.original_name, :size => size) | |
end | |
# and then have a route | |
match '/files/:id/:filename' => 'attachments#retrieve', :as => :retrieve_attachment | |
# and a controller action | |
def retrieve |
# migration | |
t.integer :sequence | |
# controller action | |
# and the way we've done the method, it's probably logical to put the action in test_scenarios_controller | |
def sequence | |
TestScenario.sequence=(params[:sequence]) | |
render :json => { :status => :ok } | |
end |
require "json" | |
require "net/http" | |
class DataRetriever | |
include ActiveModel::Model | |
attr_reader :search_param, :search_by_id | |
def get_data(search_param, options = {}) | |
@search_by_id = options.fetch([:search_by_id], false) | |
@search_info = search_info |
FactoryGirl.define do | |
sequence :first_name { |n| "John #{n}" } | |
sequence :email { |n| "john#{n}@example.com" } | |
factory :employee do | |
first_name { generate(:first_name) } | |
last_name 'Smith' | |
email { generate(:email) } |
# Minitest examples | |
# wishful | |
describe Person do | |
describe 'indirect' do | |
subject { Person.new({pet: true}) } | |
it { must_be :pet? } | |
end | |
end |
#! /usr/bin/env ruby | |
require 'minitest/autorun' | |
require 'minitest/spec' | |
class Letters | |
WORDS = %w.cat bat bath baths. | |
attr_accessor :letters |
# Friday run sheet for Sydney workshop | |
-------------------------------------------------- | |
## 5:00 | |
Setup | |
- Eventbrite registration setup | |
- Name badges | |
- Setup projector screen | |
- Ensure wifi is working | |
- Setup sponsor banners |