64 Bytes

just a few characters short of a code base.

Making a “zoom to image” double click with Seadragon AJAX. (Part 1-The Problem)

clock December 21, 2008 04:05 by author josh

   Recently Microsoft released its deep zoom technology implemented in JavaScript using Ajax.  Using the Deep Zoom Composer I made a quick composition with it to test it out.  Part of this was random curiosity and part was because I was actually looking for something like this to build a High Res photo album.

   While things are very intuitive as you could click to zoom in, use your scroll wheel to zoom in or out, pan with a mouse drag etc.. A feature that seemed very obvious (especially for photo albums) was some kind of “Zoom to fit” feature.   My thought was, if I double click on  specific picture in my gallery then I want to zoom that image to fit the screen..  Double click again should zoom me back out.

While this idea seems simple there are actually a few challenges that must be dealt with Like:

  • Event wiring isn’t obvious at first (thank you Aseem Kishore at MS for pointing me in the right direction)
  • Seadragon doesn’t know there are multiple images. All it does is manage zooming and scrolling on a large canvas. 
  • There are event collisions due to single clicks firing with double clicks.
Before we dive into all of the issues let’s take a look at what we want things to look like when we are done.. The below example will allow you to do all the normal Sea dragon things (single click zoom, scroll zoom, pan, full screen, etc) and  it will let you zoom to fit any photo by double clicking on it.. And you can Zoom back out by double clicking again.


Now that we know the problem and we see how the solution works let’s talk about how we got here. Basically there are 4 steps..
  1. Compose a deep zoom composition and export it to Seadragon Ajax & update the export to use the current Seadragon API.
  2. Override Seadragon’s Mouse events in JavaScript
  3. Map all of the images using Seadragon’s coordinate system
  4. Build a way to detect and manage double clicks.
So in the next post  I’ll take you thru getting all setup and having a sample composition ready and running locally in your own web browser.



www.delphiquery.com - Because everyone should write at least one "toy" app :-)

clock November 24, 2008 05:10 by author josh

I'm pleased to announce this "toy" app a friend and I wrote.. www.delphiquery.com. The app is pretty strait forward. A person asks a question and its voted on for a few minutes. The results are then emailed back to them once the poll closes (currently 5 ~ 10 minutes).  

The REAL reason we wrote this little app was to play with MVC and LINQ to SQL. I have to say the experience was very pleasent.. the Jquery ajax calls worked easy to build, and it was so VERY nice to actually know my client IDs inside my HTML . Also With a little bit of routing voodoo we got it to do some interesting things routing wise for having all of our controller actions ALSO available via JSON or XML as API calls.

I'll post more about the whole Actions as API techniques later. But for now.. Here it is, as silly as they come.. 



Open Vote Framework... Brain candy that might be worth building.

clock November 3, 2008 02:34 by author josh

So in this election year I have spent a lot of time thinking about voting and technology.. I see a lot of purpose built and closed systems outthere, and there are a few open systems.. But in my limited research I haven'tseen talk of but no action on a truly open source voting framework.. What I amtalking about is a series of services that would create a secure votingsystem.. Here are the design goals I am considering for this project.

  • Distributed & Self healing data model :  The actual votes should be stored in multiple locations with enough parity between each location that N number of locations can be compromised and the results from the vote still be trusted and valid.
  • Self recounts: This is something I did in a Voting system for an NPO many moons ago.. No user vote was ever associated with a specific user BUT all user votes were given an ID.. The User (Voter) was given the ID and could look up their vote any time.. In these cases when the voting base doesn't trust the results, they can still validate that their vote WAS recorded correctly.. This would allow grass root organizations to do "pseudo" recounts on their own using information they gather from voters about the accuracy of their vote and some statistical analysis.. if things seem TOO far out of whack then actual recounts can be executed.
  • Scoped Voting: This is something that has bugged me for a LONG time.. If I am a voter who lives in a state but I go to the wrong polling place my entire VOTE is provisional or void.. I would suggest that disenfranchising these voters we scope the vote.  After all National concerns like President and Senatorial elections are still valid for you. The rest of the ballet could be marked provisional.. The same could be true if you move from one part of a county to another.. Perhaps you can't vote in the congressional seat but you can on county bonds or state initiatives. By scoping the vote we allow voters a chance for their voice to be heard accurately and give them the dynamics they need.
  • Vote Anywhere: The goal here is to allow voters the opportunity to vote their specific ballot (based on their registration) regardless of their physical location or the polling station they actually vote at.. This could also extend to the web. This, specifically, isn't pie in the sky tech; Travis County Texas already did this using Hart Intercivics voting system at all of their early voting centers.
  • Hardware (and UI agnostic) : By this I mean that the application should be service based.. Private hardware providers should be allowed to build hardware or software that integrates with the voting service.  This is especially important when dealing with special needs voters. And of course this could allow for online or web based voting.
  • Deep but anonymous Logs and Auditing trails: By this we mean that actions should (for privacy) be anonymised from the specific user that executed them BUT there should be deep logging so that should a node in the service become invalid (see Distributed and Self Healing) that it can be analyzed to determine the true cause of the issue.
  • Voter Identity validation without ID: Using a series of questions & answers based on the user the identity of that use should be able to be validate to a level of certainty that is equal to or greater than that of forced State ID regulations.. This system could be used as a backup in locations where a person is missing their ID or for Online voting.

