<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cody House on Medium]]></title>
        <description><![CDATA[Stories by Cody House on Medium]]></description>
        <link>https://medium.com/@CHouse?source=rss-46f236371079------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CgybxUtZaAPhVikg.jpeg</url>
            <title>Stories by Cody House on Medium</title>
            <link>https://medium.com/@CHouse?source=rss-46f236371079------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 18:59:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@CHouse/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ember.Js and Rails — Playing Nicely]]></title>
            <link>https://medium.com/@CHouse/ember-js-and-rails-playing-nicely-dc5e72c75175?source=rss-46f236371079------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc5e72c75175</guid>
            <dc:creator><![CDATA[Cody House]]></dc:creator>
            <pubDate>Tue, 13 Jan 2015 00:53:01 GMT</pubDate>
            <atom:updated>2015-01-13T00:55:45.173Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ember.Js and Rails — Playing Nicely</h3><p>Hello! I’ve been in a whirlwind of trying out different technologies and just trying to expand my development skills as much as possible, and on this trip one of the things I tried out was using building an Ember App with a rails back end/api.</p><p>The app itself is just a simple CRM and the code can be found here <a href="https://github.com/YDOCHOUSE/ember-crm">https://github.com/YDOCHOUSE/ember-crm</a> (or live here <a href="https://vast-plains-4143.herokuapp.com/">vast-plains-4143.herokuapp.com</a>/, or the tutorial I based this app off of <a href="http://ember.vicramon.com/">http://ember.vicramon.com/</a>) . Basically this is my first journey into the world of ember so I’ll be giving my impressions and any gotchas I experienced along the way. Oh, I decided to try out emblem.js (<a href="http://emblemjs.com/">http://emblemjs.com/</a>) an alternative to handlebars. I’m going to be releasing this in parts as my first journey has taught me a lot and I want to share and explain what I can for your understanding, and especially mine!</p><p>One of the first things you’ll want do is simply include the appropriate gems, in my case:</p><p>gem ‘ember-rails’ (another gem called Ember-cli seems to be an alternative)<br>gem ‘ember-source’<br>gem ‘emblem-rails’ (if you plan to use emblem)</p><p>You’ll want to follow the github instructions of the gem to use all the appropriate generators to get things rolling. (and don’t forget to bundle!)</p><p>Well I’m on the details of setup, I just need to add you might want to grab the ember inspector as an add on to your console, it’s pretty invaluable for debugging and interesting to see all the transitions happening, as well as informative of how Ember works. It lets you view your data and their attributes right in the console, shows you all your routes, and gives you a tree-view which sort of works like the sources area in the dev console, it shows you what is rendered and where it came from.</p><p>The leg work of setting up Ember with Rails went incredibly smooth and I ran into no problems. (When does this ever happen in our lives, my fellow developers?!)</p><p>The Object Model:</p><p>So one of the first things I found out about is everything in Ember extends from one base object which is know as simply, Ember.Object. You can see this clearly throughout the app, even the views, and controllers, Ember.View, Ember.Controller, respectively, follow this rule. The basic Ember.Object, has it uses, things like creating service objects that handle some specific logic (like creating methods on models in rails).</p><p>Since everything in Ember extends from the basic Ember.Object, any time we want to create our own object “class” we simply call extend on Ember.Object , and then go about as we would creating a regular javascript object.</p><p>App.User = Ember.Object.extend(</p><p>isHuman: false,</p><p>isDalek: true</p><p>)</p><p>We pre-fix with App because Ember needs a variable to keep all data for the application in and Ember developers have come up with the convention of App as the variable name. Coming from a rails background, this is most welcome to me!</p><p>Along side with being able to have functions, objects may also have a special type of function you can declare as a computed property, meaning ember will automatically call the function and feed you the value. This really comes in handy when you want to grab from existing attributes on the object to manipulate the data in some way. A good example exists on the ember docs:</p><pre>App.Person = Ember.Object.extend({<br>  <em>// these will be supplied by `create`</em><br>  firstName: null,<br>  lastName: null,<br><br>  fullName: function() {<br>    return this.get(&#39;firstName&#39;) + &#39; &#39; + this.get(&#39;lastName&#39;);<br>  }.property(&#39;firstName&#39;, &#39;lastName&#39;)<br>});<br><br>var ironMan = App.Person.create({<br>  firstName: &quot;Tony&quot;,<br>  lastName:  &quot;Stark&quot;<br>});<br><br>ironMan.get(&#39;fullName&#39;); <em>// &quot;Tony Stark&quot;</em></pre><p>Here they use it to call ironMan.get(‘fullname’); the property when called with get, executes the function and returns us the combined attributes of firstName and lastName. I can only imagine how useful this might become in future applications.</p><p>A second interesting interesting note about Ember.Objects is they have a property observer which can be set inside as a property itself. It’s job will be to watch the value of another property and fire off a function if it’s value changes. This can also be hooked up to a computer property. Amazing! Very cool functions. Back to the ember docs for a good example.</p><pre>Person = Ember.Object.extend({<br>  <em>// these will be supplied by `create`</em><br>  firstName: null,<br>  lastName: null,<br><br>  fullName: function() {<br>    var firstName = this.get(&#39;firstName&#39;);<br>    var lastName = this.get(&#39;lastName&#39;);<br><br>    return firstName + &#39; &#39; + lastName;<br>  }.property(&#39;firstName&#39;, &#39;lastName&#39;),<br><br>  fullNameChanged: function() {<br>    <em>// deal with the change</em><br>  }.observes(&#39;fullName&#39;).on(&#39;init&#39;)<br>});<br><br>var person = Person.create({<br>  firstName: &#39;Yehuda&#39;,<br>  lastName: &#39;Katz&#39;<br>});<br><br>person.set(&#39;firstName&#39;, &#39;Brohuda&#39;);</pre><p>Sadly, I don’t have any more time tonight, as I have a project I’m working on that I hear calling my name, but I will continue with this series tomorrow night, probably discussing routers in ember. I found the way in which it handles this particularly interesting!</p><p>Into night I go, allons-y! And don’t wait for me to tell your more about Ember if you’re curious, go at it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc5e72c75175" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I woke up thinking about coding…]]></title>
            <link>https://medium.com/@CHouse/i-woke-up-thinking-about-coding-ffdae81c0e46?source=rss-46f236371079------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffdae81c0e46</guid>
            <dc:creator><![CDATA[Cody House]]></dc:creator>
            <pubDate>Wed, 29 Oct 2014 00:22:02 GMT</pubDate>
            <atom:updated>2014-10-29T00:22:02.311Z</atom:updated>
            <content:encoded><![CDATA[<p>I haven’t updated as much as I thought I would, I’ve kind of immersed myself into the experience and forgot to take a step back and assess things. We’ve done a few interesting projects, and I’ve stayed up a few nights toying around with ruby koans and ruby doc surfing. Needless to say I can say from the first day blog entry to now, I’ve begun to use my computer extremely differently, in so much as If I absolutely don’t have to use the mouse, I definitely won’t! Learning the way around with shortcuts in the terminal kind of bled out into my general computer use. I’m amazed at how fast things can change and habits can form. It really re-iterates the fact that if you put in the time and the work things will happen!</p><p>My first real battle in the Bitmaker experience without a doubt would have to be the Mars rover. It made me doubt everything I thought I knew! Okay maybe not quite that terribly, but it definitely had me re-thinking about designing with Ruby. I’ve read the AWP “Practical Object-Oriented Design” and thusly imagined I would be okay with what seemed relatively simple. I kept getting tripped up thinking to boldly and thinking I could design everything up front, because in my mind all the choices seemed obvious, until I went to implement them. Our natural way of thinking isn’t quite as logical as the progammer’s way of thinking. (but, hey, I’m learning!) I wrote a bunch of code that ended up being ridiculously dependant upon more code upon more code, and basically made terrible design choices. In the end it was really fun and I began to learn to break everything down into very simple re-useable (when possible) methods. The next project that we built was a essentially a virtual rolodex from the command line. I approached this one slightly more sensibly than the mars rover but still ended up with a bit of convoluted code with many dependencies.</p><p>Overall the way I’m beginning to think of O.O. programming more correctly and I sincerely looking forward to slowly beginning to understand how to better design applications! I’m definitely going to be re-reading the AWP Practical Object Oriented Design a few more times when I can fit it in. For now I just devour as much of it as I can on my commutes and lunchtime. I think it’ll be a very important skill to really dive into understanding how to best design in Object Oriented fashion.</p><p>So, lastly, I feel I can say only eight days into Bitmaker’s program, I’ve already made real progress! I’m confident I can continue to build upon what i’ve already learned. Mistake after mistake I’m pointed in the right direction and continually refining the approach I take to coding.</p><p>Also! We totally wrote our own server and it was so wonderful to understand the Client/Server process. It’s truly interesting to see how the internet works on the most basic levels. To see the data that was passed around behind the scenes in order to process the websites we are all so used to visiting so often definitely helped to solidify my entire picture of the internet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffdae81c0e46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A new journey.]]></title>
            <link>https://medium.com/@CHouse/a-new-journey-533bf0c612bd?source=rss-46f236371079------2</link>
            <guid isPermaLink="false">https://medium.com/p/533bf0c612bd</guid>
            <dc:creator><![CDATA[Cody House]]></dc:creator>
            <pubDate>Wed, 29 Oct 2014 00:15:45 GMT</pubDate>
            <atom:updated>2014-10-29T00:15:45.982Z</atom:updated>
            <content:encoded><![CDATA[<p>Today was my first day at Bitmaker Labs! All of the things I’ve been digesting and shoving into my head over the last 8 months or so are finally going to get ironed out! I don’t know specifically how I stumbled across the idea of coding, but I’m glad I did! I’ve never quite known where to find my passion, at least, in terms of a career path. Luckily I think I might be on to something.</p><p>I’ve jumped around from language to language studying C, Python, and Java until somehow settling upon Ruby. At first, coding kind of looks like a bunch of gibberish, I don’t know how many hours I’ve stared at the screen doubting my own intelligence! After a while, the foreign look of the code begins to make more and more sense (Especially when you switch to Ruby! I almost miss all those curly brackets and semi-colons). Those tiny moments you break through and write the simplest, easiest, not even particularly useful program are by far the best moments. I think that they have allowed me stick with it as long as I have. I don’t know how many times I’ve literally jumped out of my seat and shouted in triumph over fixing bugs and creating working code. However, These moments are often balanced with me reading code out loud to myself over and over trying to figure out where I went wrong!</p><p>Anyways, fast forward to the Bitmaker Labs era. Today was a good first day, light work load, mostly review with little tidbits of information I’d previously over-looked. (* wildcard selector in the terminal!). We actually used git and github today in a collaborative way, which was a neat experience. I’d previously only committed my own code, a lone ranger in the deserts of the web development. Forever chasing my mirage of coding mastery. We also visited common command line shortcuts to improve workflow and understanding. I created an alias for ‘git status’ as I can’t even imagine how many times I’ll be needing to type that over my journey in web development and beyond.</p><p>Overall it was a nice start to what I imagine is going to be an amazing time in my life. I truly look forward to growing and learning through Bitmaker and beyond. When I was researching Bitmaker, I didn’t stumble upon too many blogs of previous students, so hopefully curious minds will arrive on this blog and they can at least hear more from someone who had the Bitmaker experience for themselves and choose if this kind of leap is right for them. The course is going to be filled with many guests from start-ups and experts in the industry, to previous Bitmaker alumni. I’m very much looking to meet these people and hear their experiences and take in some of their wisdom. I’m already enjoying the culture Bitmaker offers. I’ll try and post my breakthroughs and hardships throughout this program and create a snapshot of what I am aiming to make a life changing experience. I’ll also post whatever coding tips I can for others that may be struggling with certain concepts. I’m sure I’ll be making a ton of mistakes, so maybe I can help others avoid whatever few I can!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=533bf0c612bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>