HNHacker News
TopNewBestAskShowJobs

johndoe4589

81 karma · joined August 29, 2015

submissionscomments
johndoe4589··on Chrome 56 will mark HTTP pages with password fields as non-secure
Their IT guy?? There are gazillions of people like me who have a blog, or some small project that has a small audience of tens to just a few thousand users. All these people now have to fork for SSL, or have to move everything to a different shared hosting that supports Let's Encrypt.
johndoe4589··on Too much sitting, too little exercise may accelerate biological aging
It could also very well be that those participants in the study who didn't "exercise" were lonely, were more or less alone or single, had no one to go take a walk with, have lost their closest relatives, have lost their significant other, etc. All those could factor in as much if not more than the "exercise". (and hence spend much more time indoors, probably watching the telly, and then things go from bad to worse in old age as health problems cascade)

And I quote "exercise" because it's not clear from the article if it's something like gymnastics, or the participant reported 30 min of daily walking and other activities like cycling. Point being, you could be unhappy and exercise a little bit every day and still be worse off than someone who's happy and loves to sit and watch the bird sings. Who knows.

I'd wager these days the quality of our food, and the bonds we have with people around us is far more incidental on our lifespan.

Here I am thinking of the less explored perspective:

https://www.theguardian.com/commentisfree/2014/oct/14/age-of...

Quoting

> "One of the tragic outcomes of loneliness is that people turn to their televisions for consolation: two-fifths of older people report that the one-eyed god is their principal company."

johndoe4589··on Renewing Medium’s focus
I love to read on Medium but it nly works for me when I NEVER recommend, reply or even read anything that's not outside my focused interest, which is programming topics.

Their algorithm is bad , way too sensible. I read a single opiniated post about politics or what have you and the next day my mostly Javascript / Front End feed is flooded with angry women talking about feminism, or people talking about Trump, or that idiot "SF Ali" writing pointless drivel.

They really need to add a way to make magazines of sorts, to be able to have different feeds. The notion of mixing together all kind of interests doesn't make sense. WHen I want to read about web development, I don't want to read about Trump. And vice versa.

I think the design of Medium gave it a certain "chic" but I quickly began to realize it's just another blogging platform and there are a LOT of badly written articles on there.

I wish there was something like Medium focused on creating ediucative content, where banter and personal opinions are frowned upon. So I can go to a feed, and just LEARN things. I don't know if it's even possible to do that though.

johndoe4589··on Why are developers switching from Mac OS X to Linux?
Are they? Are you kidding me? Putting all controversies aside, OS X is a much better finished product.

Which is also why the latest elementaryOS posts on Medium are kind of cringy. One moment the author says how Apple users are disatisfied that Apple may be abandoning powerful desktops, next moment he emphasizes how you can install Linux on any laptop.. starting with your Macbook. LOL? As if replacing the OS on the same hardware is going to solve the disatisfaction of a power user? And installing a much more broken, inconsistent collection of constantly broken packages? WHich you need to updated CONSTANTLY. If you don't like Windows updates, man, Linux is even worse. Every friggin day there are updates, they are all somehow VERY important, and they are all potential bombs that will fuck up your config or break some apps you installed. Fuck, I'm running a LTS version and I still get updtes everyday, probably for completely insignificant fixes.

I think I may end up installing Linux again on a partition because my Ubuntu VM is too sluggish for front end dev (especially CSS animations/transitions) but I would never expect that to be a better solution that straight up OS X.

johndoe4589··on Show HN: Castor, a live dashboard for your projects
Wow.. that is a much more striking use of the "slanted" layout. Superb.. it has a little bit of "materialize" feel to it but without the cold / harsh aspect of material (imho). Or maybe Material isn't done very well in most sites / apps I've used (often times they tend to have a ton of space that's not really "white space", just badly designed empty space.. Google loves to do this by forcing mobile app layouts into a desktop site).

Also this is a great use of animations. The page is fairly static, and animations are used in interactions (mouseover mostly).

Adding this site to my inspiration bookmarks :)

johndoe4589··on Show HN: Castor, a live dashboard for your projects
No you're not. Personally I find it really annoying. I hope this is a fad, along with the photos showing through "holes" as you scroll down a page.

At least this is a landingpage and not a long form article, but even as a landing page I feel it is distracting.

Why can't people just make really good design like you'd have in print, on a relatively static page. I guess it's the medium that calls for it. Hey, we have Javascript and CSS3 oh my! Let's do something cool!

