Tumgik
jasonmwong-blog · 11 years
Text
Rounding out
I've been rounding out my developer skills, by learning some front end design. I'll be posting more about that in the future, but here's a piece from the New Yorker on Google's design evolution.
0 notes
jasonmwong-blog · 11 years
Text
Close.io API & Ruby
Last week, I signed up for close.io for my CRM. Their backend & examples are written in Python, so I wrote a web2lead app hooking in their API using Sinatra, HTTParty, and Slim. I bashed my head in for a day, until I realized I needed a trailing slash on Lead.post('/api/v1/lead/ - ugh. Hopefully, some of you can use this. Close.io has been a good service, and their customer service is very responsive. Waiting for Contactually to hook into Close.io!
0 notes
jasonmwong-blog · 11 years
Text
Solving the post-sick nightly persistent cough
1. 12 Hour Mucinex 2. Down with a glass of hot tea 3. Heaping spoonful of loquat syrup (it's mostly honey anyways). Do not dilute with water. 4. Sleep on your side (I usually sleep on my back, but that seems to make it marginally worse). This seems to do the trick for me, as the loquat gives me about 20-40 minutes to fall asleep without the throat irritation.
0 notes
jasonmwong-blog · 12 years
Text
Debugging SCSS/SASS in Chrome
Debugging SASS/SCSS in Chrome takes a few extra steps. This tutorial took me 95% of the way, but I needed to enable the devtools experiments, first. FireSass for firebug/Firefox works fine, but if you like to do your css debugging in Chrome, here's how you do it. 1. "Enable Developer Tools Experiments" in chrome://flags/ 2. Follow the instructions below. You should be golden. How to make Chrome understand the SASS/SCSS in your rails app
0 notes
jasonmwong-blog · 12 years
Text
Migrating from Zurb Foundation / Twitter Bootstrap to Bourbon & Neat
Moving the Rails custom forms from Foundation 3 to 4 is a PITA, so in frustation, I'm taking my next project closer to the metal.
I'm utilising Bourbon.io, a scss library and Neat, a grid framework for Bourbon. It's less code (for faster downloads), allows semantic naming, and fits well within SMACSS principles. This improves the end-user experience, the developer (me) experience, and I get to learn an easy to use framework I've been itching to try. That's 3 wins. I'll take it!
If you're coming from Bootstrap, you make grids declaring CSS column classes in HTML:
https://gist.github.com/jason/5207085
Similarly for Foundation:
https://gist.github.com/jason/5207092
With Neat, you to apply the grid spacing to the CSS itself. It's semantically cleaner, because you're naming the layout piece - a span4 only refers to a column size. An article or a sidebar gives developers context to work with.
https://gist.github.com/jason/5207111
In retrospect, I should have called l-row l-header. l-row is an equivalent to the Foundation row class, and I don't mind using an @include across my CSS classes.
If you've been using Foundation or Bootstrap, and want to get a better idea of what's really going on underneath, while saving time through plenty of great mixins and shortcuts, I'd highly recommend Bourbon & Neat. The combo saves a ton of time vs rolling your own CSS from scratch, and doesn't go overboard on overhead. After a few projects with Bourbon & Neat, you might occasionally go back to BS or Foundation for rapid prototyping, but I'm guessing you won't.
4 notes · View notes
jasonmwong-blog · 12 years
Text
Top 5 Ramen Joints in the US
So who wants to go to Sacramento with me?
Top 5 Ramen Joints in the US
1 note · View note
jasonmwong-blog · 12 years
Text
The Monday After
AppAcademy got me addicted to learning technologies, and refining my new skills.  This weekend, completed the wonderful RegexOne, which introduced me to the fundamentals of Regex - a concept I'd never understood until this weekend.  I also covered CodeSchool's RSpec, Rails Best Practice classes for review.
I've also decided that I need to learn at least one of the MVC Javascript front end frameworks.  I'm skipping Backbone, for now, as I've heard you eventually need/want the features of the larger frameworks, and I'm going to wait on Ember, until the documentation improves, and there are nicer step-by-step tutorials.  
Angular appears both accessible AND well documented, something everyone starting on a framework needs.  I'll let you know how it goes!
0 notes
jasonmwong-blog · 12 years
Text
Appacademy, Week 9, Day 1
We began final projects, and what a difference one week of practice makes!  Last week, it took 2 days to plan models & associations for a 7 table schema, and today, it took me 1 for a 10 table! I'll take 2x improvement any day.  This week only gets about 4 days for our final projects, so I'll take it.  My final project is WTFJS a mashup of JSFiddle & Stack Overflow.
This time around, I'm putting more time into planning tools, which is already paying off.  I drew ER-Diagrams using Sketch a fantastic vector drawing tool, and rails-erd served as a sanity check that I didn't miss any pluralizations or other possible mistakes in the implementation of said diagrams.  I'm also creating stories using PivotalTracker.
It's the last week of AppAcademy, and I'm starting to get a little emotional. I haven't spent 8 hours a day learning with the same 16 people since... never.  Even elementary school was a group of 30 people.  And they're all great, likable people.  
1 note · View note
jasonmwong-blog · 12 years
Text
AppAcademy Week 8, Day 5
Demo Day!  For 5 days, there have been some impressive demos.  What I'm realizing is that a little JavaScript goes a looong way.  Yesterday, VoteCounter just took members, and counted votes.
Today, it's got a user auth through Devise, permissions, but more importantly, it draws a frigging chart in your face as each vote is successfully registered in the application.  That's the feature that got all of the oohs and aahs.  
0 notes
jasonmwong-blog · 12 years
Text
AppAcademy, Week 7, Day 4
I'm realizing that I'm spending a lot of time staring at code, trying to figure out a best practice way of doing it.  While I'm not quite there (I still have a couple lousy names that I need to change), I want to get these patterns to the level where it's automatic, and when I go back to my code, it's easy to understand.
0 notes
jasonmwong-blog · 12 years
Text
AppAcademy Week 8, Day 1
Personal Projects!  5 days of solo development.  I'm excited.  
I'm developing a VoteCounter, and spent the weekend studying up on my Javascript as well as Rails Best Practices.
I'm hoping to have all of my Models & Associations done by tomorrow.
0 notes
jasonmwong-blog · 12 years
Text
AppAcademy, Week 7, Day 5
We had some nice detailed instruction on creating a rotating carousel for our shopping cart through JavaScript and some CSS trickery.  I'm not the first person to think that I'm really enjoying jquery.animate().
I'm sure you're not the last person to groan reading that.
0 notes
jasonmwong-blog · 12 years
Text
AppAcademy, Week 7, Day 3
Back to Rails & Javascript with a shopping cart application!  I'm starting to understand what the node/express/meteor peeps are talking about when they talk about the cost of context switching.  I haven't had enough experience, so I'm mixing casing conventions, semicolons, etc, when I move between Ruby & Javascript.  Experience will fix that.
0 notes
jasonmwong-blog · 12 years
Text
AppAcademy, Week 7, Day 4
I'm programming solo today, so it's moving along much more slowly than usual - but I get to type 2x as much as usual, and the patterns are making their way into my head.  What's great about solo development is that you can't have a partner as a crutch, so you *have* to learn.  
They provided us again with more detailed instruction for implementing Asteroids.  I probably made it about 3/5s of the way through the exercise, but my implementation side experience with javascript is far, far better.  
0 notes
jasonmwong-blog · 12 years
Text
AppAcademy, Week 7, Day 2
More work on the gist project.  Every now and then, it's great to work with someone who outmatches you, as you learn better patterns, workflows, insights etc.  
The downside is that you slow down the team a bit.  Sigh.  
Afternoon was spent learning about HTML Canvas and using it with JavaScript, so we're doing asteroids!
In other JS news, keyword this is mangy dog that doesn't know who it belongs to.  Ah, just google 'keyword this javascript', and you'll notice how much of a problem it poses.  It's really just a few days of practice to get used to it, but ugh, killing me!
0 notes
jasonmwong-blog · 12 years
Text
AppAcademy, Week 7, Day 1
Ah, ajax & jQuery.  Worked on a clone of gist, implementing a ridiculously light Rails back end to supply data for an interactive-ish javascript front end.  Ryan Bates implements Ajax utilizing more of the Rails infrastructure, while we are posting to json, and implementing all of the javascript in-page.  It's a little bit like going from simple-form to form_tag (except starker).  We get a better understanding of what's going on underneath the hood, and long term learning, but man, the other way's so much easier! :-).
Compared to shorter projects, we've been provided with more instruction, so the breakdown is much more manageable.
0 notes
jasonmwong-blog · 12 years
Text
Ruby 2.0pre0 and YOLO
The wonders of being the first to upgrade means I got to file my first bug!  Long story short, the OpenSSL cert needed to be renamed cert.pem in the OpenSSL directory.  The solution was patched same day, so how's that for service?
The next big issue is that debugger and pry-debugger are broken... I'm left with console.log until this is fixed!
0 notes