Thought This Was Funny

June 30, 2011 · 0 min · 0 words · Nick Berardi

With Each Step Forward, Microsoft Takes Two Back

Today I was browsing a Microsoft published document on creating ASP.NET Web Pages using the Razor Syntax and to my surprise I found this gem on page 65. @{ var db = Database.OpenFile("SmallBakery.sdf"); var selectQueryString = "SELECT * FROM Products ORDER BY Name"; } <!DOCTYPE html> <html> <head> <title>Small Bakery Products</title> <style> h1 {font-size: 14px;} table, th, td { border: solid 1px #bbbbbb; border-collapse:collapse; padding:2px; } </style> </head> <body> <h1>Small Bakery Products</h1> <table> <thead> <tr> <th>Id</th> <th>Product</th> <th>Description</th> <th>Price</th> </tr> </thead> <tbody> @foreach (var row in db.Query(selectQueryString)){ <tr> <td>@row.Id</td> <td>@row.Name</td> <td>@row.Description</td> <td>@row.Price</td> </tr> } </tbody> </table> </body> </html> In case you missed it here is the meat of the problem I have with this example: ...

August 9, 2010 · 5 min · 870 words · Nick Berardi

Performance Optimizations Made By Microsoft, Google, and Yahoo JavaScript Minimizers

In my first post about JavaScript compression and the different levels supported by the three major competitors in the JavaScript minimization, obfuscation, and optimization tools space. I the article I discussed which tool provided the best compression in regards to the resulting byte count. And found that Google took the over all crown with Microsoft following very closely behind. A comment posted on that article by Eric J. Smith of Code Smith, provided a nice lead in to my second article in this series, he posted this comment: ...

January 20, 2010 · 6 min · 1257 words · Nick Berardi

Yahoo YUI Compressor vs. Microsoft AJAX Minifier vs. Google Closure Compiler

A little more than a year and half ago I created a MSBuild Task for the YUI Compressor that was very well received, and even highlighted on the YUI Compressor site. At the time of writing that article YUI Compressor was king of the hill, and for the most part the only game in town that was really designed for production level use. Since then a number of new competitors have been released by Google and Microsoft, and I wanted to see how they stacked up against the YUI Compressor. ...

January 18, 2010 · 4 min · 735 words · Nick Berardi

Linus: "Microsoft Hatred Is a Disease"

I am not going to comment too much on Linus Torvald’s comments in this Linux Magazine article, because I feel they are very transparent and they mirror my own. I’m a big believer in “technology over politics”. I don’t care who it comes from, as long as there are solid reasons for the code, and as long as we don’t have to worry about licensing etc issues. I may make jokes about Microsoft at times, but at the same time, I think the Microsoft hatred is a disease. I believe in open development, and that very much involves not just making the source open, but also not shutting other people and companies out. There are ’extremists’ in the free software world, but that’s one major reason why I don’t call what I do ‘free software’ any more. I don’t want to be associated with the people for whom it’s about exclusion and hatred." ...

July 24, 2009 · 2 min · 364 words · Nick Berardi

Windows 7 Blame Feature

Over this past weekend I installed Windows 7 (64-bit), and I have to say that it is a great upgrade from Windows Vista that nobody should be disappointed with. Even as a release candidate it is rock stable and has been able to cope and recover from many of the failing drivers I tried this weekend, with out the need for a single reboot. This is impressive, because I remember when I first tried Windows Vista as a beta almost 3 years ago, that I received blue screens left and right from faulty drivers that didn’t yet support Windows Vista. Blue screens have always really bothered me, because as a avid Windows supporter, I have heard all too often the mantra of the uneducated. ...

May 3, 2009 · 2 min · 313 words · Nick Berardi

100 Million Lines of Code in Your Car

I was reading over on DevTopic today about how 100 Million Lines of Code is pretty common in cars today. We have come a really long way since 1977 when the first micro-chip was introduced in to the Oldsmobile Toronado, but what I really want to share with you guys is what I found at the end of the post. I laughed out loud, when I read this because believe it or not this is starting to happen in cars and it has nothing to do with Microsoft. Just the ever growing source code base that runs modern cars, and the ever growing chance for one of those lines to have a bug it in. ...

March 10, 2009 · 3 min · 454 words · Nick Berardi

Philly .NET User Group Meeting for September 2008

I will be presenting September 17, 2008 at Philly .NET User Group Meeting. My talk will be on: Creating a modern, web 2.0, application with MVC and jQuery with a focus on doing this in a RESTful manor. My goal is for the developers in attendance to learn how to create a RESTful website design using MVC and implement that RESTful design on the front end with some simple jQuery. These principals will be demonstrated by creating a simple Twitter like application for sharing messages. All the source code will be available via my website at http://www.coderjournal.com after the presentation. ...

September 11, 2008 · 3 min · 475 words · Nick Berardi

MySQL Officially Declared Microsoft SQL Server Compeditor

I have been a huge fan of MySQL for a long time. It is the perfect database for when the budget is tight or you are not working in a Microsoft Environment. It performs well, and has a huge following of dedicated professional programmers that use it day in and day out on some of the largest websites on the planet. Most noteable Facebook, Twitter, Flickr, and Digg. Even with all these proven capabilities to scale and perform, Microsoft has choosen to ignore it and focus on some of the monolytic providers of databases such as IBM and Oracle when comparing SQL Server. ...

August 10, 2008 · 2 min · 222 words · Nick Berardi

ASP.NET MVC Preview 2 CAPTCHA using ActionFilterAttribute

My last article on ASP.NET MVC CAPTCHA was very well received by many of my readers and it even caught the eye of the DotNetKicks crowd. Now that MVC Preview 2 was released last week, many new features make encapsulating my CAPTCHA control even easier. Most notably is the ActionFilterAttribute which allows you to override the Pre and Post action events for any action the attribute is applied to. Basically everything works the same as it did in the previous article. I just modified things for MVC Preview 2. To validate the CAPTCHA you add the attribute CaptchaValidation to the action. ...

March 9, 2008 · 1 min · 203 words · Nick Berardi