DCSIMG
January 2009 - Posts - IHateSpaghetti {code}

IHateSpaghetti {code}

VSX, DSL and Beyond by Eyal Lantzman

Syndication

Coding / Architecture

Extensibility /DSL

Projects

Articles

January 2009 - Posts

The guys in NetFxFactory wrote a great walkthrough on how you can create multiple views to a single DSL model.

Very useful (and cool)!

 

Posted by Eyal | 1 comment(s)
תגים:, , ,

To all the customs trying our CTP - the timebomp is activated and you probably getting the following message: "The evaluation period for Visual Studio Trial Edition has ended".

There is a work around for the VPC version in Jeff's blog and you can find similar solution for HyperV in Cameron's blog.

Posted by Eyal | with no comments

WPF introduced it's own System.Windows.Threading namespace and if you browse arround you will find: System.Windows.Threading.Dispatcher.CurrentDispatcher.

However don't be tempted to use for testing you UI because all the following examples below will fail and you will never know about it because the tests will be green !

   1: private delegate void STADelegate();
   2:  
   3:   [Owner("Eyal Lantzman")]
   4:   [TestMethod]
   5:   public void TestWPF1()
   6:   {
   7:             STADelegate d = new STADelegate( () =>
   8:             {
   9:     Assert.Fail();
  10:    });
  11:  
  12:    System.Windows.Threading.Dispatcher.CurrentDispatcher.BeginInvoke(d, 
  13:     System.Windows.Threading.DispatcherPriority.Normal);
  14:   }
  15:   [Owner("Eyal Lantzman")]
  16:   [TestMethod]
  17:   public void TestWPF2()
  18:   {
  19:    STADelegate d = new STADelegate(() =>
  20:    {
  21:     Assert.Fail();
  22:    });
  23:  
  24:    System.Windows.Threading.Dispatcher.CurrentDispatcher.BeginInvoke(d,
  25:     System.Windows.Threading.DispatcherPriority.Send);
  26:   }
  27:  
  28:   [Owner("Eyal Lantzman")]
  29:   [TestMethod]
  30:   public void TestWPF1_()
  31:   {
  32:    STADelegate d = new STADelegate(() =>
  33:    {
  34:     System.Threading.Thread.Sleep(10000);
  35:     Assert.Fail();
  36:    });
  37:  
  38:    System.Windows.Threading.Dispatcher.CurrentDispatcher.BeginInvoke(d,
  39:     System.Windows.Threading.DispatcherPriority.Normal);
  40:   }
  41:  
  42:   [Owner("Eyal Lantzman")]
  43:   [TestMethod]
  44:   public void TestWPF2_()
  45:   {
  46:    STADelegate d = new STADelegate(() =>
  47:    {
  48:     System.Threading.Thread.Sleep(10000);
  49:     Assert.Fail();
  50:    });
  51:  
  52:    System.Windows.Threading.Dispatcher.CurrentDispatcher.BeginInvoke(d,
  53:     System.Windows.Threading.DispatcherPriority.Send);
  54:   }
  55:  
  56:   [Owner("Eyal Lantzman")]
  57:   [TestMethod]
  58:   public void TestWPF1__()
  59:   {
  60:    STADelegate d = new STADelegate(() =>
  61:    {
  62:     System.Threading.Thread.Sleep(10000);
  63:     Assert.Fail();
  64:    });
  65:  
  66:    System.Windows.Threading.Dispatcher.CurrentDispatcher.BeginInvoke(d,
  67:     System.Windows.Threading.DispatcherPriority.Normal).Wait();
  68:   }
  69:  
  70:   [Owner("Eyal Lantzman")]
  71:   [TestMethod]
  72:   public void TestWPF2__()
  73:   {
  74:    STADelegate d = new STADelegate(() =>
  75:    {
  76:     System.Threading.Thread.Sleep(10000);
  77:     Assert.Fail();
  78:    });
  79:  
  80:    System.Windows.Threading.Dispatcher.CurrentDispatcher.BeginInvoke(d,
  81:     System.Windows.Threading.DispatcherPriority.Send).Wait();
  82:   }
  83:  

Instead what you can do is create an instance of a Control and use it's Invoke method to invoke you test code on the UI thread.

For more info just leave a comment :)

Posted by Eyal | 1 comment(s)

Just had to post this although it's not really a tech :)

Have fun - http://news.bbc.co.uk/1/hi/world/americas/7809160.stm

Posted by Eyal | with no comments
תגים:

If your playing with Azure you will probably wondering "how can I see whats currently in the storage?" When at this point Azure storage viewer comes to the rescue...

Check out this post for more info.

Posted by Eyal | 1 comment(s)

Pablo Galiano released a cool tool for dev's - called StickyNotes.

This is a tool for VS2008 that allows to attach sticky notes to your code - no more //TODO: that never done :-)

Check out the screenshots and for less then $10 this cool thing can be yours !

Here a short description that I've copied in:

There are two types of comments:

  • Permanent comments
    • Used for reference and code maintenance
    • Usually describe an algorithm or why we just did something in a particular manner
  • Temporary comments
    • Used for personal purposes like reminders. Ex: //I need to verify this…
    • Used to reflect something we need to do or complete. Ex: //TODO:
    • Used for code review. Ex: // Please validate against null
    • Written in the middle of the development and deleted before shipping the product

Permanent comments are part of the source code, committed to the source control system and visible by the entire team.

Temporary comments should not be part of the source code, should not always be committed to the source control system and sometimes should not be visible by the entire team.

StickyNotes© focuses on temporary comments (called notes) and enhances the IDE to support:

  • A way to add notes to any document (not only code) that are stored separately from the source. Ex: vb files, cs files, xml files, html files, etc
  • A way to add personal notes that are only visible to the owner.
  • A way to add team notes that are committed to the source control system and visible to the entire team
  • A way to add notes and associate them with a particular/s line number/s
  • A way to view all notes inside a solution
  • A way to find notes inside a solution
Posted by Eyal | with no comments

Been a bit tide up the last couple of weeks but never the less I would like to start the new year with a new post - Blog Carnival #12

DSL Tools & Team Architect & T4

UML & DSL

.NET 4.0

F#

Agile

Architecture

 

ASP.NET / ASP.NET MVC / ASP.NET Dynamics/ jQuerry