<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tisha Tallman</title>
    <description>The latest articles on DEV Community by Tisha Tallman (@tallmanlaw).</description>
    <link>https://dev.to/tallmanlaw</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F96959%2F7eb1f05a-476f-4ac2-abe2-2872dace561a.png</url>
      <title>DEV Community: Tisha Tallman</title>
      <link>https://dev.to/tallmanlaw</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tallmanlaw"/>
    <language>en</language>
    <item>
      <title>Array Methods Used on an Array of Objects</title>
      <dc:creator>Tisha Tallman</dc:creator>
      <pubDate>Fri, 09 Nov 2018 21:48:05 +0000</pubDate>
      <link>https://dev.to/tallmanlaw/array-methods-used-on-an-array-of-objects-4ah0</link>
      <guid>https://dev.to/tallmanlaw/array-methods-used-on-an-array-of-objects-4ah0</guid>
      <description>&lt;p&gt;Array methods can be used on an array of objects with relative ease with one nuance – accounting for object properties.  The solution is to utilize dot notation. &lt;/p&gt;

&lt;p&gt;A simple array of objects is provided below as a demonstration. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Ffya42ih1doqc0hd0u05x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Ffya42ih1doqc0hd0u05x.png" width="800" height="575"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The some() array method is used when you are trying to determine whether at least one of the items in the array passes a certain condition. The output will return ‘true’ or ‘false’. In the example below, the ‘some’ array method is checking to determine whether any of the array of objects has a guest with the age property of greater than 21 years.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F8y6jyn9cpqa7s8b1ny8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F8y6jyn9cpqa7s8b1ny8y.png" width="800" height="65"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The every() array method similarly checks to determine whether any item meets the established condition. In this case, the ‘every’ method is checking to determine whether ‘every’ one of the array of objects has a guest with an age property greater than 21 years. The output will return ‘true’ or ‘false’.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Faulc3bfvt95weyi95cdc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Faulc3bfvt95weyi95cdc.png" width="800" height="62"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The find() array method simply finds the specified item and returns it. In the case below, it returns the entire object that includes the specified property.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Foglf2bt7n6nf17cbk0q4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Foglf2bt7n6nf17cbk0q4.png" width="800" height="48"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In addition, the methods can be combined.  The example below demonstrates the combination of the filter(), includes(), and map() methods.  The filter() array method loops through the list to find the condition which it was passed, producing the new array with only the items that meet that condition. In the case below, the ‘filter’ method was combined with the ‘includes’ method, which normally would produce a ‘true’ or ‘false’ result, to ‘filter’ through the items, finding the ‘music’ property on each object.  Then, a new array with the conditioned items are rendered with the ‘map’ method.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F0jgwj75drxkghfw6bdop.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F0jgwj75drxkghfw6bdop.png" width="800" height="70"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The forEach() array method is useful when you want to display the entire array, or, in this case, the array of objects.  The method loops through every item, rendering the entire guest list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fk33qx18yhxgounxn8ryr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fk33qx18yhxgounxn8ryr.png" width="800" height="182"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fyqqh5hsbf1dw7p6os9nc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fyqqh5hsbf1dw7p6os9nc.png" width="800" height="601"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>A Basic Example on jQuery Events</title>
      <dc:creator>Tisha Tallman</dc:creator>
      <pubDate>Tue, 06 Nov 2018 14:28:07 +0000</pubDate>
      <link>https://dev.to/tallmanlaw/a-basic-example-on-jquery-events-2h31</link>
      <guid>https://dev.to/tallmanlaw/a-basic-example-on-jquery-events-2h31</guid>
      <description>&lt;p&gt;jQuery is a JavaScript library that is quite salient on event-driven responses to page elements, allowing users to interact with pages through text input. A simple example is easily demonstrated below. &lt;/p&gt;

&lt;p&gt;First, build out a simple HTML page that allows for search, add, and delete functionality to an existing list of names.  The list is hard coded as an array which, then, allows for array methods to be combined with the event methods. The HTML file is below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9zSVnYZX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4tjglwu4jcmbs82gzla0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9zSVnYZX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4tjglwu4jcmbs82gzla0.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, code a simple CSS file.  The code below is the only necessary code that is later combined with the search button to provide a page color change. The color will change to blue after entering an existing name from the list and clicking search.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3C4-AaCe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/xga8d65f5axhsi5nqgsg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3C4-AaCe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/xga8d65f5axhsi5nqgsg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The list, called student list, is coded into the app.js file below. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EGIzddUQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/o36t5o9kn83gdpbasl4p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EGIzddUQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/o36t5o9kn83gdpbasl4p.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then, a render function is created to allow the list to render to the page below the input field.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QAmNtWU9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/bjel37rwe52briiyix82.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QAmNtWU9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/bjel37rwe52briiyix82.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The add, search and delete functions are added to the code using jQuery event method “on”, as seen below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PXGsbShy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/si02mz17t7d5jhoblqqh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PXGsbShy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/si02mz17t7d5jhoblqqh.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is as simple as that.  You can now add names to the existing list that will render to the page at the bottom of the existing list. You can delete names from the existing list and the new list will render to the page without the deleted name.  Or, you can search for names on the existing list. After you input a name from the existing list and you click the search button, the body of the page will change to blue.&lt;/p&gt;

