HNHacker News
TopNewBestAskShowJobs

TorbjornLunde

196 karma · joined August 27, 2010

submissionscomments
TorbjornLunde··on Ask HN: Anyone have a really smart way to organize css?
Don't overcomplicate things:

- Have only one CSS-file, unless your project is huge.

- Never use IDs

- Avoid reset CSS (espescially if you can ignore IE6/7

- If you think you need variables (like in SASS), you are probably thinking about it the wrong way

- Give classes functional names, not presentational

- Linebreaks after declaration. (Makes your CSS-file easier to navigate)

- Remember that you can use you media queries inside your CSS-file

Web designer Jens Meiert has some good articles:

http://meiert.com/en/blog/20090401/why-css-needs-no-variable...

http://meiert.com/en/blog/20080515/css-organization-and-effi...

http://meiert.com/en/blog/20070321/css-practice-pseudo-names...

http://meiert.com/en/blog/20090527/css-maintenance-issue-1/

TorbjornLunde··on Ask HN: Anyone have a really smart way to organize css?
Another problem with IDs is that they make the "point system" in selectors much more complicated than if you only use classes and elements.
TorbjornLunde··on New Chrome Logo
While I think the original Chrome logo maybe had a bit too much “3D”, I think this is a bit too far in the other direction.

Something in between this new logo and the previous would probably be appropriate IMHO.

TorbjornLunde··on Deaths per unit of energy for various sources
I think people are less critical towards casualties from damns because it’s water, and therefore perceived as natural.

I think if 50 000 dies from a oil-related incident you would get some serious backslash against fossil fuels as well. (Electric generation from oil or gas is already quite controversial here in Norway.)

TorbjornLunde··on Fukushima is a triumph for nuke power: Build more reactors now
We can control whether we use nuclear power or not. Controlling nature is a little harder.

(Though I agree that shutting down power plants in Germany right now is illogical.)

TorbjornLunde··on Sleep is more important than food
“If you leave items in your working memory, they'll make it harder to fall asleep, and you'll end up ruminating about them if you should wake up during the night.”

Avoiding thinking about things when you go to bed is something I am struggling quite a bit with. I will sure try out to write down my thoughts.

Any other advice to avoid your mind thinking too much when it should be winding down?

TorbjornLunde··on Hardest captcha ever?
Isn't using math questions to stop bots(computers), a bit like trying to stop tanks with barbed wire?
TorbjornLunde··on Google finally has a 404 page that isn't ugly
Seems weird to have Arial in the font-stack, as Arial is the default font for sans-serif on Windows. (And Helvetica on OS X which has the same metrics.)
TorbjornLunde··on Designers, how do we get you guys to contribute to open source projects?
Not sure if I agree about the school.

There are schools that offer courses in interaction design. In addition many visual communication courses offer interaction design in addition to the usual print oriented design.

TorbjornLunde··on Designers, how do we get you guys to contribute to open source projects?
Alignment could refer to alignment of different objects in a design (a website, an application window).

The most important function of aAlignment is to communicate what belongs together.

Having objects align also makes for a “calmer” design. Imagine that each new place any object has a beginning or an end adds an invisible line to your design. These makes the design more chaotic. Aligning objects is a way to “re-use” the lines so that you don't end up with too many of them.

(Designer here, although I will not claim to be an expert on it.)

TorbjornLunde··on Scott Adams: Phone
Same in Norway, that being said: when someone says “mobil” people will usually think of a cellphone and voice communication (or SMS), but that meaning will probably change.
← PreviousPage 3 of 3