Adam Howard
Well-known member
How would you define shared common usage code?
As I have always understood it......
Shared common usage code is defined as code in which is commonly used or impossible to avoid using if you want X result.
For example if you were coding in HTML 4 and you wanted to post a photo
The above example is your only alternative. You could make some alterations such as
But generally speaking, you could not avoid using the base of that code in HTML.
Everything you code for today no matter if it is in HTML, CSS, php, MySQL, ect... ect... Has some form of base code or common usage code which is unavoidable... ie... if you want X result you must use Y source. Period.
When coding or styling for a pre-made, pre-defined product your options are even less. This is because you must code within the confines of that products base code. And so you will run into more shared common usage code because yet again you must use the predetermined X code in order to achieve the desired Y effect.
For example in XenForo, let's assume you wanted to use an image in the moderator bar
The above example is your only alternative.
You could make some alterations such as the spacing and the alternative colors
But you would still be using the predetermined shared common usage code... ie... In order to achieve X you must submit to using the base code of Y.
This is what defines shared common usage code.
How would you define shared common usage code ?
As I have always understood it......
Shared common usage code is defined as code in which is commonly used or impossible to avoid using if you want X result.
For example if you were coding in HTML 4 and you wanted to post a photo
PHP:
<img src="happy.gif" />
The above example is your only alternative. You could make some alterations such as
PHP:
<img src="happy.gif" alt="Happy face" />
But generally speaking, you could not avoid using the base of that code in HTML.
Everything you code for today no matter if it is in HTML, CSS, php, MySQL, ect... ect... Has some form of base code or common usage code which is unavoidable... ie... if you want X result you must use Y source. Period.
When coding or styling for a pre-made, pre-defined product your options are even less. This is because you must code within the confines of that products base code. And so you will run into more shared common usage code because yet again you must use the predetermined X code in order to achieve the desired Y effect.
For example in XenForo, let's assume you wanted to use an image in the moderator bar
PHP:
#moderatorBar
{
background: @primaryDarker url('/IMAGE.gif') repeat-x center !important;
border-bottom: 1px solid @primaryDark !important;
}
The above example is your only alternative.
You could make some alterations such as the spacing and the alternative colors
PHP:
#moderatorBar
{
background: #555555 url('/IMAGE.gif') repeat-x center !important;
border-bottom: 2px solid #000000 !important;
}
But you would still be using the predetermined shared common usage code... ie... In order to achieve X you must submit to using the base code of Y.
This is what defines shared common usage code.
How would you define shared common usage code ?