<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Coding differences between API 1.6 and 3.6 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156054#M14542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in browser, if we use dojo, wo can go faster,AMD:just like&amp;nbsp; we can do more things..thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Dec 2014 07:40:19 GMT</pubDate>
    <dc:creator>zhongrenGu</dc:creator>
    <dc:date>2014-12-28T07:40:19Z</dc:date>
    <item>
      <title>Coding differences between API 1.6 and 3.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156049#M14537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In API 1.6 the javascript source code started with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;script type="text/javascript"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.map");

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myMap, myTiledMapServiceLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function init() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now in version 3.6 I see that the same code stars in a different way, with a require that covers the whole script. Why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find the 1.6 way easier to read.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;script src="http://js.arcgis.com/3.6/"&amp;gt;&amp;lt;/script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var map;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; require([
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/map", "esri/layers/FeatureLayer", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/tasks/query", "esri/tasks/QueryTask", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/tasks/GeometryService", "esri/tasks/BufferParameters",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/graphic", "esri/InfoTemplate", "esri/symbols/SimpleMarkerSymbol",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/config", "dojo/_base/Color", "dojo/dom", "dojo/domReady"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ], function(&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 11:39:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156049#M14537</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2013-09-25T11:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Coding differences between API 1.6 and 3.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156050#M14538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ESRI is moving the core dojo towards AMD following dojo's move towards it earlier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jshelp/inside_dojo_amd.html"&gt;https://developers.arcgis.com/en/javascript/jshelp/inside_dojo_amd.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Legacy syntax is still supported with dojo but its best to get onboard with AMD as it will be the future.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 12:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156050#M14538</guid>
      <dc:creator>AndyBurns</dc:creator>
      <dc:date>2013-09-25T12:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Coding differences between API 1.6 and 3.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156051#M14539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should also take a look at &lt;/SPAN&gt;&lt;A href="http://dojotoolkit.org/documentation/tutorials/1.8/modern_dojo/"&gt;this tutorial&lt;/A&gt;&lt;SPAN&gt; to get a better understanding of the new coding concepts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;While some of the changes are fundamental and at first glance might be&amp;nbsp; confusing, they are all there for good reasons to make your code be more&amp;nbsp; efficient, run faster, better leverage JavaScript and make your code&amp;nbsp; more maintainable.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 13:11:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156051#M14539</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-09-25T13:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Coding differences between API 1.6 and 3.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156052#M14540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jsn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This link should help explain the whys and hows of using AMD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dojotoolkit.org/blog/learn-more-about-amd"&gt;http://dojotoolkit.org/blog/learn-more-about-amd&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*edit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed you were looking for older samples in another thread and felt my response should have probably been posted in this thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hey jsn,&lt;BR /&gt;&lt;BR /&gt;It's a great time to start learning and using AMD syntax because DOJO 2.0 will soon be released and the legacy syntax will no longer be supported in newer versions of the API.&lt;BR /&gt;&lt;BR /&gt;I think AMD style ends up making the code much more clean and readable from a programmer's perspective (not to mention, faster apps!)&lt;BR /&gt;&lt;BR /&gt;I noticed that you are using version 1.6 of the JSAPI, from the other thread. That version was released in February 2010. Since then, many improvements and features have been added. You should check them out! They are fantastic. &lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 15:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156052#M14540</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2013-09-25T15:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Coding differences between API 1.6 and 3.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156053#M14541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 13:07:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156053#M14541</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2013-09-26T13:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Coding differences between API 1.6 and 3.6</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156054#M14542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in browser, if we use dojo, wo can go faster,AMD:just like&amp;nbsp; we can do more things..thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 07:40:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coding-differences-between-api-1-6-and-3-6/m-p/156054#M14542</guid>
      <dc:creator>zhongrenGu</dc:creator>
      <dc:date>2014-12-28T07:40:19Z</dc:date>
    </item>
  </channel>
</rss>

