DEV Community

Discussion on: 15 CSS3 Best practices of for beginners to pro.

Collapse
 
mariog8 profile image
Mario Golik

For me it's practice for You simple things ...everyone thinks differently,I respects your subjective opinion .

Thread Thread
 
joelbonetr profile image
JoelBonetR πŸ₯‡

A best practice is a technique or methodology that, through experience and research, has proven to reliably lead to a desired result. In software development we use best practices as well-defined methods that contributes to a successful steps in product/project development. Thus are general statements that -desirably- are followed by each individual to achieve a solid homogeneous joint result for a given tech stack.

Reducing your functions to a single responsibility is a good practice that exerts from the clean code group. Using a given language predefined method or function cannot be a good practice because you simply will use it when needed, so if you state that using CSS min, max and clamp are good practices, you'll need -scientifically- to state all language reference as good practices and even that, they are conditioned to a conditional context.

If you need something to be 100% it's parent width, is it a good practice to use min, max or clamp to achieve this? of course not. You simply do width: 100%.

The same way you will not find statements like "in JS a good practice is to use split method" because it's only good whenever is needed and not "always" or "in any case", instead we say "Don't Repeat Yourself" or DRY principle, which enforces you to use existing code methods or functions instead re-coding them, which can be applied to any case, thus if split method exists you'll use it instead coding a custom split -as long as it fits-.

There's something I need to remember many times in this platform but again here it is: IT is a science, thus there are methodologies, patterns, best practices, tests... you can try different approaches and apply synthetic tests as benchmarks to analyse which one works better or even do A-B tests to see how user interacts with different UI versions of your software.

In conclusion if you say something is good or that is better but you can't tell why using reliable source or public benchs/tests, you are doing what is called opinionated or anti-scientific pattern.

Thread Thread
 
mariog8 profile image
Mario Golik

I respect your essay but I have a different opinion, relax man .πŸ˜…

Thread Thread
 
joelbonetr profile image
JoelBonetR πŸ₯‡

You didn't get the point, did you? xD

You have no opinions in science, you can theorise, then make a test suite that covers your theory, try things down, get data as result, merge this result with each test case result and extract conclusions from that. Then your investigation will eventually be peer-reviewed to give or take credit, making it more or less reliable or true/false.

I see in your profile that you are a self taught, this probably means that there were no teacher teaching you about that in computer science research methodology, even that, you can learn about software engineering, research methodology, algebra, logic and so on as there are tones of resources extracted from college subjects online for free, it's just a bit harsh in comparison to learn how to code with a given language but this kind of things are what can make you work on a serious well-driven company with -usually- a better salary as well as being able to work on a larger number of companies or roles in the industry.
You can even become a tech lead if you take effort in this subjects (I recommend you to get an official certificate whenever you can as well, it will definitely help you grow in your career).

Finally please, don't pick this words as an offence to you but as a good advice to follow.

Thread Thread
 
mariog8 profile image
Mario Golik

Thank you very much for your valuable advice. I am glad that you gave me tips, it is important and very precious for me. If you find a moment, take a look at my portfolio page and evaluate if you can (I care about constructive criticism) It would be very nice for me ... Have You a great day. See you next time ...πŸ˜‰

Thread Thread
 
joelbonetr profile image
JoelBonetR πŸ₯‡

You're welcome, I'll pin a tab with your portfolio and will take a look at it after the meetings today :D
Have a great day!

Thread Thread
 
mariog8 profile image
Mario Golik

Thanks a lot, fruitful day and successfully meetings πŸ˜‰πŸ‘

Thread Thread
 
joelbonetr profile image
JoelBonetR πŸ₯‡

thanks, I sent you some private messages (chat icon near notification bell icon at the top) :D