&lt;p&gt;The page rendering of the student list prior to entering text or clicking any of the buttons is shown below. Some additional code was added to the CSS file for this simple style.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qi6eRbGx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/x3dmk7u5x1h7x8qy9wss.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qi6eRbGx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/x3dmk7u5x1h7x8qy9wss.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The page rendering is as follows after an existing list name is entered in the field and the search button is clicked.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oLh_6UpF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/af7z8l58dsey6al4czrd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oLh_6UpF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/af7z8l58dsey6al4czrd.png"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>jquery</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Beginner's First Steps With APIs</title>
      <dc:creator>Tisha Tallman</dc:creator>
      <pubDate>Thu, 01 Nov 2018 17:01:52 +0000</pubDate>
      <link>https://dev.to/tallmanlaw/beginners-first-steps-with-apis-2p15</link>
      <guid>https://dev.to/tallmanlaw/beginners-first-steps-with-apis-2p15</guid>
      <description>&lt;p&gt;Third party application program interfaces, APIs, are a great tool for building software applications.  An easy way to get familiar with the protocols used in making requests and receiving information is by choosing an API of personal interest and playing around with it.  A simple search engine query yields a great starting point.  &lt;/p&gt;

&lt;p&gt;After choosing an API of interest, I set up a personal account and obtained an API key.  I built out a simple html for the information to return to me in the browser. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fvoz63mt6mv889qxf2428.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fvoz63mt6mv889qxf2428.png" width="800" height="340"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then, I created a variable for the API key and a variable for the query. The query includes the URL in which I wish to retrieve the information plus the API key.  Insert the appropriate API key and URL where the “ “ are indicated.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Frqd9hqmct4if9l16q7za.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Frqd9hqmct4if9l16q7za.png" width="392" height="122"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I, next, coded an ajax ‘get’ method to retrieve the information. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fusoa4w7kcd5xowje42kc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fusoa4w7kcd5xowje42kc.png" width="800" height="252"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The following is then sent to the browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fie33ll9oco3ksfyex2kn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fie33ll9oco3ksfyex2kn.png" width="618" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After making this first step, I found it easier to understand APIs and I acquired a basic understanding of the power of utilizing third party APIs.&lt;/p&gt;

</description>
      <category>api</category>
      <category>beginners</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Beginner's Mistakes:  Variables, Functions &amp; Objects. . . Oh my!</title>
      <dc:creator>Tisha Tallman</dc:creator>
      <pubDate>Thu, 30 Aug 2018 22:14:38 +0000</pubDate>
      <link>https://dev.to/tallmanlaw/beginners-mistakes--variables-functions--objects---oh-my-21ik</link>
      <guid>https://dev.to/tallmanlaw/beginners-mistakes--variables-functions--objects---oh-my-21ik</guid>
      <description>&lt;p&gt;Beginner’s Mistakes: JavaScript’s Variables, Functions &amp;amp; Objects. . . Oh My!&lt;/p&gt;

&lt;p&gt;JavaScript post-class four of coding bootcamp, I find my head a bit ‘dazed and confused’. . . a far cry from HTML’s elements, CSS’s selectors and properties, and, yes, even CSS grid.  Instead, variables, functions, objects, properties, methods, events, conditions and loops are swimming around in my brain.  So, I do what any normal noob would do, look for misery. . . I mean. . . company, googling “beginner common mistakes” in JavaScript . . . I find myself.  Sigh.  OK.  Common mistakes are universal, save the random coding savant.  &lt;/p&gt;

&lt;p&gt;Among the most cited common mistakes, syntax issues seem to rank the highest.  This includes: missing or mismatched brackets, parentheses, curly brackets, commas and semicolons; failure to camel case when naming variables; and naming variables with JavaScript reserved words . . .  to name a few.  &lt;/p&gt;

&lt;p&gt;Another favorite of those new to JavaScript, is confusing assignments and comparisons. I can personally attest to this one.  There is a difference between assignment “=” and comparison “==” (forgiving equality) and “===” (strict equality), and the difference is functioning code vs. a non-functioning code. &lt;/p&gt;

&lt;p&gt;If you can relate to the mistakes that I have described, worry no more!  I have provided some examples and charts below to assist in understanding how variables, functions and objects work at a fundamental level with some syntax highlights.  Hope it helps! Keep calm and code on.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fbr1wzlvv9pw722jq5kwi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fbr1wzlvv9pw722jq5kwi.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Ftqdfahozcr0mlv1izfvb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Ftqdfahozcr0mlv1izfvb.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Flk2shvdaa9ljkdplsxlm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Flk2shvdaa9ljkdplsxlm.png"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
