I am blog
These are the things I write about
Display and editor templates in ASP.NET MVC are often overlooked and are in fact quite powerful, here's why I think they are awesome.
Web Essentials opened the door to SASS in Visual Studio by giving us a way to compile without the need for Ruby. But now we have Task Runner Explorer, FTW!
If you want to use the latest and greatest in CSS3 you are going to have to use vendor prefixes to ensure the best browser support. Knowing when and which vendor prefixes are required in CSS is a constantly changing battlefield.
We all love intellisense. No one likes to type more than four characters without Visual Studio doing the rest for you. When using a CSS pre-processor such as SASS or LESS, we may have variables or mixins that we use in different files. This often results in the horrible validation error squiggly line, and no one likes to see that. We can get around this though, and here's how.
LESS now has a function called rulesets which allows you to create a mixin that wraps content in a media query.
HTML5 range input is a great control and an alternative way for a user to select or set a value. Knockout is a great fit for handling it.
These days the use of colours with opacity (RGBA) is common. The downside is, it means the number of colour values we need to maintain multiplies and it is hard to tell when a hex value is the same as an RGB value in our CSS files. Fortunately, LESS provides us with functions to simplify this.
A grid system can make life a lot easier when it comes to creating the layout of page. This article demonstrates how creating a level of abstraction from our grid with mixins can make it even easier.
Git is a great version control system and is very easy to integrate with Visual Studio. Here's the workflow I use for projects using a centralised Git repository.
Allowing your content to be hosted in a cross-domain IFRAME can make your website vulnerable to attacks such as framesniffing and clickjacking. Now MVC5 prevents this by default.