Virtual selectors in WeCSS

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Virtual selectors in WeCSS
« Reply #30, on August 16th, 2012, 08:24 PM »
Any faves in the name list?

Also -- woo. Looks like topic pages are broken on my iPod...
Re: Virtual selectors in WeCSS
« Reply #31, on August 17th, 2012, 12:55 AM »
Quote from Nao on August 16th, 2012, 04:02 PM
I was thinking of a name that could naturally 'flow' into the naming scheme, something that would remind people of 'index'... So in addition to hacks, I thought of addendum (= latin), postscript (ditto), affix (has an x, 5 letters), extra (ditto!), or just 'fix'...
Since it's a name that's likely to be used a lot by skinners, I'd like to ensure it 'works' per se...
I think that 'extra' or 'extras' is probably the most neutral of all. And thus would both work for browser hacks and sub-skins.
Keep up the good work, Nao! Even if I don't post a lot, I always love to see what you have to offer! I know it's bit of a rush, but will you marry me?

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Virtual selectors in WeCSS
« Reply #32, on August 17th, 2012, 12:58 AM »
Quote
I think that 'extra' or 'extras' is probably the most neutral of all. And thus would both work for browser hacks and sub-skins.
Works for me.
Quote
Keep up the good work, Nao! Even if I don't post a lot, I always love to see what you have to offer! I know it's bit of a rush, but will you marry me?
Wait are you reading my mind? (don't, it's a mess in here)
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,082

godboko71

  • Fence accomplished!
  • Hello
  • Posts: 361
Re: Virtual selectors in WeCSS
« Reply #34, on August 21st, 2012, 12:47 AM »
I like extras (sorry been dealing with family issues)

Thanks for the laughs as well I needed them!!
Thank you,
Boko

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Virtual selectors in WeCSS
« Reply #36, on October 16th, 2012, 12:49 AM »
Quote from Nao on July 25th, 2012, 05:22 PM
So, I was considering a new feature that I'll add to WeCSS, and need to get some thoughts on it first...

Let's consider this new keyword, 'virtual' (always in line with the C++/Delphi naming scheme.)

.inline-block virtual
   display: inline-block
   blablabla...
Interesting thought on this topic...

- First idea: July 25, 2012.
- First commit: August 16, 2012.

Now, let's have a look at SASS...

- v3.1.2 adds placeholder selectors, which is very similar to Wedge's virtual selector feature[1] First release: August 10, 2012.

So... It's an impressive coincidence. In the same week, both Wess and SASS added the same feature to their codebase.
But I had the idea first, right...? So I win?
Wrong -- I took a few minutes to go through their github changelog, and found commits related to 'placeholders' that go way before I even got the initial idea. For instance -- https://github.com/nex3/sass/commit/fb917b109b35d505ca659ed83e698896a9b7de91 (that was back in January.)

I must admit I'm a bit disappointed... This was THE latest good idea I had on my own, and it was already done by someone else... :lol:
OTOH, I should be used to that... There are so many people online, I've rarely, if ever, found one of my ideas to really be a first in the forum world. I'm all about innovation, but it's okay if others get the idea before you do. What matters is that you don't get any bad ideas, I guess... :P
 1. A quick example... In Wess you'd define ".my_class virtual", while in SASS you'd define "%my_class". It really is pretty much the same, just a matter of syntax preference. I'd even be tempted to add support for 'placeholders' like they did, but really my preference goes to adding a keyword. It's more readable I think.