<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>The Efficient Coder</title>
    <link>http://www.efficientcoder.net/</link>
    <description>There has got to be a better way of communicating with our computers!</description>
    <language>en-us</language>
    <copyright>Kevin D. Wolf</copyright>
    <lastBuildDate>Thu, 12 Jun 2008 15:07:58 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.8.5223.2</generator>
    <managingEditor>kevinw@software-logistics.com</managingEditor>
    <webMaster>kevinw@software-logistics.com</webMaster>
    <item>
      <trackback:ping>http://www.efficientcoder.net/Trackback.aspx?guid=abf57d34-998b-41e1-b085-9688c909dbce</trackback:ping>
      <pingback:server>http://www.efficientcoder.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.efficientcoder.net/PermaLink,guid,abf57d34-998b-41e1-b085-9688c909dbce.aspx</pingback:target>
      <dc:creator>kevinw@software-logistics.com (Kevin D. Wolf)</dc:creator>
      <wfw:comment>http://www.efficientcoder.net/CommentView,guid,abf57d34-998b-41e1-b085-9688c909dbce.aspx</wfw:comment>
      <wfw:commentRss>http://www.efficientcoder.net/SyndicationService.asmx/GetEntryCommentsRss?guid=abf57d34-998b-41e1-b085-9688c909dbce</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <title>JSON Script Ignore Tags</title>
      <guid>http://www.efficientcoder.net/PermaLink,guid,abf57d34-998b-41e1-b085-9688c909dbce.aspx</guid>
      <link>http://www.efficientcoder.net/PermaLink,guid,abf57d34-998b-41e1-b085-9688c909dbce.aspx</link>
      <pubDate>Thu, 12 Jun 2008 15:07:58 GMT</pubDate>
      <description>&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;I've
   built some ASMX web services (yes these should be converted to WCF, but they work
   for now).&amp;nbsp; I'm starting to use these as Script Services for some ASP.NET Ajax
   Enabled pages.&amp;nbsp; I ran into a problem where some of the "stuff" I didn't want
   to have happen in some properties on the objects returned by the server were getting
   executed even though they were marked as &lt;/span&gt;&lt;span style="FONT-SIZE: 8pt; FONT-FAMILY: Consolas; mso-no-proof: yes"&gt;&lt;font size=4&gt;&lt;font color=#000000&gt;[&lt;/font&gt;&lt;span style="COLOR: #2b91af"&gt;XmlIgnore&lt;/span&gt;&lt;/font&gt;&lt;font color=#000000&gt;&lt;font size=4&gt;()]&lt;/font&gt; &lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;which
   disables them for SOAP tASMX type web calls.&amp;nbsp; Apparently when the returned objects
   get serialized as JSON for a script service, they ignore the &lt;span style="FONT-SIZE: 8pt; FONT-FAMILY: Consolas; mso-no-proof: yes"&gt;&lt;font size=4&gt;&lt;font color=#000000&gt;[&lt;/font&gt;&lt;span style="COLOR: #2b91af"&gt;XmlIgnore&lt;/span&gt;&lt;/font&gt;&lt;font color=#000000&gt;&lt;font size=4&gt;()]&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; tag,
   which I guess makes sense but is rather&amp;nbsp;&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;inconvenient,
   in that I need to go back and do a manual search &amp;amp; change&lt;/span&gt;.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Within
   the &lt;/span&gt;&lt;span style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: Consolas; mso-no-proof: yes"&gt;&lt;font size=4&gt;using&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 8pt; FONT-FAMILY: Consolas; mso-no-proof: yes"&gt;&lt;font color=#000000&gt;&lt;font size=4&gt; System.Web.Script.Serialization&lt;/font&gt; &lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;namespace
   there is another attribute you can decorate your properties with called &lt;/span&gt;&lt;span style="FONT-SIZE: 8pt; FONT-FAMILY: Consolas; mso-no-proof: yes"&gt;&lt;font size=4&gt;&lt;font color=#000000&gt;[&lt;/font&gt;&lt;span style="COLOR: #2b91af"&gt;ScriptIgnore&lt;/span&gt;&lt;font color=#000000&gt;()]&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt; that
   seems to do the trick.&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;-ec&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.efficientcoder.net/aggbug.ashx?id=abf57d34-998b-41e1-b085-9688c909dbce" /&gt;</description>
      <comments>http://www.efficientcoder.net/CommentView,guid,abf57d34-998b-41e1-b085-9688c909dbce.aspx</comments>
      <category>ASP.NET;WCF;AJAX</category>
    </item>
    <item>
      <trackback:ping>http://www.efficientcoder.net/Trackback.aspx?guid=4602239c-ce7d-4a2f-8426-c52e54b16dd3</trackback:ping>
      <pingback:server>http://www.efficientcoder.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.efficientcoder.net/PermaLink,guid,4602239c-ce7d-4a2f-8426-c52e54b16dd3.aspx</pingback:target>
      <dc:creator>kevinw@software-logistics.com (Kevin D. Wolf)</dc:creator>
      <wfw:comment>http://www.efficientcoder.net/CommentView,guid,4602239c-ce7d-4a2f-8426-c52e54b16dd3.aspx</wfw:comment>
      <wfw:commentRss>http://www.efficientcoder.net/SyndicationService.asmx/GetEntryCommentsRss?guid=4602239c-ce7d-4a2f-8426-c52e54b16dd3</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img style="FLOAT: right" src="http://www.efficientcoder.com/content/binary/WCF_Mobile.gif" border="0" />
        <p>
      I've got a couple mobile projects that need to provide communications services to
      a centralized server.  Over the past year or so, I've been getting to know WCF
      a little better and the more I learn, the more I think this is the one by far that
      in all the latest Microsoft technologies, that you should invest your time
      in learning.  Saying that, it would seem logical to think about using WCF as
      the technology to communicate on our mobile devices.  I'm not sure the answer
      is clear to me yet on this one.
   </p>
        <p>
      First, what do I LOVE about WCF, if I had to sum it up, I would say three things, 
   </p>
        <ol>
          <li>
         The formality of defining and implementing contacts for our communications 
      </li>
          <li>
         The ability to configure and for the most part not worry about the transport details
         when coding your service 
      </li>
          <li>
         The ability to do duplex messaging, I still need to spend some time to see how this
         works under the hood from a scalability implication, but the concept in general seems
         powerful.</li>
        </ol>
        <p>
      Saying that, we can make the following assumptions about the current state of mobile
      devices and applications:
   </p>
        <ol>
          <li>
         In most cases the device is going to be a client on the client/server side of
         the equation 
      </li>
          <li>
         Our computing horsepower just isn't the same 
      </li>
          <li>
         Based upon my experience in both worlds (desktop/web AND mobile devices) I would say
         you can crank out 3-5 lines of desktop/web code in the same time it takes to get one
         line of mobile code into production 
      </li>
          <li>
         Code on mobile devices can't easily be updated so it really has to be right the first
         time 
      </li>
          <li>
         As good as our mobile platforms are these days, there are still a few quirks that
         are beyond our control and device specific</li>
        </ol>
        <p>
      Therefore, most of the benefits of going with WCF really aren't that great in a mobile
      device.  And if a technology really doesn't provide much value, it may make more
      sense to keep it simplest technology with the fewest moving parts.  I think as
      with anything new, one needs to implement and analyze the results.  As I mentioned
      earlier, I don't have answers here yet, but wanted to start capturing thoughts.
   </p>
        <p>
      -ec
   </p>
        <p>
       
   </p>
        <img width="0" height="0" src="http://www.efficientcoder.net/aggbug.ashx?id=4602239c-ce7d-4a2f-8426-c52e54b16dd3" />
      </body>
      <title>WCF on a Windows Mobile Device</title>
      <guid>http://www.efficientcoder.net/PermaLink,guid,4602239c-ce7d-4a2f-8426-c52e54b16dd3.aspx</guid>
      <link>http://www.efficientcoder.net/PermaLink,guid,4602239c-ce7d-4a2f-8426-c52e54b16dd3.aspx</link>
      <pubDate>Wed, 11 Jun 2008 12:08:05 GMT</pubDate>
      <description>&lt;img style="FLOAT: right" src="http://www.efficientcoder.com/content/binary/WCF_Mobile.gif" border=0&gt; 
