DEV Community

Discussion on: 3 ways to centre a div + life advice

 
afif profile image
Temani Afif

micro-optimizing for every single use case even before you run into issue is not the best advice. --> sorry but I have to disagree here because this is not a micro-optimizating, it's a fundamental issue. When everywhere in the net, we see the same mistake that everyone do then we need to do something to counter this.

When a teacher is teaching young people some little wrong things, it may not look bad at first glance because it's not a big deal but when the children will grow, you will notice the mistake and it would be hard to recover.

Using Flexbox or CSS grid without understanding the fundamental is a big NO for me because you will write a ton of code and one day you will get surprised why things are broken and we will get lost within a lot of concept that you never learned before.

I have been answered more than 6000 questions in Stack Overflow and elsewhere so I have an idea about the mess that is happening