Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.advocacy > #453694
| From | Snit <usenet@gallopinginsanity.com> |
|---|---|
| Newsgroups | comp.os.linux.advocacy |
| Subject | Re: Ooooh! All the trolls on COLA are doomed. |
| Date | 2018-06-03 11:47 -0700 |
| Message-ID | <fnird9Fm0j7U7@mid.individual.net> (permalink) |
| References | (7 earlier) <25e67428-c27d-499a-8aee-0fcb5d152539@googlegroups.com> <b3bbd1b8-1fd7-44ae-9ae0-57e461a53ef0@googlegroups.com> <0e71c492-1bb6-4cbc-a4db-cd34d6016940@googlegroups.com> <fnhdngFdq51U5@mid.individual.net> <44bf096d-2fb0-4cf8-86c1-cc9fa7608ca7@googlegroups.com> |
On 6/3/18 11:28 AM, Steve Carroll wrote: > On Saturday, June 2, 2018 at 11:47:31 PM UTC-6, Snit wrote: >> On 3/19/16 8:56 AM, Steve Carroll wrote: > >>> Saves characters and reduces the rule count. >> >> So? > > So that's a good thing to practice... as it reduces the file size. > If you're teaching people how to build websites for a living you > should probably think about this stuff a little. I am hardly an expert on this, but perhaps you should work to understand the actual pros and cons before you push how it should be done the way YOU like. <https://csswizardry.com/2016/12/css-shorthand-syntax-considered-an-anti-pattern/> OR <https://goo.gl/g1sXh7> ----- Typically we would view shorthand syntax as a benefit: fewer keystrokes, fewer lines of code, less data over the wire. Sounds great! However, it comes with a rather troublesome side effect: it often unsets other properties that we never intended to modify. ... Nearly every problem, bug, or regression in CSS at scale is happens because we did too much too soon, and further down the line we’re being affected by that. What this basically comes down to is the fact that, with CSS, you should only ever do as little as you need to do and nothing more. ----- <https://www.hongkiat.com/blog/css-shorthand-longhand-notations/> ----- Even though shorthand alternatives are handy, they do have a disadvantage. Remember in the beginning we saw how shorthand overrides any left out properties with their default values? This can be a problem if the reset isn’t desired. ----- In the very example you use, you introduce defining margins that were not in the original CSS. >>> And why are you using id instead of class to apply style rules? T's a better practice to save the id for when you want to target with javascript. >> >> IDs are not only for JavaScript! > > True enough. Good to see you admit to your error. > However, when I see stuff like what Godhe has > done, I recommend the person learn how to style using *only* > classes. Instead of suggesting they do things correctly and understand what an ID is for. Yikes! ... -- Personal attacks from those who troll show their own insecurity. They cannot use reason to show the message to be wrong so they try to feel somehow superior by attacking the messenger. They cling to their attacks and ignore the message time and time again. <https://youtu.be/H4NW-Cqh308>
Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Ooooh! All the trolls on COLA are doomed. Snit <usenet@gallopinginsanity.com> - 2018-06-02 22:47 -0700
Re: Ooooh! All the trolls on COLA are doomed. Steve Carroll <fretwizzer@gmail.com> - 2018-06-03 11:28 -0700
Re: Ooooh! All the trolls on COLA are doomed. Snit <usenet@gallopinginsanity.com> - 2018-06-03 11:47 -0700
Re: Ooooh! All the trolls on COLA are doomed. Steve Carroll <fretwizzer@gmail.com> - 2018-06-03 12:08 -0700
Re: Ooooh! All the trolls on COLA are doomed. Snit <usenet@gallopinginsanity.com> - 2018-06-03 12:24 -0700
Re: Ooooh! All the trolls on COLA are doomed. Steve Carroll <fretwizzer@gmail.com> - 2018-06-03 15:54 -0700
Re: Ooooh! All the trolls on COLA are doomed. Snit <usenet@gallopinginsanity.com> - 2018-06-03 16:16 -0700
Re: Ooooh! All the trolls on COLA are doomed. Steve Carroll <fretwizzer@gmail.com> - 2018-06-03 18:18 -0700
Re: Ooooh! All the trolls on COLA are doomed. Snit <usenet@gallopinginsanity.com> - 2018-06-03 18:35 -0700
Re: Ooooh! All the trolls on COLA are doomed. Snit <usenet@gallopinginsanity.com> - 2018-06-04 09:57 -0700
Re: Ooooh! All the trolls on COLA are doomed. Steve Carroll <fretwizzer@gmail.com> - 2018-06-04 10:05 -0700
Re: Ooooh! All the trolls on COLA are doomed. Steven Carroll <frelwizzen@gmail.com> - 2018-06-04 13:00 -0700
Re: Ooooh! All the trolls on COLA are doomed. Snit <usenet@gallopinginsanity.com> - 2018-06-04 10:09 -0700
csiph-web