![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there some particular reason that the inventors of CSS chose to leave us with the legacy of the curly brackets (for which one has to shift press) rather than the square (for which one simply has to press)? p [margin: 0;] is two key presses shorter then p {margin: 0;} Multiply that by a few billion over the world of css, taking in to account a lot of consequences including the bigger chance of typos and revisions, the greater expenditure of energy on people and processors, more wear and tear on the keyboard. |
#3
| |||
| |||
|
|
dorayme wrote: Is there some particular reason that the inventors of CSS chose to leave us with the legacy of the curly brackets (for which one has to shift press) rather than the square (for which one simply has to press)? p [margin: 0;] is two key presses shorter then p {margin: 0;} Multiply that by a few billion over the world of css, taking in to account a lot of consequences including the bigger chance of typos and revisions, the greater expenditure of energy on people and processors, more wear and tear on the keyboard. Square brackets are for attribute selectors. A useful but not often used feature because of IE. |
#4
| |||
| |||
|
|
Is there some particular reason that the inventors of CSS chose to leave us with the legacy of the curly brackets (for which one has to shift press) rather than the square (for which one simply has to press)? |
|
p [margin: 0;] is two key presses shorter then p {margin: 0;} |
#5
| |||
| |||
|
| Is there some particular reason that the inventors of CSS chose to leave us with the legacy of the curly brackets (for which one has to shift press) rather than the square (for which one simply has to press)? p [margin: 0;] is two key presses shorter then p {margin: 0;} |
|
Multiply that by a few billion over the world of css, taking in to account a lot of consequences including the bigger chance of typos and revisions, the greater expenditure of energy on people and processors, more wear and tear on the keyboard. |
#6
| |||
| |||
|
|
Is there some particular reason that the inventors of CSS chose to leave us with the legacy of the curly brackets (for which one has to shift press) rather than the square (for which one simply has to press)? |
#7
| |||
| |||
|
|
In article doraymeRidThis-22C5FE.15022624112007...ptusnet.com.au>, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: Is there some particular reason that the inventors of CSS chose to leave us with the legacy of the curly brackets (for which one has to shift press) rather than the square (for which one simply has to press)? Perhaps to build upon existing conventions. |
|
Perhaps on some keyboards square brackets actually are harder to type. |
|
p [margin: 0;] is two key presses shorter then p {margin: 0;} So is p {margin:0} |
#8
| |||
| |||
|
|
On 2007-11-24, dorayme wrote: Is there some particular reason that the inventors of CSS chose to leave us with the legacy of the curly brackets (for which one has to shift press) rather than the square (for which one simply has to press)? p [margin: 0;] is two key presses shorter then p {margin: 0;} It's only one key press shorter for me; when I press { in a .css file, the closing brace is automatically inserted. |
|
Multiply that by a few billion over the world of css, taking in to account a lot of consequences including the bigger chance of typos and revisions, the greater expenditure of energy on people and processors, more wear and tear on the keyboard. |
#9
| |||
| |||
|
|
dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> writes: Is there some particular reason that the inventors of CSS chose to leave us with the legacy of the curly brackets (for which one has to shift press) rather than the square (for which one simply has to press)? I suspect it's a question of familiarity - JavaScript, C, Perl, and many other languages with which many web developers may be familiar all use curly brackets. |
#10
| |||
| |||
|
|
In article <user-1DA0ED.05534024112007 (AT) textnews (DOT) euro.net>, Sander Tekelenburg <user (AT) domain (DOT) invalid> wrote: In article doraymeRidThis-22C5FE.15022624112007...ptusnet.com.au>, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: Is there some particular reason that the inventors of CSS chose to leave us with the legacy of the curly brackets (for which one has to shift press) rather than the square (for which one simply has to press)? Perhaps to build upon existing conventions. Which were? |
![]() |
| Thread Tools | |
| Display Modes | |
| |