Reza Safari Blog
Published on

Be cautious with Tailwind!

The trend that has emerged, with everyone moving towards using Tailwind, is, in my personal opinion, quite risky. This is reminiscent of the time when jQuery became popular, and many knew how to use jQuery but lacked proficiency in JavaScript itself. I recall an interview where I asked a candidate how well they knew JavaScript, and they responded that JavaScript was now obsolete, and there was no reason to use it anymore since they only knew jQuery.

A bit later, we witnessed a rarer phenomenon where people knew how to use Laravel but lacked proficiency in PHP. This phenomenon still continues.

Nowadays, with the presence of Tailwind, we encounter individuals who only memorize class names without having any idea about what is happening behind the scenes and lacking even the basic knowledge of CSS properties.

Personally, I believe this is very dangerous, especially when I see people teaching Tailwind to interns and beginners who are just starting their web development journey. It is an injustice done to them and greatly impacts their future.

Please note that this is not about categorizing Tailwind as inherently good or bad. Like any other tool, it has its own strengths and weaknesses. The bigger issue here is the lack of sufficient knowledge about CSS. These tools come and go; every day, a new one becomes popular, and everyone rushes towards it. However, in large and professional projects, you still rely on raw CSS and at most have a preprocessor.

If we were to define a path for frontend development for someone with no knowledge at all, we would say that for the first 3 to 6 months, they should focus solely on:

  1. HTML
  2. CSS
  3. Javascript

After mastering these, they can delve into preprocessors and build tools. Once proficient in those, they can venture into frameworks.

This path is proven and guarantees a solid foundation. If you feel that it takes too much time, it's better not to enter this field at all. Though entering earlier is possible, we all know what happens and what the outcome will be.