quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

thoughtbot The Bike Shed Episode #1

1: Sandi & Derek's Rules | The Bike Shed

Sean and Derek

Sending message rules
Golden rules
Sandi Metz' Rules

  1. Classes can be no longer than one hundred lines of code.
  2. Methods can be no longer than five lines of code.
  3. Pass no more than four parameters into a method. Hash options are parameters.
  4. Controllers can instantiate only one object. Therefore, views can only know about one instance variable and views should only send messages to that object

page object type refactoring
disagree with instantiation

current user big global
too many global

God object - Wikipedia, the free encyclopedia

bike shed 自転車置き場
shed 納屋、小屋、物置、倉庫、上屋、車庫


sending message rules
golden rules
sandiz rule
follow
junior developer
method parameters
book
controller can only instanciate one object
class cannot be 100 lines
typical target
association
not null condtraint
deletion
choice
user
intrinsic
method cannot be 5 lines
if else end
feature test
page object type refactoring
setup verify
performance
every feature spec has js true
get over 5
unconfortable 10
proc
absolutely
giant hash
only one instanciate
disagree with instanciation
should have 2 object
view model
dashboard page
facades
object instanciation
controller
number of modules
number of mixin modules
relationship
took me a week
block conditional
current user big global
current organization
dont think thats good idea
too many global
reverse statement
useful
rails
inheritance
private methods
rails code
object design
break this rules
agree
definitely push
fight back
good baselands
go against the rule