Cool CSS stuff - Part 2 - SCSS as JS

For me CSS or SCSS is a ways to a means - we need to style elements. However my pleasure on the front end come mainly from JS and the puzzles we get to solve creatively. So when I started playing around with loops and conditional statements in SCSS, I was super excited to see that SCSS can also be a fun way to solve styling issues with more traditional programming techniques. My problem to start with was creating a carrot/triangle pointing to the right. So I started to search the net and came across this cool post about using...

Cool CSS stuff - Part 1 - Checkmarks

This will be more or less an on going sequence of posts based on cool CSS stuff that I want to share. Also it helps me to remember how this cool stuff was done. I have been working with a CSS magician the last couple weeks, a humble one at that, and I have learned a lot of cool tricks. I want to talk about the way he made checkmarks, which blew me away. First off how you get in the mind set of thinking css can do such a thing, but I guess as with all skills it comes...

Angular Form Validation - Part 1 - ngModel Controller

Form validation the "Angular way" is an extremely powerful tool. We have the ability to pass a simple regular expression to the ng-pattern attribute of the input field for simple input validation, or we can make our own custom validation functions utilizing the NgModelController. So you might be thinking to yourself yeah, but I can already use a pattern for validation in html5. True, indeed you can, but when you couple all the bits and pieces together and let Angular do its thing you have a complete tool set at your disposal. In this post I wanna show how we...

You too can write a selector engine

Ok so the title is a bit misleading. Yes, it is possible to write selector engine, but when we talk about a selector engine as complex as Sizzle then it's another story. Don't get me wrong I am not saying your JS skillz aren't up to the task, but it's a pretty heavy task considering the back browser compatibility and all the methods that come bundled along with the selector engine. Recently my vanilla JS skills were tested and I realized - well - they could be better. We have had the crutch, if you wanna look at it that...

Mocking Controller Instantiation In AngularJS Unit Test

Being able to mock is what unit testing is all about this paradigm plays an especially important role in AngularJS unit testing. We mock our application's environment. We mock data using constants. We mock services using functions. All in order to test how a certain portion of an application should preform in production. As AngularJS is built upon modularity of code, our unit tests should be no different. How then do we then mock controllers? First off I think it's important to note why I am asking this question in the first place. You might be thinking to yourself well...
pow wow!