Skip to content

github_rails_scaffold_the_right_way_smallToBig (no extra files) (gem?)

Notifications You must be signed in to change notification settings

ruby-websites-all/properly_commit_rails_new

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

decomposing_scaf

bundle --> Gemfile
rails s --> config/, bin/
rake db:migrate --> db/
rake --> Rakefile, test/

beginners can match commands to files!
cool lightning talk? or dumb?

Step 1 decompose a Rails scaffold

That project can be found here https://github.com/MichaelDimmitt/g-r-s-t-r-w-bts
obviously this was not productive at all. no new features were built.
But one day I thought, what would happen if I just sledgehammered a `rails new` scaffold? 
My plan was delete the files until all the commands broke. Removing bloat that I did not understand.
I never thought that individual commands would break as additional files were deleted.

My Rails story has been, do commands--> magic happens!
An unexpected discovery from this project: you can match commands to files!

Step 2 Commit a Rails scaffold correctly.

Since I can match commands to files

Committing the initial project scaffold should not be one commit 
and as a commit message ```commit -m "initial project scaffold;```

Instead, a scaffold should consist of adding files 
and eluciadating the commands that require these files!

Buildings dont just happen.
You cant build at the top until you understand which ladders get you where.

rails_image

About

github_rails_scaffold_the_right_way_smallToBig (no extra files) (gem?)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published