At thispoint its all just brain candy that I'm playing with. But I guess I have 4years to figure it out and get some of these ideas into code or architecture.  If your interested in these ideas or want to help let me know if there is enough backing I may start a formal project, otherwise I'll just tinker with it in my proverbial garage.

 

 



ASP.NET MVC leaves the land of "Technical Preview".. Grows up and becomes a Beta.

clock October 16, 2008 09:57 by author josh

I haven't had a chance to play with it yet. But its out and word on the street is it will be v1 before the end of the year.   Go download, play, migrate & enjoy :-)

Download it here: http://www.microsoft.com/downloads/details.aspx?familyid=a24d1e00-cd35-4f66-baa0-2362bdde0766&displaylang=en&tm



Need more Flags

clock September 5, 2008 04:33 by author josh

Right, so first off I am no great fan of having 10,000,000 flags.. But sometimes you run into a situation where you need to pass around a datastructure with ump-teen million flags so you end up turning it into an enum of type flag and doing bitwise OR and AND to  to operate on your flags something like

enum Flags
{
    FLAG1 = 1,
    FLAG2 = 2,
    FLAG3 = 4
}

And somewhere in your code you would have

Flags myCurrentVal = Flags.FLAG2;
bool Method HasFlag(Flags enum)
{
   return ((enum & myCurrentVal) != 0)
}

Ok sure, that works and it doesn't suck to bad.. but it has limitations.. First off, you can only have 32 or 64 flags (depending on int or long) in your enum.. Not a big deal unless you are doing something like field level security on a very complex form that includes workflow. And frankly while simple to use these things always make some on the team roll there eyes and "Dear god, no more bitwise logic"..

So in an effort to help my flag loving client have flags and my bitwise hating teammates not have to deal with & and | more than they have to I threw togeather an flag class that will support up to Int32.MaxValue flags (not wise, but it would handle it).

So here is the flags base class, its a generic base class that takes an enum in its inherited implementation

public abstract class  FlagsBase where T : struct
    {
        private bool[] _SetFlags;
        private int _flagLength;
        public int FlagLength
        {
            get { return _flagLength; }
        }
        public FlagsBase()
        {
            Type enumType = typeof(T);
            if (enumType.IsEnum)
            {
                int length = getFlagsLength(enumType);
                _SetFlags = new bool[length];
                for (int i = 0; i < _SetFlags.Length; i++)
                {
                    _SetFlags[i] = false;
                }
                _flagLength = length;
            }
            else
            {
                throw new ArgumentException("The Generic type of " + typeof(T).ToString() + " is not an enum. This base class only supports enums.");
            }
        }

        protected int GetFlagInt(T flag)
        {
            return (int)Enum.Parse(typeof(T), flag.ToString());
        }

        public bool GetFlagValue(T flag)
        {
            int flagval = GetFlagInt(flag);
            if (flagval <= _SetFlags.Length)
            {
                return _SetFlags[flagval];
            }
            return false;
        }

        public void SetFlagValue(T flag, bool newValue)
        {
            int flagval = GetFlagInt(flag);
            if (flagval <= _SetFlags.Length)
            {
                _SetFlags[flagval] = state;
            }
        }

        public T Flag(int position)
        {
            return (T)Enum.ToObject(typeof(T), position);

        }

        private int getFlagsLength(Type enumType)
        {
            return Enum.GetValues(enumType).Length;
        }
    }

So what we have here is a generic class that takes an enum as its type. So you make an enum and the length of that enum is used to create a private bool[].. Now each value in the enum becomes a point in the array and has a bool to back it. Easy sleasy as I like to say.

