-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactoring wires and bootstrap headers in preparation for search #73
base: master
Are you sure you want to change the base?
Conversation
* get '/feeds/[id]/owners' * post '/feeds/[id]/owners?emails=[list_of_emails]' * delete '/feeds/[feed_id]/owners/[feed_owner_id]'
… options.account & options.community, prep for search, drying
…gger (for ie, safari non-dev, etc) never got loaded), some unnecessarily loud naming complaints
what's up with zother_wires? |
I believe I made a comment. Inclusion order. It's not perfect, but Sent from my iPhone On Nov 7, 2011, at 8:44 PM, Max Tilford
|
I think the other reason for the indeterminate state may be the unsure Sent from my iPhone On Nov 7, 2011, at 8:44 PM, Max Tilford
|
da da da da da |
9320072
to
77d6828
Compare
In this commit:
-- created helpers for various external JS (such as exceptional)
Upcoming changes:
Changes to be done eventually:
CODE REVIEW REQUESTED
almost every page on the site has been touched by these changes!
New practices, demonstrated in this code (I hope!):
use these always, and replace where you can. options.account and options.community are now DEPRECATED
We have too big a project not to be always improving it. Every code you touch, make it better, delete stuff, and make things simpler and more DRY. An important note here is not to put effort in to improving code you're not expanding upon. First it can only break things, and second when expansion does need to happen, you may find you've done the wrong improvements.
-- backbone extend is inferior to the coffeescript implementation. read their docs. Functionally, coffeescript allows the super() method and chained initializers. Aesthetically, the implementation is much easier to understand, both in debugging and writing. See base/wire.js.coffee for detail on how extension needs to be done. (specifically, Backbone.View.apply is important)
-- be warned that file line numbers are not accurate with coffeescript
WHEN CODING think about how it reads.
-- creates self-documentation
-- reduces typos
-- reduces reading comprehension to one location
-- reduces reading comprehension time
-- creates clear intent
-- becomes safe to change and build upon
-- creates names for things in the debugger
PS: Thoughts on haml? Oppositions to erb? I am bothered a lot when I can't indent my javascripts or multiline my erg (such as including partials.)
PPS: I would like to highlight one bit of coffeescript, taken from their docs. @ indicated this., => keeps the context.