- Mod 4 is starting gametime, so this week I'm learning about this topic, and figure that writing a blog on it will help me/others in the processs.
- How to setup HTML/JS/CSS
- Create a blank canvas
Fork this Gist and Respond to the Following Questions
####Which sections were interesting?
I was interested by the idea of using IIFE's to avoid creating variables in the global scope, as variable scope was something I struggled with on my personal project. I was also interested by the idea of binding an extracted method to its original object.
####Which sections did you totally skim?
Chapter 17 was a burnout. I started reading it, but it's just too dense and long to retain much information. I think it might be valuable to go back to and refer to later once we have a better JS foundation, but right now, it's a bit overwhelming.
####Do you think the reading was valuable?
Yes, except for the last chapter. But I also think that reading without exercising the new concepts is fairly useless, so it's kind of on us to make the most of the reading by trying out examples in the console.
####Which topics were notably confusing?
#####Only instantiate one object in the controller.
This rule was the most interesting to me, and the one I initially mentally rejected, as it seems like it would often be impractical. But after looking further at how the implemented it, by creating a dashboard PORO with different methods to access multiple types of information, it is an interesting setup.
#####Each method should only have 5 lines.
About the 5-line methods rule - ff course in general it's good to keep methods as short and simple as possible, but I think that trying to squeeze every method into this rule will result in a lot of unreadable code using dense ternary statements, etc.
A mapping application that allows a user to quickly see trends and current realtive expenses in countries around the world.
There are plenty of databases and static maps showing relative costs across countries, but it's hard to get a big-picture view without visiting multiple sites. Also, most reports and maps focus on USD and EUR as the base currencies. It's difficult for people earning more obscure currencies to find data from their perspective.
| ###The Turing Firehose of Information | |
| #How Mod2 is different from Mod1 | |
| -logic overload vs tools overload | |
| -pros and cons | |
| #Reactions of myself and classmates | |
| -Not sure what to focus on | |
| -Balancing keep up vs retention of past topics | |
| - | 
'?' - brings up shortcut list
'g+d' - go to your dashboard
'g+c' - go to repo root
'j' - move selection down
'k' - move selection up
'o' - open selection
't' - open file finder for project
's' - put curser in search bar
| class Tag < ActiveRecord::Base | |
| belongs_to :taggable, polymorphic: true | |
| end | |
| class Article < ActiveRecord::Base | |
| has_many :tags, as: :taggable | |
| end | |
| class Newspaper < ActiveRecord::Base | |
| has_many :tags, as: :taggable |