DEV Community

Discussion on: 10 CSS Mistakes You Should Avoid for a Flawless Website Design

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I’d advocate using auto prefixes over remembering to use them and know the spec and browser requirements, it’s just not worth your headspace.

I’ve also got a gripe with shorthand vs long.

Your browser will compute to long so the only thing you are doing is saving some bytes. But as shorthand value syntax is quite hard to remember it might be easier for future you and your team to just use full longhand where it makes sense. Also good to know that shorthand overrides longhand or was it the other way around… look I’m aging I used to know this stuff but life’s to short. Make your code stupid and gain productivity.

Collapse
 
devxvaibhav profile image
Vaibhav Kumar

First of all Thank you for the comment, I know shorthand are not easy to keep in memory, but once you wrap your head around them they are very productive(in my opinion), because they use less code space and that can lead to slight effect on your website performance, this is just my small opinion 😁

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I’ve been writing css from muscle memory for over 10 years and I think what you said speaks volumes , some things have not stuck in my head and I don’t think they ever will. Un-head-wrapable if you like. When it comes to the productivity of others and the overall success of your team, not remembering wins out. And also shorthand will have you dealing with values you might have not wanted to set.

Anyway thanks for the chat 🫡

Thread Thread
 
devxvaibhav profile image
Vaibhav Kumar

I respect your opinion sir 😁 thank you for your opinion I will remember it 🤞