HNHacker News
TopNewBestAskShowJobs

philipwalton

1,007 karma · joined March 23, 2012

submissionscomments
philipwalton··on New GitHub Logo
Does anyone else notice the striking similarity between the new Enterprise design and Bootstrap? I guess that's what you get when you hire Mark Otto.

https://enterprise.github.com/ http://twitter.github.io/bootstrap/

philipwalton··on Tunnel vision 3D CSS experiment
Yeah, I was just gonna say this definitely should have been written with Sass.
philipwalton··on Media Queries are a Hack
No, your example isn't the same.

In your example you're referring to the max-width of the viewport. In Ian's example, he's referring to the max-width of the `.testimonial` element itself.

philipwalton··on Learning JavaScript - my experience and advice
JavaScript has three main features that commonly trip up people from other languages. If you understand these three things, you'll be way ahead of the curve:

1) What `this` means in a function context https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...

2) The prototype chain and prototypal inheritance https://developer.mozilla.org/en-US/docs/JavaScript/Introduc...

3) Function closures and variable scoping https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Cl...

philipwalton··on Learning JavaScript - my experience and advice
John Resig made a similar point in an article discussing using JavaScript as an intro language for the Khan Academy. http://ejohn.org/blog/introducing-khan-cs/

He argues (and I agree) that prototypal inheritance isn't complicated unless you're coming from a very classical inheritance background.

philipwalton··on Show HN: I rewrote the Backbone.js Todo example
An example of the TODOs app with AMD is great! Now if only Backbone and Underscore would support AMD natively so you wouldn't need to Shim them.
philipwalton··on Show HN: hint.css – a tooltip library in CSS
The double hyphen is actually part of a pretty common naming convention (BEM-style) for distinguishing between separate components, component modifiers, and component sub-objects.

Examples: https://gist.github.com/1309546 http://nicolasgallagher.com/about-html-semantics-front-end-a... http://csswizardry.com/2013/01/mindbemding-getting-your-head... http://engineering.appfolio.com/2012/11/16/css-architecture

philipwalton··on Show HN: hint.css – a tooltip library in CSS
I was going to say the exact same thing, but you beat me too it!

I started with this approach when I built our tooltip library for my company, but eventually there were just too many gotchas. We switched to using JavaScript and inserting the generated element as a child of `body`.

philipwalton··on What No One Told You About Z-Index
The point was that there are factors other than z-index involved in determining the stacking order. I'm certainly not suggesting anyone use opacity to move things around in the stacking order. I was just trying to make people aware of it. It's confusing if you don't know what's going on.
philipwalton··on CSS Architecture
The suggestion "Never nest rules purely for code organization" isn't to save a few bytes, it's avoid the specificity trap. Too many people who write Sass use nesting to make their code look more appealing in their editor, but what they end up with is unnecessarily specific selectors.

The file size issue isn't really that much of a concern unless you're on a really large site, but specificity issues affect everyone.

philipwalton··on Scalable and Maintainable CSS Approaches
What part of OOCSS do you think SASS already solves? Perhaps there's some disagreement about this that can help me answer your question.
philipwalton··on Scalable and Maintainable CSS Approaches
These approaches are not incompatible with SASS/LESS. If anything, learning them is more important now that we have preprocessors.
← PreviousPage 4 of 4