Do you remember the days before string interpolation in C#? I do. It was medieval. Those were truly the dark days of development. We would all use string formatting and concatenation and carried swords around to defend ourselves against giant beasts. Ok, maybe I'm the only one that was wearing a helmet but I'm kind of a weird guy. I think we can all agree that string concatenation is not all that fun. It might not be as dangerous as dragons, but it can still light your hair on fire when there is a bug in your code just to display some text. Classes in C# like StringBuilder helped make things safer but it wasn't all that readable. String.Format is easy but keeping the parameters in the right order isn't exactly a no brainer either. What if that code was just in a class behind a view? Can't we just put it in the view? In the code behind it was easily testable, but the context was lost, and it wasn't as simple as what we can do today. output = String.Format("
One of the most popular Visual Studio extensions is Web Essentials. One of my favorite features is the extra stylesheet support WE gives Visual Studio. Making sure that the numbers of colors in a web site doesn't get out of control can be a big deal. Having a consistent color palette makes a real difference in the overall feel of a web application. After you install the extension you should see a new menu in the toolbar called Web Essentials. It will look like this. If you click "Create color palette" you'll add a css file to the Solution Items. This file is named specifically "WE-Palette.css". Do not rename it or move it. If you happen to remove it, but do not delete it then you'll be stuck. The file might still be in the solution folder but hidden from the project. You will have to delete it or Visual Studio won't be able to create it. You'll be stuck in a state of color palette limbo. In this example I created a s
There are now more people posting about working from home than there are rolls of toilet paper on planet earth. (I just made that statistic up). Here is the top ten reasons why I'm contributing to that number. Nobody will read this You can print this list and use it for toilet paper I sometimes use my gym equipment and want to brag about that My internet stalker wants to see in my office/gym I'm bored I've been working at home for over a year straight and will hopefully never commute again Sharing my space will make you feel better about your own space I like showing off my curved monitor For tax purposes, in case they bring back the home office deduction, this is proof SEO Those reasons are not in any particular order. I just made them up. I hope anyone reading this is safe at home and can work in a nice quiet space like mine.