Mis­takes to avoid

net magazine - - Q&AS -

What is the #1 mis­take you see most devs making when first learn­ing Sass? Rick Yentzer, Bos­ton, US JB: Sass gives you a lot of pow­er­ful fea­tures: vari­ables, maps, mix­ins, func­tions and so on. A mis­take new users of­ten make is to ab­stract ev­ery­thing just be­cause they can. When I first started I would make mix­ins for any­thing I thought might be re­peat­able – then it would turn out I wouldn’t even use them. I rec­om­mend build­ing things only when you need them, and ab­stract­ing them when you find your­self re­peat­ing your­self.

Newspapers in English

Newspapers from Australia

© PressReader. All rights reserved.