Dave Glick (Page 22)

Introducing FluentBootstrap

Extensions, helper classes, and other goodies to help you use the Bootstrap CSS framework.

FluentBootstrap Web Site
GitHub
NuGet

Read more...

How To Value Creative Work In The New Economy?

What To Do When Supply, Demand, and the Middle-Man Aren't In Sync?

This post is going to be a little off-topic for me, but it touches on something that's been bothering me and which recently became a subject of hot(er) debate after Taylor Swift pulled all her music from Spotify over claims of unfair compensation (among other reasons). I keep hearing the refrain you should pay artists fairly (you in this case being consumers). And I get that. I want to pay artists fairly. I want to know that when I buy a book, the author is getting what they want to get for that book and that it supports them to create more books (have I mentioned I like to read).

Read more...

A T4 Template To Get All CSS Class Names

Metaprogramming For Fun And Profit

This post combines two of my favorite things: meta-programming and the elimination of magic strings. The goal is to automatically generate a class with static const strings containing the name of all the CSS classes in your CSS files. Why would you want to do this? There are a number of reasons. First, it helps eliminate magic strings from your view code. Instead of writing <p class="my-class"> you can write <p class="@Css.MyClass">. It also helps when writing view code because you'll have access to IntelliSense data for all of your CSS classes, making it easier to remember their names and avoid mistakes. Finally, it improves analysis and refactoring because you can now rely on code engines to locate and operate on uses of a particular const string instead of just plain-text searching.

Read more...