Skip to content

Instantly share code, notes, and snippets.

@daphsta
Created May 30, 2016 03:13
Show Gist options
  • Select an option

  • Save daphsta/b9bebdddb45bf23023247a47f86bc8bd to your computer and use it in GitHub Desktop.

Select an option

Save daphsta/b9bebdddb45bf23023247a47f86bc8bd to your computer and use it in GitHub Desktop.
Things you should know after 2 years on the job

Ruby

1. BLOCKS
  • do..end, lambda, yield
2. ENUMERABLES
  • each,inject,collect,compact,concat,count,delete,delete_if,empty?,map,push,reverse,rotate,select,flatten,flat_map
3. CLASSES/METHODS
  • class methods, instance methods , class, modules, private methods, protected methods, instance variables vs class variables

Rails

1. CREATE AND SET UP A PROJECT
  • set up in rails config
2. GENERATE
  • Models,Controller,Views without scaffold
3. CREATE CUSTOM GENERATORS
4. UNDERSTAND MIGRATIONS
5. TESTS (RSpec/Minitest)
  • generate controllers and unit tests
  • usage of factories/fixtures
  • stubbing methods/ mock objects
  • feature tests
6. MODELS
  • create ActiveRecord models
  • know when to use ActiveModel
  • validations and create custom validations
  • basic associations; belongs_to, has_many, has_many through,has_many_and_belongs_to
  • scope
  • callback
7. CONTROLLERS
  • index,show,create,update,destroy actions
  • nested resource
  • handling GET,POST requests
  • strong params
  • inherited controllers
  • namespaced controllers
8. VIEWS
  • HTML, Javascript, Javascript Frameworks (eg: jQuery)
  • HAML
  • CSS

Other necessary skills

1. GIT
  • concept of Git (git-scm book)
  • at least git pull, git push, git status, git add, git commit, git diff, git stash, git clone, git reflog, git rebase, git blame
2. COMMAND LINE
3. BASIC SQL QUERY
4. SET UP POROs
5. PATTERNS
  • MVC
6. UNDERSTANDING OBJECT-ORIENTED PROGRAMMING
7. KEYBOARD SHORTCUTS

Extra credit

1. DEPLOY WITH DOCKER
2. VIM
3. AngularJS/Ember/React
4. MENTORING
5. PAIRING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment