code with salar khan!

omg it's gonna be so much fun. important/helpful posts you can skip to: Moar Ruby Resources, Holy Shit.

Save some money and port your Heroku database over to AWS

what a fantastic tutorial. NO MORE MONEY FOR YOU HEROKU

fabscode
:

Last updated at: 29th November 2013

NOTE: This guide will not show you how to port your entire app from Heroku to AWS, this is just for how to use an AWS database on Heroku. You’ll get the ease of Heroku without having to pay when you need a database of more than 10,000 rows.

If like…

check-in part one: twerk

so, i’ve been working for about a month now. it’s been a god damn long time since i’ve written anything here. i have been writing in my litle notebook, but i’m not really writing full sentences there—so i don’t think it really counts.

pros:

  • work hasn’t fired me yet
  •  i’m learning every day, which means that I frequently feel super dumb  
  • super flexible hours

cons:

  • 40 min drive commute. 1.5 hours if I take pubtrans. barf
  • not being able to get off work and immediately be in the city kinda blows
  • coding at a pace slower than DBC is a little weird 

i’ve been doing HTML & CSS for the first few weeks, and as a result have become much, much more comfortable with the DOM. also, HTML module pattern is a thing. who knew? also on my list of things that are dope: SASS. jesus christ, I love SASS. partials, mixins, variables…oof. everybody, start using it. now. (especially you, danbender)

here are some resources that have really helped me out over the past few weeks

One more thing: I had an absolutely awful beginning of the week this past week. Like 3 straight days of me feeling super disappointed in my progress & ability. Coincidentally, those 3 days were when my mentor decided to bounce for Vegas for the Lunar New Year, so I didn’t have anybody to ask for help. (Other people on my team are working on wildly different parts of the product.)

I’m doing fantastically now, but it’s funny how the super ego-ing never ends, huh?

upcoming checkin part two: the new phase 1s/2s are smart

WTF are WebSockets?

I really should blog…

But it’s way easier to reblog genius things DBC kids write/find. SO MUCH KNOWLEDGES

danbender:

This:

When you visit a traditional web page, each resource (image, css, javascript file, etc.) that the browser comes across when rendering the document creates a new request to the server (ignoring browser caching) using the HTTP protocol. This includes requests made using Javascript and…

Save some money and port your Heroku database over to AWS

SUCK IT HEROKU (jk i love you guys…but not for 9 bucks a month)
fabscode
:

Last updated at: 29th November 2013

NOTE: This guide will not show you how to port your entire app from Heroku to AWS, this is just for how to use an AWS database on Heroku. You’ll get the ease of Heroku without having to pay when you need a database of more than 10,000 rows.

If like…

Answering all of my "wait what IS this?" javascript questions

thescarowproject:

Stumbled across this when I was looking for an explanation for the “false” in event handlers like this:

element1.addEventListener('click',doSomething2,false)

What is that false for? What’s it doing there!? This article answers that question and more.

THIS IS CHANGING MY WORLD

getting closure(s)

CLOSURES! Jeffrey dropped this bomb on us while refactoring our code. JS is so cool. and dumb. and everything.


raorao
:

As I’ve been telling phase 2 and phase 3 boots, JavaScript is a stupid language, and I don’t mean that as an insult. For example, where Ruby has 50-ish enumerable methods to iterate over collections, JS has, basically, two. But that’s okay! That just means you have to build any complicated…

In Bed By 11

Is this real life?

Also, DBC Final Projects begin tomorrow…

..I FEEL SO MANY EMOTIONS.

Triumph

image

At DBC, the day is peppered with loud high-fives and fuck yeahs, the latter generally coming from myself. Once in a while, a group will complete a feature/solve a bug/etc and collectively scream and hug and shout, high-fives and fuck yeah’s abound. 

At these moments, you perk up in your seat, see who’s making all the commotion, and then begin clap and cheer them on. It’s really a beautiful thing to be a part of.

Last night,  I didn’t feel comfortable with AJAX, and I didn’t know jack shit about partials. Solution? Tackle them both on a basic Notes Rails app with ryanhedges . (Shoutout to taylor-at-dbc and cartersowers for laying down the groundwork with me for said app!)

Around 12:50, danbender, kenatdbc, Ryan and I were the only ones left in the building, as usual. ( morgan-wildermuth where you at??) Ryan and I had been hitting our head against a bug for quite some time, and Dan asked if we wanted to bounce soon. “10 minutes. We’re so close I can fucking taste the code in my mouth”,  I said. I know that sounds kind of gross. 

Sure enough, at 1 am, Ryan and I shared one of the most triumphant celebrations I have had the pleasure of being a part in quite some time. Even though there were only 4 of us there, I’m pretty sure I heard 40 people in the building yelling with me. 

Refer to the image at the top of this post to see the thought processes of ryan and I as we ran our “tests”. (‘cause fuck Jasmine…jk I love you gurl.) 