If I want to add new values to my flags set, I just add them to the enum and everything just keeps on working. Here is an example implementation and "use"

enum WebUI_FIELDS
{
   field1,
   field2,
   field3,
   field4,
   field5,
   field6,
   field7,
   field8,
   field9,
   field10,
   field11,
   field12,
   field13,
   field14,
   field15,
   field16,
   field17,
   field18,
   field19,
   field20,
   field21,
   field22,
   field23,
   field24,
   field25,
   field26,
   field27,
   field28,
   field29,
   field30,
   field31,
   field32,
   field33,
   field34
}
public class WebUIFieldSecurity : FlagsBase
    {
        public WebUIFieldSecurity ():base()
        {
        }
    }

And using it may look something like this

void SetupSecurity(IPrincipal user)
{
   WebUIFieldSecurity mysec = new WebUIFieldSecurity();
   if(user.IsInRole("UseField1"))
   {
       mysec.SetFlagValue(WebUI_FIELDS.field1,true);
   }
   SetupPageSecurity(mysec);
}
void SetupPageSecurity(WebUIFieldSecurity sec)
{
     field1.ReadOnly = sec.GetFlagValue(WebUI_FIELDS.field1);
     field2.ReadOnly = sec.GetFlagValue(WebUI_FIELDS.field2);
     field3.ReadOnly = sec.GetFlagValue(WebUI_FIELDS.field3);
     field4.ReadOnly = sec.GetFlagValue(WebUI_FIELDS.field4);
}

See how nice and easy that is.. And readable.. Personally I like readable.. and If I need to add more flags, I just grow my enum.. no worring about bit masks, using Hex numbering to set my flags to the right values or being limited to less than 100 flags.. Granted if you need more than 64 flags then things may be a little crazy already. But one never knows, and at least with this you won't care :-).



Context Singletons

clock September 1, 2008 05:27 by author josh
So more often then not I want to share something in a "singleton" fashion across a call stack. But a true singleton wouldn't work because the objects I want to share are usually not thread safe or its not a best practice to persist them across threads. NHibernate has a Session manager pattern that is very similar to what I want and so I extended on that principal making what I call a "Context" Singleton.  Its simply just a little base class that will store itself in right context and as such will also "die out" once that context has ended.

Here is the helper class


public abstract class ContextSingletonBase: IDisposable
    {
        private static string CONTEXT_PREFIX = "ContextSingleton:";

        protected static object _getObject(string key)
        {
            if (isWCF)
            {
                return WcfInstanceContext.Current.Items[ContextSingletonBase.CONTEXT_PREFIX + key];
            }
            else if (isHttp)
            {
                return System.Web.HttpContext.Current.Items[ContextSingletonBase.CONTEXT_PREFIX + key];
            }
            else
            {
                return CallContext.GetData(ContextSingletonBase.CONTEXT_PREFIX + key);
            }
        }
        protected static void _setObject(string key, object obj)
        {
            if (_getObject(key) != null)
            {
                if (isWCF)
                {
                    WcfInstanceContext.Current.Items.Remove(ContextSingletonBase.CONTEXT_PREFIX + key);
                }
                else if (isHttp)
                {
                    System.Web.HttpContext.Current.Items.Remove(ContextSingletonBase.CONTEXT_PREFIX + key);
                }
                else
                {
                    CallContext.SetData(ContextSingletonBase.CONTEXT_PREFIX + key, null);
                }
            }

            if (isWCF)
            {
                WcfInstanceContext.Current.Items.Add(ContextSingletonBase.CONTEXT_PREFIX + key, obj);
            }
            else if (isHttp)
            {
                System.Web.HttpContext.Current.Items.Add(ContextSingletonBase.CONTEXT_PREFIX + key, obj);
            }
            else
            {
                CallContext.SetData(ContextSingletonBase.CONTEXT_PREFIX + key, obj);
            }
        }
        private static bool isWCF
        {
            get
            {
                return (WcfInstanceContext.Current != null);
            }
        }
        private static bool isHttp
        {
            get
            {
                if (isWCF)
                {
                    return false;
                }
                if (System.Web.HttpContext.Current != null)
                {
                    return true;
                }
                return false;
            }
        }
        internal class WcfInstanceContext : IExtension
        {
            private readonly IDictionary items;

            private WcfInstanceContext()
            {
                items = new Hashtable();
            }

            public IDictionary Items
            {
                get { return items; }
            }

           public static WcfInstanceContext Current
            {
                get
                {
                    if (OperationContext.Current != null)
                    {
                        WcfInstanceContext context =
                            OperationContext.Current.InstanceContext.Extensions.Find();
                        if (context == null)
                        {
                            context = new WcfInstanceContext();
                            OperationContext.Current.InstanceContext.Extensions.Add(context);
                        }
                        return context;
                    }
                    return null;
                }
            }

           public void Attach(InstanceContext owner) { }

           public void Detach(InstanceContext owner) { }
        }

        #region IDisposable Members

        public void Dispose()
        {
            _dispose();
        }

        protected abstract void _dispose();

        #endregion
    }


 So you will notice I test for several contexts.. This is because going down to CallContext is not always safe.. First off for Http Applications the executing thread can actually change.. If it changed and you weren't using HttpContext you would end up loosing your ContextSingleton. (Granted HttpContext is infact using CallContext at its core, using HttpContext will handled that potential thread switch out for you).  I also check for a WCF context.. This is because (and I'm not 100% sure about this) WCF services are handled diffrently depending on the connection point. Using the WCF Context instead of CallContext removes any "wierdness" that may occure.