edit: it's one of those things that looks cool, and is ok in moderation. But when it's used too much it's just distracting. It calls my attention, but not for the right reasons. It stops me from being in my own flow and reading the page the way I want to read it.

johndoe4589··on Show HN: Castor, a live dashboard for your projects
As an aside, I noticed the above-the-fold design is very similar to [ElementFE](http://element.eleme.io/#/en-US). What's up with that? Did this particular design with the slanted line originate somewhere else or are they the same people perhaps?
johndoe4589··on Show HN: Tabbie, a tab manager for Google Chrome
The behaviour can be in line with desktop.. ie. click extension to get a choice to add current page to "favorites" (assuming extension manages the new tab as well, which is where the shortcut would go). Only when in the new tab page, I'd allow drag and drop of the icons.

It's pretty nutty to think just how crude the Google Chrome default tab page is. I'm not sure why it is that way. I don't think the page screenshot is that much helpful. Some sites look good and the thumb is pretty recognizable, others are relatively random.

Actually, I wonder if an extension can pull the "apple-touch-icon-precomposed" hi dpi icons in the meta tags?

johndoe4589··on Show HN: Tabbie, a tab manager for Google Chrome
Thoughts:

* Super simpe, I like it

* Nice colorful icon easy to spot

suggestions

* save all tabs by default, I honestly never even heard you could "select" tabs (ctrl click) and never used it until I found out it wasnt working and tried ctrl clicking tabs before saving them. Even after learning it I think it's a hassle for me to do that extra step. Logically speaking a session is all the tabs, I don't see how selecting tabs to save is the main use case but maybe I'm the odd one.

* Some way to replace tabs instead of opening a window. I like to keep my window centered, and unfortunately a new window is always shifted from the default position, and then if I close that one last, my windows never open in the same spot. Maybe a checkbox " replace tabs in active window" (or some general setting that won't need to be in the popup)

johndoe4589··on Show HN: Tabbie, a tab manager for Google Chrome
Somewhat related:

I want a simple clean page like Safari's Favorites on iOS, with just beautiful icons (using high dpi mobile icons instead of the favicon), a simple label. Able to drag/drop to organize them however I like on a simple grid. That's all I need.

Is there an extension to do that? A beautiful grid of icons, clean, no fuss ?

Safari's Favorites on iOS is just great. I tend to use it as a "reading list" so I don't have to deal with the bookmarks for temporary things, and also for permanent sites I visit often.

The only thing I'd improve over Safari's Favorites (iOS) is to show a subtle grid when you start dragging items, and to allow user to leave empty blocks in the grid. That way you can personalize even more by arranging icons in groups (kinda like windows desktop icons with "align icons to grid").

johndoe4589··on Mind as an emergent self-organizing process
No need to throw the baby with the bathwater...

I thought the point to take away, is that mind is not separate from environment. And futher questioning the inner / outer distinction which causes a sense of separation and disconnectedness.

edit: for me it echoes a recent post from Riccardo Manzotti's "spread mind" theory:

"Are subjective qualities really more private than objective properties? Or are they the conceptual byproduct of two different ways to address the same stuff?"

http://thespreadmind.tumblr.com/post/154801861307/are-subjec...

As Alan Watts beautifully put it:

"Every way in which you define your self, can be described in terms of other"

ie. just find a single part of "personal" experience that can not be defined as non-personal. arms, legs, face ? those are the body. memories / thoughts? Are obviously made of some kind of echo of sense experience. Content of recent thougghts? Obviously in response to recent experiences or concerns, which themselves again are not self, and never originated as "self".

johndoe4589··on Firebug lives on in Firefox DevTools
I can see the "built in Firebug" user interface building in front of my eyes. The top bar appears and a good 100-300 msec later the second bar with the tabs draw. Toggle F12 mutliple times, it's slow every time (you'd think it's not necessary to redraw everything and that this window could be cached somewhere?). I'm on 50.1.0 Windows 7 x64

With "Electrolysis" isn't that supposed to run even faster than the Firebug add on ?

johndoe4589··on Vuetify - Material Component Framework for VueJS 2
Could actually see a "flash of unstyled content" on my desktop PC. No biggie, but that makes me think about just how overkill I want to go with VueJS. (edit: wondering also if they precompiled those templates with vue-loader?)

I'm super excited about VueJS, and start using it on my site. But when I see a component for a button, you know, just a regular styled link... I wonder if there is really a purpose to that? How do you strike the right balance of what should be a component, and what can be handled as plain html with perhaps some backend helpers to output in view templates?

Also just as a general criticism I think it's not welcoming for a Vue component framework to have such a strong opiniated design built in. It would be much nicer to have the theme something relatively easy to change. It may be don't get me wrong... but my first impression is "Can I even use this? Without changing tons of style rules?".

For this I think the relatively simple design of Bootstrap is a strength. Give me the same components with a barebones design, with cheap flat buttons with some rounded corners for "pzaz" and then I feel much more confident about bringing that into an existing project. Even if I started a site today, I don't want to use Material design.

johndoe4589··on Chrome 56 Beta: “Not Secure” Warning, Web Bluetooth, and CSS Position: Sticky
You're absolutely right. I'm surprised nobody here seems to care. I guess HN is popular with techies who have root access on their servers, or people who run commercial sites.

What happened to the hobby / non profit apps, blogs and forums that fill 90% of the web and my bookmarks? All of them have a login form somewhere. Tons of people already use secondary emails or throwaway emails, but these site owners now have to pay for SSL or have to upgrade their shared hosting to "business" or the like to get SSL included, or pay extra fees to install SSL.

If all they do is look for a password field that means pretty much any phpBB or wordpress blog out there is defacto "insecure" and the owners of those sites now need to find a way to get SSL on their (most likely)shared hosting. Mine is not free at all, it requires "installation" fees, plus "dedicated Ip" so in the end it cost near as much as just buying their SSL package.

At this point though it's very unclear how Google will find those "insecure" password fields. Does it honer the no-follow? Because last time I heard it's not useful to get a login form page indexed anyway.

johndoe4589··on Chrome 56 Beta: “Not Secure” Warning, Web Bluetooth, and CSS Position: Sticky
EDIT4:

Bah, it's not free on HostGator even with a free certificate:

_Do you authorize the $2 / month or $24 / year dedicated IP charge? (Dedicated IP required for SSL) *_

_Do you authorize the $10.00 SSL Installation fee?_

EDIT3:

Re: having to buy a SSL on a hobby site / forum ...

Ok I see HostGator allows third party SSL it's not super straightforward but at least it seems possible to use a free SSL from Let's Encrypt and then get it installed...

I have shell access too, but it's not "administrative" access so afaik, the Let's Encrypt "Certbot" would not work?

Would https://gethttpsforfree.com/ work on HostGator with a shared shell access (not administrative), anybody knows?

johndoe4589··on Disassembling Sublime Text
Other scenario:

Long time "lightweight" VIM user with gvim, using tabs, and often two windows (sessions)...

On OS X, MacVim was a delight.

Since I had to swiych back to Windows, and I use VirtualBox, gvim is really slow. It also has some nasty rendering issues due to its underlying gtk framework intercaction with the Virtual Box Guest Additions. The only work around I found was some obscure tweaks in the Compiz Comfing Settings Manager (CCSM) related to screen redraws. Spent hours and hours installing different VMs, Linux Mint, Ubuntu, etc. and trying to isolate the problem in Virtual Box.

Finally recently I heard about Sublime Text... it runs SO MUCH BETTER than gvim in a Ubuntu VM.

And.. icing on the cake... I discover it has a "vintage" mode that covers pretty much everything I used (ci" to replace inside strings, dt; to "delete till ;", vit to select visual inside tag, etc. It seems to support a lot more than the documentation says.

To top it off it appears to be very configurable as well.

All in all I genuinely wonder why you'd not want to use the editor? Because it's paid? It doesn't even enforce you to buy the software, which is prety gracious of the developer.

But honestly.. what started getting on my nerves.. is whenever I'd visit discussions about vim and you always have the same clique who point out how using the mouse is "inefficient" and how using vim inside terminal is the only true way of using vim, and how using tabs is "slow" compared to their way of switching buffers, etc. I suppose you can gleefully ignore these comments but it makes you question in the end if you are using an editor out of ideology. If I stick to Sublime Text I will definitely not miss those inane topics.

The main thing I don't like in Sublime Text so far are:

- the search replace UI... I much preferred the %s// way of doing things. ( but for multi file refactoring I much prefer a special tool for that like "regexxer" )

- the over abundance of auto completion. Unfortunately whenever a dev creates some autocomplete plugin they always feel as if it is the right thing to do to complete EVERYTHING. Well it makes "logical" sense to them, to scrape a source like mozilla MDN, or the specs sheets. And then they may even proudly describe how their plugin covers everything AND MORE .. including css properties or javascript syntax that isn't even implemented yet.

.. So TLDR I find out half the time I try to complete something I end up spending more time undoing the clusterfuck and it makes me wonder why I use it at all. I wish devs understood the 80/20 rule and make the completion work for the 80% case, so that the editor actually serves the user instead of slowing you down. How the heck do you remember everything that can be completed? THere is simply too many possibilities so you never know quite what will happen.

.. So now I need to find the setting in Sublime to auto complete only what is in all my open files and nothing else, and it's probably much more meaningful that way. Since when you add to a project, you'll end up reusing a lot of the functions both self made, and those often used from an API.

That's my rant for the day =)

PS:

But seriously Sublime + Vintage mode maeks it easy to switch from vim if necessary. The settings are:

  "ignored_packages":
  [
    // (dont ignore "Vintage"
  ]

  "vintage_start_in_command_mode": true
johndoe4589··on Confessions of an Instagram Influencer
By the way I just realized... kids do not believe in Santa Claus. WE make them believe in it. Big difference. And in fact in some parenting circles, it is suggested that you should never tell such stories to your children.

This is another big debate altogether and I genuinely have no interest in debating that. Just threw it out there because it sounds like you lump together things that are very different from one another.

https://www.psychologytoday.com/blog/logical-take/201512/in-...

johndoe4589··on Confessions of an Instagram Influencer
Perhaps I should have defined my use of the term. "Fiction" for me was implicitly referring to a narrative which tends to revolve around self or collective identities.

I think there is a distinction that can be made, which happens to be echoed by an intuitive sense that we have. We all dislike self centered people. Why is that? What is it about it that makes us uncomfortable? And why do we not like lies? Why do we resent when people posture? Why do we feel uneasy when someone makes a fake smile? Or when someone tries to convince us and you can feel their motive is self centered?

We all have in us a drive towards authenticity, genuineness, truth, whatever you want to call it.

What's dark or cynical about that?

On the science side, there is recent research looking into the "default mode network" that highlights how it appears to be the source of our self-related ruminating thoughts. In fact it appears that 90% of our thoughts in any given day are about "me", or some made up collectives which we use to extend our identity.

This amazing civilization we have built is not built with the self-referential type of fiction. It was built with our abstract thinking, and language capacities. (which is a practical type of thinking or narrative)

True, humanity is not going to drop their stories in a day. But I wouldn't lump fiction and abstract thinking together as "fiction". One is obvious fiction, which is based on identities, which in turn is based on our sense of survival; The other is of a more practical nature.

johndoe4589··on Confessions of an Instagram Influencer
Was just thinking about this recently as I started following a few people.

We are increasingly living in a world of fiction. Previously it was mainly fed through television. You'd grow up on television series, and as a young man/woman you'd try to be cool like them, dress like them, talk like them. You build your world view around "influential" portrayals.

Nowadays, we haven't freed ourself from media controlled television at all. It's actually worse, because now advertising is blurring the lines even more between real people and fiction. We eat and breathe fiction, then we live our own life trying to resemble it.

Nothing is new there. But what's new for me is I started to recognize that fiction in and of itself is probably as detrimental to our society as fear is. It's well known that fear drives self centered way of life and when we are in survival mode, we just don't make good choices and we lack compassion.

Lately I'm thinking that fiction, on a collective scale, is just as bad as fear. It keeps us unconscious. Just like fear it dissociates us from what we are, and from one another. It's really detrimental to us as individuals, and as a society. Unlike fear, it isn't immediately felt in the stomach.. so there is no sense of urgency.. And yet it is there... one just looks at the world to see the massive disconnect in our life on a day to day basis. I guess fear and fiction are best friends. Fear drives us to dissociate, and fiction provides the perfect happy place to dissociate.

John Berger, Ways of Seeing

"But where is this other way of life?"

https://www.youtube.com/watch?v=5jTUebm73IY

johndoe4589··on The Challenge of Consciousness
Riccardo Manzotti has some pretty cool Philosophical Cartoons on his site:

http://www.consciousness.it/RM_Cartoons.php

His "spread mind" site is great too:

http://www.thespreadmind.com/

As a "seeker" I sometimes wonder if he figured out something close to what nonduality teaches, only in a more technical language (ie. consciousnsss is not located inside anymore than it is outside, therefore somewhat blurring the lines between I and the world). I think his example of the rainbow is such a great metaphor.

Bernardo Kastrup has his theories as well with his whirlpool" metaphor but to me it sounds like it makes sense only to him, and I don't get much out of his metaphor. Whereas Riccardo's pointers are reminiscent of older teachings in that they really invite the reader to examine direct experience (Just my interpretation of his theory).

johndoe4589··on UK government could force ISPs to block adult sites without age verification
Oh I see good point. I was thinking most public wifi networks would also leave the filter on.

But then again, how does the age verification protect children? I guess they are looking at the initial "impression" (in web semantics, the initial page load and what is shown without age verification).

johndoe4589··on UK government could force ISPs to block adult sites without age verification
I understand the concerns but on the other hand, why is it so hard to make "defaults" while still allowing people freedom to browse whatever they want?

I'd be perfectly happy for major porn sites to be blocked by default, as long as ISP customers can just go to their account online and toggle a checkbox and be done with it.

Google images blocks "adult" pictures by default doesn't it? Why aren't we having the same conversation and upset with Google images? Perhaps because all it takes is toggle the filter off in the menu.

Their proposal to block sites without age verification is pretty dumb though. Any kids can get through that, and it doesn't give any power to the parents to block these sites.

edit: I guess as usual the difficulty is in having rules that can be clearly defined, so "age verification" just fulfills that. But if they already have laws to categorize pronography I don't see why they couldn't apply to setting up "default" filters. Especially if looking at commercial pornography sites. I think commercial ones are the most damaging because their drive for money is what pushes them to create the most extreme and dehumanizing content.

johndoe4589··on Alien life could be so advanced it becomes indistinguishable from physics
To me it sounds like yet another attempt by materialism to get to grips with a non materialist view.

We all know at some level that the universe is not just full of "dumb rocks" (quoting Alan Watts). Evolution CAN coexist with the unknown. We're all mapping a sandbox from the inside, so to speak.

Evolution is a thing, physics is a thing, and it can all happen in consciousness.

But the notion of "god" and "intelligent universe" are so loaded these days, that a materialist has to find all kind of funny ways around it.

I think it's valuable, to try to express old ideas in a more modern language... But let's be honest theories like the "universe is a imulation", or that intelligence somehow pertains to alien life ... are just ways to postpone the hard problem of consciousness.

Potentially related:

The Physicalist Worldview as Neurotic Ego-Defense Mechanism

http://realitysandwich.com/320896/the-physicalist-worldview-...

johndoe4589··on Mark Zuckerberg's virtual reality demo [video]
> and (dog name) doesn't know what's going on (hahahaha) "yeah he usually doesn't"

Can't help but notice how certain kind of intellectuals always view animals with contempt. They may love the animal, but they see it as a "pet". What they're really saying, is that the dog is stupid.

Now personally, I'm not really excited about technology that's designed by people who live so much in their head, that they categorize the world in "intelligent humans" and "stupid animals". I kid you not, I'm pretty sure, many of them do actually believe that making a computer that simulates a completely working dog and all its behaviours is just a matter of time.. because hey, "the brain is just a computer" and obviously to them, a dog's brain is a much simpler computer...

Now animals being stupid isn't enough. The world also is stupid, so let's just recreate trees, which are obviously just a collection of parts "branch", "trunk" and so on. Wooooo. And then let's touch ourselves all day thinking about how the world is a simulation because we're obviously just a few millenia away of simulating ourselves.

/rant OFF

I'm sure they really love their dog... but to me these type of comments are not innocent. It reveals the materialistic paradigm that drives people making those technologies, and I'm not sure it is for the better.

We're pretty much designing everything on mobile around addiction already, we need more ethics in the way that technology is designed. Especially when it is designed by people who's primary motivation in life is to amass riches rather than actually making our life better.

johndoe4589··on Google HTML/CSS Style Guide – Omit Optional Tags
> it's not worth "saving lines" to make your CSS harder to parse for someone who doesn't already know that you like to group X, Y and Z properties.

Well somewhat in between you could also put properties in alphabetical order as suggested in this Google Style Guide. That tend to work for me since "text" properties will be towards the end of the rule, and for me the layout properties like border, display, margin and padding is something I'd want to see first.

But where I prefer some freedom vs hard rules is that I'll also align properties to make the differences more obvious. In this YUI2 example, the second class is applied to a mobile version of the dialog, the common properties come first, that way the difference is obvious:

  /* dialog body wrapper for extra css styling (.rtk-skin-dlg .yui-panel .bd .body) */
  .rtk-skin-dlg .body { background:#fff; padding:10px; border-radius:3px; box-shadow:0 1px 3px rgba(0,0,0,0.2) inset; }
  .rtk-mobl-dlg .body { background:#fff; padding:10px; }
johndoe4589··on Google HTML/CSS Style Guide – Omit Optional Tags
Agree, this is one of the reasons going for it. Unless someone works on mobile or some small laptop, the text editor should display 120 columns or more easily. And I'm not writing a git commit message, I'm writing css rules.

Besides I like that it also gives me a better sense of how verbose some of the rules are and if some of the properties could be removed entirely. When the hierarchy of those rules is more apparent with the more compact style, I'm more likely to see unnecessary properties (which are inherited) and therefore trim up the code.

johndoe4589··on Google HTML/CSS Style Guide – Omit Optional Tags
Well that is the whole point, I wish I made the example better.

How is it harder to parse? Putting everything in separate lines make the CSS file 10 times longer, and it's more difficult to see groups of rules that fit together along with their common structure.

Nowadays unless you edit on a tablet your text editor probably handles 120 columns or more.

But I really can't see the argument for readability. When I navigate a stylesheet for a website I'm working on, I want to see the larger structure. I don't need to see clearly the properties within a single rule. I want to see from top down.

Still, this could be argued forever. Apples and bananas :) I guess it's the same discussion as space vs tabs, or 2 space vs 4 spaces.

Here's a better example from one project which used YUI2 (it's old, but I think it shows my point of view, that the dtk-skin-dlg structure is very obvious along with the hd/bd/ft structure YUI 2 uses and the styles applied to them, that's the structure I want to see readily when I work in a stylesheet without having to scroll to understand it's all connected together):

  /* dialog body */
  .dtk-skin-dlg .yui-panel { outline:none; }
  .dtk-skin-dlg .yui-panel .hd { font:16px/1em Verdana, sans-serif; color:#ddd; padding:10px 10px 0; background:none; }
  .dtk-skin-dlg .yui-panel .bd { padding:10px 10px 10px; background:none; font-size:12px; line-height:19px; color:#000; }
  .dtk-skin-dlg .yui-panel .ft { padding:5px 10px 10px; background:none; font-size:12px; line-height:1.2em; color:#000; }
  
  /* dialog footers, right aligned */
  .dtk-skin-dlg .ft-right { clear:both; width:100%; padding:5px 0 0; text-align:right; }
  
  /* left align buttons INSIDE ft-right */
  .dtk-skin-dlg .ft-left  { float:left; text-align:left; /*padding from ft-right*/ }
  
  /* dialog body wrapper for extra css styling  */
  .dtk-skin-dlg .body { background:#fff; padding:10px; border-radius:3px; box-shadow:0 1px 3px rgba(0,0,0,0.2) inset; }
  .dtk-mobl-dlg .body { background:#fff; padding:10px; }
johndoe4589··on Google HTML/CSS Style Guide – Omit Optional Tags
Sure. This is one of the most useful macros I found online :) I'd love to link to the original page but I can't remember where it is from. Here it is:

  " Piece-wise copying of the line above the current one
  :imap <C-L> @@@<ESC>hhkywjl?@@@<CR>P/@@@<CR>3s
johndoe4589··on Google HTML/CSS Style Guide – Omit Optional Tags
https://google.github.io/styleguide/htmlcssguide.xml?showone...

How is adding a space after ":" any more consistent than having none? No space between property and value is more unique and searchable should you need to find something or do search/replace.

johndoe4589··on Google HTML/CSS Style Guide – Omit Optional Tags
Interestingly they don't seem to have a rule against one line declarations.

I alwats use this style, which imho is very handy, because of the tree structure and admittedly because I have a super cool macro in Vim that copies the characters from the line above, word by word so create rules that afect children of the rule above it requires just a few keystrokes:

  #some-div { margin:1em 0; }
  #some-div .inner { padding:5px 10px; }
  #some-div .inner p { font-size:90%; }
This makes the structure of the declarations more obvious imho, and I tend to have a nicely organized series of structures like that that are logically grouped together.

Obviously this applies more to components/widgets than the basic rules and layout.

If a declaration is long then I use newlines.. but even then I tend to group things together eg.

  #some-div {
    display:inline; margin: ...; padding: ...;
    border-radius: ...; border-color: ...; 
    font-size:90%; text-align:center;
  }
Basically within a css rule I'll group together the layout properties, the text properties, etc.
← PreviousPage 2 of 3Next →