Friday, October 12, 2007

Yeah I still use TABLEs. Wanna fight?

The use of the TABLE element in HTML has created more controversy than the Da Vinci Code and Rev. Al Sharpton combined. On one side are the guys who use tables for laying out everything in their sites. Bad form. On the other side are the fanatics who bash everyone who uses tables anywhere. Lunatics.

If you use Grid FX, you'll notice that I use tables in some situations where it may not seem necessary. For example, the elements for the pager (navigation buttons, "Page 1 of x", a text box) are in a table.



I didn't want to do this but I had no other choice.

I use tables to satisfy these requirements:
1. No explicit width/height necessary
2. Shrink wraps to width of contents
3. Vertically aligns content in the middle. [More Info]

Believe it or not, you can't achieve this with DIVs or SPANs. Divs cannot shrink wrap and do not verically align in the middle. There are tricks around that but they require explicit sizes. Because the Grid is a component, every little piece must be customizable. I can make no assumptions on size or I will be screwed. I also played around with the float attribute but was disappointed when it had some adverse effects on layout.

In FireFox, there is a way to do this with DIVs and a special display attribute. So instead of:
<table><tr><td style="vertical-align:middle">.... I can do <div style="display:table; vertical-align:middle">

But then I have more code to write. I am currently working on some FireFox enhancements and issues and will probably build this optimization in. However, it will give no real performance boost and will only serve to make the DOM a little cleaner. What would you do?

Thursday, October 11, 2007

Code Idol

I was looking up .NET user groups that I could visit to talk about Grid FX. First up was the Florida .NET user group. When I pulled up the web site, there was a mention of an upcoming code contest that followed the American Idol format, and was cleverly dubbed Code Idol. I saw this and had to enter. It looked like a lot of fun. At first, I was gonna submit a small class that I use internally in our controls. I call it Operation Controller, and I'm gonna post it up at some point because I think it's a great example of abstracting a common problem. Anyway, as the contest approached, I decided to change my entry to something more relevant to the audience at the contest.

I entered something I call "Cache Register", which is basically a distributed .NET caching service that is meant to be used primarily by ASP.NET applications for removing the infamous ViewState hidden field and delivering dynamic images. There was one feature in particular that offloads any image processing from the UI thread to the cache service. This feature makes an obvious difference in performance. What's even cooler is that we provide this kind of technology with our products...we call it PSS. Maybe one day we'll turn it into full fledged product rather than an internal piece of our products.

Despite taking way too long and starting off way too slowly, I won! I think that showing some nifty multithreading code might have tipped the scales. Perhaps not. Either way, I was really happy. Other guys had great entries and I learned some really cool new stuff. I wish there was a similar contest at a bigger level. Then I can be like the little girl who wins the local town beauty pageant and wants to leave and become Miss America.

I had a good time and will be attending future meetings. Hopefully they'll let me give a regular presentation about Grid FX. I think that instead of focusing on the product, I'll focus on one specific technology area, like viewstate, css, ajax, control designers, etc. That will be a lot more fun and beneficial for the group...and for me.

Below is a copy of the results. Also, the group leader, Dave, posted the results on his blog. Thanks Dave!



CODE IDOL RESULTS!

All the code Idols did a great job. In the end, mostly by popular vote, Steve Potter won the "Top Geek" title.
I'm sure we will see more of Steve as he is very interested in presenting at future meetings!
Thanks to the code idol contestants:

Steve Potter - Cache Register
Jonas Strawski - SQL Server as Document Repository
Lou Yovin - Volume Shadow Copy
Tim Corbett - System Tray App
Louis Datz - dashCommerce

Martin Anderson - XML Schemas and powershell
Max Trinidad - Powershell script to create CSV file

Thanks to Shervin Shakibi for the concept and being a judge, MC and judge Dave Noderer and Jeff Barnes of Microsoft who was the "Mystery Judge".

Wednesday, October 10, 2007

Grid FX

I am the lead developer for an ASP.NET grid control called Grid FX. There are plenty of aftermarket grids out there and many of them are really good. And 2007 is a little late in the game to introduce a new player. So then why did Software FX throw its hat in the ring? I think it's because nobody is really dedicated to making the best grid on the market. Most component companies create a grid to round out their bundle, and then do little afterward.

I know this because I actually wrote a grid and shopped it around to component companies. While most were interested in adding a grid to the product line, none cared about creating something new. They all basically wanted to offer a GridView with a nicer UI. But I saw so many opportunities for improvement from UI to design time to even real specific areas like ViewState (oh man do I have a good post about that).

And so did Software FX, which is why I partnered with them. After arriving, we spent many months just designing this thing...more time that some others take for their entire development process. This company has amazing people. Serious serious talent. I'm confident Grid FX will soon be known as the greatest grid ever made.

Anyway, I'll talk more about the details as I go along. I hope this didn't come across as arrogant or belittling, because there are many great offerings out there in addition to what we make here in Florida. I just wanted to explain the level of devotion I have to improving web applications and bringing smiles to the developers who create them.

To new beginnings

For a long time I've wanted to become a contributor to the software developer community. And for even longer, I've procrastinated and avoided committment. Luckily, there are about a million corny catch phrases that can be used to describe fresh starts. And while mentioning one might be considered appropriate....just too cynical for that.

Perhaps I was waiting for some big event. I suppose the release of Grid FX will do. After all, what better way to celebrate a project that took over two years to complete than by starting a blog, right? So here we go....