<?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: Object names in the Java Object in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Object-names-in-the-Java-Object/m-p/476870#M122745</link>
    <description>&lt;P&gt;Personnally, I suspect it is just to save a bunch of keystrokes. Same reason I often use i, j and k as iterators when their "meaning" is very obvious.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, short variable names have the benefit of considerably reducing the risks of typos...&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jul 2018 16:52:12 GMT</pubDate>
    <dc:creator>ybolduc</dc:creator>
    <dc:date>2018-07-10T16:52:12Z</dc:date>
    <item>
      <title>Object names in the Java Object</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Object-names-in-the-Java-Object/m-p/476822#M122732</link>
      <description>&lt;P&gt;In many examples, the object-reference (name) of the Java Object (javaobj) is one letter, often "j", "f", or "m". For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS® 9.4 Component Objects: Reference, Third Edition&lt;/P&gt;
&lt;P&gt;Pg 78&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* DATA step code */&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; dcl javaobj j("ttest");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; length val 8;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; length str $20;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; j.setIntField("i", 100);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; j.setDoubleField("d", 3.14159);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; j.setStringField("s", "abc");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; j.callIntMethod("im", val);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; put val=;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; j.callDoubleMethod("dm", val);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; put val=;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; j.callStringMethod("sm", str);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; put str=;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this just convenience or is it meaningful?&amp;nbsp; I would tend to name it as informatively as possible, potentially with something like "__jo_" so that I can read my programs/logs with a program and find which used them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if there is a reason, then less typing is always good &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 14:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Object-names-in-the-Java-Object/m-p/476822#M122732</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2018-07-10T14:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Object names in the Java Object</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Object-names-in-the-Java-Object/m-p/476870#M122745</link>
      <description>&lt;P&gt;Personnally, I suspect it is just to save a bunch of keystrokes. Same reason I often use i, j and k as iterators when their "meaning" is very obvious.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, short variable names have the benefit of considerably reducing the risks of typos...&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 16:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Object-names-in-the-Java-Object/m-p/476870#M122745</guid>
      <dc:creator>ybolduc</dc:creator>
      <dc:date>2018-07-10T16:52:12Z</dc:date>
    </item>
  </channel>
</rss>

