On Github loumontano / sassconf-maps
Lourdes Montano | SassConf 2015 | Austin, TX
//Hi! Thank you for coming //My 1st time in Austin :) This is creating your styles with Sass Maps I'm going to talk about what I've been learning this yearFront-End Developer @ R/GA Buenos Aires
@loumontano
- Day to day includes working with responsive HTML CSS JSbig scale / long term projects
- Websites with tons of visits / users - Large teams in different cities / countries - Big and strong architecture - Communication is very important - At the beggining of the year I worked on a big projectLots of changes...all the time
Interaction with Designers
Developers
The client
- The client wasn't sure about the design direction - Change stuff twice a day, and very quickSeriously...
A BAZILLION CHANGES
and then going back to the first option
all the time…
- This was affecting code quality and performance - A code refactor was needed because so many changes made the code not clean - I used to save old code snippets bc I new I had to add them again laterI needed a solution for this
- I was tired and a bit frustated, this was not a good way of working at all - I knew the client wasn't going to change his mind, so I had to find a way to deal with this - I needed an organized solution"We’re not designing pages, we’re designing systems of components."
Stephen Hay
- We create components, we think on the parts of the site and how they interact between them - Design and architecture is easier this way - Communication between designers and developers improvedyou said Maps?
isn't it difficult?
//By that time I started reading about maps and could "kind of" understand how it worked… //Thought that only ‘the chosen ones’ could work with this //We all tell ourselves tricky excuses like ‘I don’t know it perfectly’ or ‘is not fully supported yet' //So let's see how it works!Key / Value data sets Unique list of keys Access to the keys and values Ability to iterate values
So, all in all maps are thisSo, how do I apply this? C'mon, Lou...give me something I can use
//I knew the theory but I didn't find a useful case for my workFINAL THOUGHTS
Easy to maintain & modify Better code organization Use maps with a purpose Beware those nested maps! Debug!
- The learning curve may be a bit more complex - Use it if it suits for your project. - The best technique is the one that makes you feel more confortable and is more performant for your project.Thank You! @loumontano http://www.slideshare.net/loumontano/sassconf-maps