&lt;p&gt;
   I've got a couple mobile projects that need to provide communications services to
   a centralized server.&amp;nbsp; Over the past year or so, I've been getting to know WCF
   a little better and the more I learn, the more I think this is the one by far that
   in all the&amp;nbsp;latest Microsoft technologies,&amp;nbsp;that you should invest your&amp;nbsp;time
   in learning.&amp;nbsp; Saying that, it would seem logical to think about using WCF as
   the technology to communicate on our mobile devices.&amp;nbsp; I'm not sure the answer
   is clear to me yet on this one.
&lt;/p&gt;
&lt;p&gt;
   First, what do I LOVE about WCF, if I had to sum it up, I would say three things, 
&lt;/p&gt;
&lt;ol&gt;
   &lt;li&gt;
      The formality of defining and implementing contacts for our communications 
   &lt;li&gt;
      The ability to configure and for the most part not worry about the transport details
      when coding your service 
   &lt;li&gt;
      The ability to do duplex messaging, I still need to spend some time to see how this
      works under the hood from a scalability implication, but the concept in general seems
      powerful.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
   Saying that, we can make the following assumptions about the current state of mobile
   devices and applications:
&lt;/p&gt;
&lt;ol&gt;
   &lt;li&gt;
      In&amp;nbsp;most cases the device is going to be a client on the client/server side of
      the equation 
   &lt;li&gt;
      Our computing horsepower just isn't the same 
   &lt;li&gt;
      Based upon my experience in both worlds (desktop/web AND mobile devices) I would say
      you can crank out 3-5 lines of desktop/web code in the same time it takes to get one
      line of mobile code into production 
   &lt;li&gt;
      Code on mobile devices can't easily be updated so it really has to be right the first
      time 
   &lt;li&gt;
      As good as our mobile platforms are these days, there are still a few quirks that
      are beyond our control and device specific&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
   Therefore, most of the benefits of going with WCF really aren't that great in a mobile
   device.&amp;nbsp; And if a technology really doesn't provide much value, it may make more
   sense to keep it simplest technology with the fewest moving parts.&amp;nbsp; I think as
   with anything new, one needs to implement and analyze the results.&amp;nbsp; As I mentioned
   earlier, I don't have answers here yet, but wanted to start capturing thoughts.
&lt;/p&gt;
&lt;p&gt;
   -ec
&lt;/p&gt;
&lt;p&gt;
   &amp;nbsp;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.efficientcoder.net/aggbug.ashx?id=4602239c-ce7d-4a2f-8426-c52e54b16dd3" /&gt;</description>
      <comments>http://www.efficientcoder.net/CommentView,guid,4602239c-ce7d-4a2f-8426-c52e54b16dd3.aspx</comments>
      <category>.NET 3.5;Mobile;WCF</category>
    </item>
  </channel>
</rss>