So this was just a base class and on its own missing the "Singleton" part of the whole design.. Its mostly intrested in the storage of said singleton and not the actual access or storeage of it. So what does an Implemented Context Singleton look like?

Well here is an overly simple one that stores a Linq2Sql Data Context... you can see the pattern is pretty much pure "singleton" but instead of the Instance being a static field its a property and it calls back to the above static classes that then look in the approproate context for the actual instance of the helper.. In this way your interact with the class as if it were a traditional singleton but it only persists inside its appropriate context (Http, WCF or Call)..



  public class Helper:ContextSingletonBase
    {
        private static string KEY = "SingletonKey";
        public static Helper Instance
        {
            get
            {
                Helper h = GetHelper();
                if (h == null)
                {
                    h = MakeHelper();
                }
                return h;
            }
        }

        private static Helper MakeHelper()
        {
            Helper h = new Helper();
            Helper._setObject(Helper.KEY, h);
            return h;
        }

        private static Helper GetHelper()
        {
            object helper = Helper._getObject(Helper.KEY);
            if (helper != null)
            {
                return (Helper)helper;
            }
            return null;
        }

        private DataContext _dc;
        public DataContext DC
        {
            get
            {
                if (_dc == null)
                {
                    _dc = new DataContext();
                }
                return _dc;
            }
       }

        protected override void _dispose()
        {
            _dc.Dispose();
        }

}