All Your Firebase Are Belong To Us

So the other day raorao and I joked about making a Spaceteam clone for my final project. Well, it was a joke at first… Then my brain got a hold of Firebase, a tree structured database. That updates in real-time. Written in Javascript.  (Here’s how it works.)

I haven’t been able to think about anything else. Just GIMME DA POWAH.

In other news, group projects began today. I’m in a trio, and it’s worked wonderfully. After pushing out our MVP, we set up a sweet rotation: 1 person spikes on a future idea/gem/feature, while the other 2 pair on the feature at hand. We’ve been TDDing like crazy, so I’m gonna go ahead and say today was mad productive. It’s kind of incredible how much more comfortable I’ve become with Testing & RSpec over the past 3 days. Although by now, it shouldn’t surprise me—3 days in DBC time feels like a month in the real world.


I really wish I was in bed right now though. This bike ride blows. Especially in this windy ass weather.

Heroku and You

I’m blogging for the second day in a row. Applause.

10/8

Same scores. But I feel way better about Testing and TDD after writing a few solid Capybara tests today. Although that isn’t saying much cause I felt awful after yesterday night’s failures. About to spend the night TDDing Pig Latin. Also pushing our todo app to Heroku felt SO. GOOD.

Testing was hard back then. It still is. 

There’s something to be said about creating a web app from absolute scratch. It’s a good feeling when you understand every single line of code that runs that application. 

And you didn’t just throw shit together, you deliberately put words in certain places in order to achieve a desired result. And then, you pushed the app to the internet via Heroku. 

Now, your mom halfway across the world can type in an address and see your shitty todo list with absolutely no CSS. Beautiful.

Phase 3. How did I get here?

I now sit where Nick/Tyler used to sit during the last phase’s group projects. This is part of my grand master plan to soak up the collective the brain power of the last cohort.

Shadi is our teacher for Phase 3. I love this guy. Seriously. Bad ass programmer, easy to talk to, and really believes in our abilities.

As he explained some Rails shenanigans to me today, he said “You might not know this stuff now, but you do know what it’s made of. [type type type] See? I just want you to realize that this isn’t magic.”

Indeed, Shadi. Indeed.


Current opinion of Rails: This shit does wayyyy too many things for me. Convention over Configuration? GTFO

Goddammit

image

Last time I posted it was the end of Phase 1. I’m terrible at this.

In Phase 2, we had to write a few lines about what we learned that day, every day, and submit it to our cohort’s repo. It’s October 29th, but I’m going to post about what I wrote in my journal that first day of Phase 2.

I think I’m going to frequently jump back to entries in my journal and comment on how I’ve (hopefully) progressed or (probably) still don’t know what the shit I’m doing.

(Note: I frequently reference scores based on a set of learning objectives that we could “check off”.)

10/7

I think its hilarious that I spent my hour long spike on RSpec and I still got a 0/8 on Testing & TDD. 

I also think its hilarious that I got a 6/8 on Active Record. I don’t feel anywhere close to a 6/8.

 I now think it’s hilarious that I spiked on Testing. 

Phase 1: Complete

image

Still not sure how that just happened. The first week of Phase 2 has been an absolute blur, but I’ll try and jump back and give a quick recap of what’s gone down.

Here’s the breakdown.

Week 1: Algorithms

Learning about DBC, its culture, and getting used to my new schedule. What a schedule. Up at 7, home by 12. Biking every day, new friends, and building a Sudoku solver. And recursion. And recursion.  And recursion.

Week 2: Object Oriented Programming (OOP)

Learning about objects, classes, and how they play with each other. Aka making orange trees, groves, cookies, and ovens. Scraping websites for information with Nokogiri, parsing CSVs with Ruby, and having my first meltdown. 

Week 3: Databases

DATABASES! Designing database schema, the relationships between different tables, and playing with SQLite. Then giving SQLite the middle finger once we start playing with ActiveRecord. Omg ActiveRecord. I NOW HAVE POWERSSSSSS.

Also, fuck congressmen/legislators.

Seeing the Phase 3 kiddies present their final projects was amazing/inspiring/everything. Knowing that they all weren’t going to be here come Monday was weird/sad/everything else.

Phase 2, here we go.

So you want to learn HTML & CSS?

https://dash.generalassemb.ly/

Seriously. Don’t waste your time with anything else. Props to natatdbc for the hookup.

Dan Bender: [CSS experiment:] A CSS-only Ruby.

Wowowow. Dan, our resident CSS beast, whipped this up in his spare time:


danbender
:

I love back-end development but last night I wanted to try something new in CSS3. I wanted to build and design a Ruby out of pure CSS. Here’s how I did it:

The Markup:

The markup is simple; a relative-positioned container-div and two child-element divs that are absolute-positioned inside of the…