If you’re a Ruby developer working with Rails, at some point you’re going to need to work with JavaScript. While the two languages have many similarities, the fundamental differences in their object models can be quite jarring. CoffeeScript helps to provide a more Ruby-like syntax, but if you’re…
Give them an inch and they take $773,074,040
In early 2012, Southwest Airlines began reducing seat pitch—better known as legroom—in their 737s by a single inch, from 32” to 31”. This allowed them to add an additional six seats per flight.
Southwest runs, on average, 94,350 flights per month at an average price of just $141.72 per seat. These flights, according to the airline, are generally 80% full.
That means, every year that single inch earns them $773,074,040 of additional revenue. I guess every little bit really does count.
Android sucks.
So been building some mobile web apps. 1 thing I learned css3 animations can kill the android browsers. Seriously, like crash it to death.
Startups, Stock Options & US Taxes DONT MIX
Things I learned about Javascript / Node
node if you pass in a require looks for an index.js. Interesting. Took me a while to figure out but now makes total sense.
SetTimeouts and variables and scopes! Oh My! Just learned that when setting changes on an variable/object using settimeouts. It look at the state of the variable or object at the time the delayed event runs not the state at when you first passed in a the delayed event.
Safari, CSS3 animations with transform hates z-index.
New news. If you’re using CSS3 animations and using negative valued transformations, Safari does not respect the z-index. I’m guessing it probably has to do with safari trying to do transformation depth and then doing dom z-indexing.
Sass sample:
@keyframes swingIn {
0% {
transform-origin: center top;
transform: perspective(400px) rotateX(-90deg);
}
40% {
transform: perspective(400px) rotateX( 15deg)
}
70% {
transform: perspective(400px) rotateX(-5deg)
}
100% {
transform-origin: center top;
transform: perspective(400px) rotateX(0deg);
opacity: 1;
}
}
It will flicker back behind z-indexed elements at the -90 and -5 points of the keyframe animation.
Q
Anonymous asked:
Why are you so handsome?
A
I was born that way.
ujs is not the answer
I tried the whole pjax thing… It just doesn’t make sense! Too much javascript cluttered everywhere, I want uniformity. F*ck it, I’m more convinced now more than ever that Backbone/thick client is the way to go.