One thing I would love to do is actually replace the Contexts code I have with some kind of provider model.. Use a bit of code (or settings) to detect the approriate context and return that.. That way the ContextSingletonBase wouldn't have to be depended on .NET 3.0 (like it is now) and its code wouldn't grow in complexity as other contexts become known (I only did this for Call, Http and WCF because those are the only contexts I've run into and Call is kind of the catch all.. But who knows, Silverlight might have its own... .NET compact framework might have one, etc... you can see how seporateing the context storage from the ContextSingleton helper could become a good thing..



IPhone vs. Instinct Round 2 (the knock out).

clock July 20, 2008 12:18 by author josh

In my previous post I spoke about the wonders of Sprints new Instinct. And don't get me wrong it is a great phone.. But the luster quickly wore off.. Why? Well like all non "Apple" product it didn't "just work".  Now I'm not going to bash Sprint or Samsung. They tried really hard, they gave it a valiant effort.  But in the end things just stopped working and Sprint was unable (in my case) to fix them.. The issues I had were as follows.

  • Exchange integration never worked
  • Contact Sync stopped working when my number was ported and they couldn't fix it (at least not by the time I cancelled the service.
  • Browser got worse the more I tried to like it.. (I really wanted to like it, but it just couldn't hold up to the iphone).
  • Tethering was techically possible but a Billing problem made it not work.. Tethering was almost worth keeping the phone, but Sprint CS said it was not likely to get fixed in the near future (something to do with the new Packaging).
  • Sound quality wasn't that great. It wasn't that bad; but its no good and the speakerphone was all but useless.
  • Customer service is lacking.. Sprint trys to be nice, but there customer service team is all but useless. They are very nice about being useless, but still useless non the less.
In the end I waited inline for a 3g iphone.. And let me tell you.. 3g + everything else an iPhone does + everything "just works" and, ya its just a winning combination.


Instinct Vs. IPhone

clock June 22, 2008 14:15 by author josh

So given that the 3G iPhone is just around the corner and Sprint has a 30 day cancellation policy on their accounts; I decided it would be fun to play "phone evaluator" for a few weeks while I waited for the 3g iPhone. So went down to the sprint store and got myself a Samsung Instinct. Now I have had an iPhone since June 30th 2007 and it is a great device.. Below is a breakdown of how the two devices compare. Now for the most part these two devices are very similar in functionality and design.. So I'll just breakdown who has what vs. the other; And how similar features compare. Also, assume 3g Iphone here or atleast iphone 2.0.

 iPhone:

  • Actual Exchange integration with ActiveSync for Email, Calander and Contacts.
  • View PDF and Word Docs
  • iTunes Music Store
  • iTunes App Store
  • MultiTouch Interface
  • 3G network

Instinct

  • MMS
  • Exchange support (email only)
  • Turn by Turn navigation
  • Live TV
  • Internat Radio
  • Sprint Music store
  • Location based Services with Voice Command
  • Location based movie search
  • Voice Command
  • Voice Dialing
  • EVDO network
  • Extra apps like News & Sports
  • Hyptic feedback (the phone kinda feels like you are pressing a button when you press something because it buzzes on press and when you let go)
  • Tethering (ok its not on the phone yet.. but technicly it supports it and Sprint is working on fixing the "Simply Everything" plan so they can fit in Tethering as an addon.)
  • Messaging is included in your plan.. SMS isn't an add on Yah!
  • MicroSD slot with support for HDSD (or atleast up to 8 gig)
  • Cheaper: $129 with 2 gig card.
  • Removable Batteries and the phone comes with 2 batteries AND an external charger (so charge in phone, and keep the spare charged too!)

Overlapping features and Whos is better.

  • Webbrowser: Now Sprint and Samsung gave it the old college try, but without multi-touch they just don't have the same elegent easy to use experience that iphone users (like myself) enjoy all the time.. But its not bad.. I would say a solid 2nd place for those I've used.. Oh ya, and the Samsung browser doesn't seem to support aJax.. Some javascript, yes.. but not Ajax for some reason.. 
  • Mail: Again the iPhone can leverage its webbrowser so its got html mail and it looks and works flawlessly
  • Virtual Keyboard: Again the iPhone wins.. Samsung trys but with the smaller screen they can't fit a qwerty keyboard in portrait mode. Instead you can have one in landscape or you can use an alphabetical keyboard OR a stylest input in portrait mode.
  • Touchscreen: Again (I'm sounding like a broken record) iPhones multi-touch screen is just more responsive.. I find my self pressing things 2 or three times on occation..
  • Volocity style Scrolling (zoom your finger and the list zooms): Guess what.. iPhone wins again.. The biggest problem with the  Instinct is that it keeps miss selecting stuff after I try to scroll... the iPhone is just smarter about this
  • Full size headphone jack with mic/answer button support: I was so happy to see this, but a SUPER simple feature was left out of the Instinct that makes the iPhone better. You can't use the mic button on the  headphones to skip songs or pause media play! Ya ya, its SOO simple but man that is one of my favorite iPhone features.. I have a set of headphones for my iPhone with just 1 earbud (cut the other one off) so I can cycle with it.. And having that button to change tracks is great.. Especially when I need a little more out of my music because I'm on a tough hill!
  • Development enviroments: I'm not going to choose a winner here. The iPhone has Apple impossed limitations and the $99/year app distro costs; and you can only code on a Mac.. Instinct is a Java based platform and it doesn't look to limit too much (haven't dug that deep), but you'll be lucky if you have 1/10 the audiance of an apple app.. 

So in the end who wins.. Well the funny thing is as much as the iPhone beats the Instinct on every overlapping feature. None of them (for me) are deal breakers.. Its all the extras (like the tightly integrated location services or voice dialing & voice commands) that make a winner out of the Instinct.. Ya you heard it here first, I like the Instinct MORE than I like my iPhone.. Now I have about 20 days to continue testing and decided if in fact my initial opinions hold thru till the release of the 3g iPhone.... But at the moment, I think Sprint has a winner (all be it probably under appriciated) in the Instinct.

 



The 3 W's and H of software development.

clock June 5, 2008 14:17 by author josh
So a non software developer friend of mine posed the open-ended question "How" to me in an email.. below is my response..  On reflection, it is a wonderfully simple description of a healthy SDLC... Overly simple, but perhaps something you can describe to a client and make the whole process more consumable and understandable :-)
Lets start with a life cycle that leads to the completion of the action that "how" proposes.. After all, how is just a question that defines an action (be it completed or proposed)..

1) Who: One must define the actors, after all "How" is either enacted on or by something/someone.

2) Why: Why is like a compass, it points the way and helps shape the goals of what How will achieve.

3) What: What is the MOST important question.. It is the goal that How will make real.. If you don't know what, then how is just the definision of random action..

