Telligenti

Serving up fresh ideas every day, Telligent style
Welcome to Telligenti Sign in | Join | Help
in Search

Jayme Davis

I will think of something for here later

March 2008 - Posts

  • Storing your data in Graffiti the easy way

    I've been asked by a few people the easiest way to store your data inside Graffiti. Most people start the question with "How do I add tables to the database ....". You could do that, but it would be complicated and annoying to deploy to other users. Simply use the ObjectManager and all your code will move to any Graffiti installation with ease.

    Here it is, in less than 2 minutes....

    add a reference to Graffiti.Core, make an object... mark it serializable

    [Serializable]
    public class MyObject
    {
       private string _name;
       private string _description;

       public string Name
       {
           get { return _name; }
           set { _name = value; }
       }

       public string Description
       {
           get { return _description; }
           set { _description = value; }
       }
    }

    instantiate and call Save..

    MyObject obj = new MyObject();

    ObjectManager.Save(obj, "MyObjectSettings");

    retrieve it later..

    ObjectManager.Get<MyObject>("MyObjectSettings");

    That's it!

    Jayme

    Posted Mar 25 2008, 03:30 PM by ndepth.net
    Filed under:
  • The user interface IS THE APPLICATION

    Nathaniel Talbott had a great presentation this evening at the Agile RTP meeting. His Lightning Talk (4 - 5 minutes), Jim Cramer style, was about spending more energy on your application's user interface. One line from his slides really hit home for me:

    The user interface IS THE APPLICATION

    I couldn't agree with this more. I have seen so many applications that are unusable and look horrible, but the test coverage is over 90! The architecture is scalable!  When someone wants to buy your product, they check out your "screenshots"... not your "codeshots". Having a good architecture is important, but throwing the user interface to the side is foolish.

    Jayme

    Posted Mar 05 2008, 01:13 AM by ndepth.net
    Filed under:
Powered by Community Server (Commercial Edition), by Telligent Systems