4) How: wondered when we would get here hu :-P... As a developer I like to think of How as the answer to What..

5) Do Stuff: now that you have how you start making it happen.
(Rinse and repeat whole process until final goal is achived).

Really each question is the answer to the previous question such that you eventually have a defined action to take.
 (The title is in deference to my 4th grade teacher who always tought me that good journalisum was the 4 W's and H (Who, What, Where, Why & How).. )


I still ♥ Ruby on Rails...

clock May 20, 2008 07:23 by author josh

Over the summer I finally dug into this whole "MVC" thing for web development. Naturally I began with the Mecca of them all Ruby on Rails.  This was a twofold learning experience for me..  First off it was Ruby a meta-language that bends like read in the wind.  And second was Rails, the darling framework that seems to have been sent by the demi-gods of software to help all suffering web developers.

But all of this joy was not without its flaws. Ruby is (as I mentioned before) all but un-deployable on a windows platform. After all Ruby is a single threaded/multi-process language (great for Unix where you don't actually have threads). But this limitation makes it an un-workable option on a windows box. Since then I have dug into Monorail, and now am neck deep in ASP.NET MVC. Heck I'm even a committer on the MVCContrib project. And while these projects are great they are still missing some magic. 

In short I still have stars in my eyes when I think of RoR.. This brings up the question, Why? (ya simple question).  I've been thinking about this a bit and I think (for me) the issue boils down to just a few issues.

First off is the RoR mantra "Convention over Configuration".  This mantra is actually quite deep; and while it can be a touch annoying at times (class naming can get silly) it's actually insanely smart. I have probably downloaded 15 different rails projects and had a working knowledge of the app and how to tweak each one in less than an hour. This is because the sites structure is described 1 way and 1 way only. More over I have been able to hand over projects in no time flat. In short, getting up to speed on a rails project is a no brainer.  ASP.NET MVC missed the mark on this in a big way in my book. MS, wisely from an OO perspective, laid everything out in a strong override-able and design. If you don't like routing, just implement a new router, don't like the view engine, just replace it. MVCContrib continued this with implantations of DI containers like Winsor, Structure Map, etc.. To muddy the situation further, MVCContrib implements multiple View Engines allowing developers to choose between ASPX, NHTML, NVolocity etc.. With all of that we diverge from Convention, and in doing so remove elegance for the privilege of flexibility (* Flexibility I am sure I will be thankful for when I migrate some of my Monorail apps to ASP.NET MVC over the summer).  Monorail is also bad about this (although not as much) with multiple view engines and a solid OO framework; but monorail has a community that has become kind of set in their ways. And so, while not set in stone, some conventions have settled in.  But going back to the rails mantra "Convention over Configuration"; nether ASP.NET MVC or Monorail prescribe to this philosophy more over they are the opposite "Here's a convention, but here are 108 tools to ignore it with " (I jest). 

    The second great feature of rails is the data model versioning and deployment methodology. You want a new data model, you add a new class to your data model describing the changes. Deploy the new version to your dev db, then code. Once your are done you run your deployment in test, evaluate your unit tests and push to prod; all very elegantly and with little effort. Linq for SQL has a great model but you design the app to the data (pulling your object structure from your tables) not the other way around.. So the same model change in Linq starts at the DB (with change scripts so you can manually run them in test and prod later) then re build your mode, code, test, run scripts in test, run unit tests, and deploy using your ant script that took 2 days to write. That's a lot of work and unfortunately Castle active record isn't much better.

    No don't get me wrong I really enjoy using Monorail and ASP.NET MVC has real promise. But when you take these three MVC frameworks and you look at developer efficiency and experience RoR is closest to my heart!




Calendar

<<  February 2010  >>
MoTuWeThFrSaSu
25262728293031
1234567
891011121314
15161718192021
22232425262728
1234567

View posts in large calendar

Add to Technorati Favorites

Sign in