<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Laura Kim on Medium]]></title>
        <description><![CDATA[Stories by Laura Kim on Medium]]></description>
        <link>https://medium.com/@laurakeem?source=rss-c559f16200f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*a4t-RoGCfrQGmfaM.</url>
            <title>Stories by Laura Kim on Medium</title>
            <link>https://medium.com/@laurakeem?source=rss-c559f16200f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 05:10:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@laurakeem/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ambient Intelligence]]></title>
            <link>https://medium.com/@laurakeem/ambient-intelligence-9e568f7fcbef?source=rss-c559f16200f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e568f7fcbef</guid>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ambient-intelligence]]></category>
            <dc:creator><![CDATA[Laura Kim]]></dc:creator>
            <pubDate>Mon, 10 Dec 2018 18:14:40 GMT</pubDate>
            <atom:updated>2018-12-11T14:52:32.464Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ambient Intelligence (AmI)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UpffvcSxER48aFYL" /><figcaption>Photo by <a href="https://unsplash.com/@benkolde?utm_source=medium&amp;utm_medium=referral">Ben Kolde</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>“The most profound technologies are those that disappear. They weave themselves into the fabric of everyday life until they are indistinguishable from it,” — <em>Mark Weiser</em></p><p>Ambient Intelligence, known as “AmI,” is distributed electronic intelligence. It removes the necessary hardware to the background of the environment and works off microprocessors that interact with one another to share learned data. The AmI is able to learn and respond to the desires of humans in that environment to essentially enhance society in an abstracted way. The AmI algorithm perceives the state of the environment and of the user with sensors, reasons through the data it has mined, and acts upon the environment so that the algorithm achieves its intended output.</p><p>Through computing and Natural User Interfaces (NUIs), AmI can provide services autonomously by analyzing user input through means of voice, gesture, and other non-interruptive methods. AmI must be sensitive, adaptive, and responsive. Because AmI has so many complex elements, it is easier to grasp when it is broken up into its separate components to understand how it functions as a whole.</p><p>Ubiquitous computing, synonymous with pervasive computing, embeds computational capability into everyday objects to allow them to perform tasks without requiring the user to interact with a computer to initiate said task. An example of a product that uses ubiquitous computing is the FitBit, a bracelet that tracks various attributes of a user such as the heart rate and quality of sleep to help the user achieve their fitness goals.</p><p>NUIs are systems that allow humans to interact with computers. A human user operates the NUI with intuitive actions that remove the need for direct instructions. The latest NUI systems do not rely on intermediary devices but rather sensors, making them unobtrusive and near invisible to facilitate a seemingly organic user experience.</p><p>One example of an NUI is of a laptop prototype Lenovo released that uses eye tracking technology to trigger certain computer actions. It combines an infrared light source with a camera to catch reflective glints in a user’s eyes. Internal software calculates the area of the laptop screen that is being focused on by the eye and translates that into a response from the computer, such as expanding the taskbar or opening up a custom-made sidebar.</p><p>AmI is completely dependent on sentient or context computing. The system must be able to gather information about the environment at any given time and adapt behaviors accordingly. This type of computing utilizes software to automatically connect and analyze data to guide responses. Context awareness ties in with emotional analytics software, an audio mining technique that can collect data based on the user’s tone and how often a particular word is said to analyze the user’s emotional state of being and create output in response to the mined emotional state. That being said, over time, AmI becomes personal and tailored to the needs of the user whose information it is analyzing and processing. It is how AmI can preemptively know what a user needs with minimal provocation from the user.</p><p>AmI can be used to connect multiple softwares. Smart objects can speak to each other using the Semantic Web and interoperability, by sharing data learned about the user to other products in the overall AmI system. A world that works off ambient intelligence would connect all smart devices through the hidden network of the Internet of Things. The system would work synchronously to share and analyze collected data and aid users in carrying out daily tasks in a natural way, despite the significant manipulation from the AmI. AmI looks to enhance the natural physical environment without users recognizing its interference.</p><p>Using these components, AmI has now become not just a possible, but probable future for our society. The positive impact of AmI has been immense and even includes Stephen Hawking as a beneficiary to its technology. Intel created a user interface called ACAT (Assistive Context-Aware Toolkit) specifically for Hawking that uses his cheek and eyebrows as triggers for computer actions such as speaking, writing emails, and analyzing his desired timing for delivering parts of his speeches in front of audiences. The benefits in terms of physical well being that AmI can ensure is insurmountable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*_V9Bpz9gfldN1geBCksKZQ.png" /><figcaption>Sensors track user movements and can alert emergency numbers if the system recognizes a user has created<br>a movement that implies physical injury or danger. Source: “<em>Review: Ambient intelligence: Technologies, applications, and opportunities</em>” by D. Cook, J. Wrede, and V. Jakkula</figcaption></figure><p>ACAT can predict the desired word to be output simply by reading Stephen Hawking’s input and matching it to known information the interface has saved over time. Intel made this interface open source so as to help anyone suffering from a motor neuron disease. While in this case, the AmI is not invisible due to the software that is reliant on Hawking’s touch, the ACAT can analyze user input and preemptively respond with the desired output without putting significant strain on the user.</p><p>Another example of AmI from the basic consumer industry is the Philips Hue Smart Light Bulb. Using a device called a “bridge,” the smart bulbs can “speak” to one another and respond to a user’s input from the app through the gateway the bridge creates. With this ambient technology, a user can control all of the light settings at once using intelligent personal assistants to voice commands without ever having to touch a technological device.</p><p>The more complex functionality lies in the capability of the bulbs to respond to the environment the user creates. The lights will increase in intensity in the morning to wake up the user by mimicking the effect of a natural sunrise and decrease at night to a warmer tone light to aid in relaxation before the user goes to sleep. Depending on the user’s activity, the lights can adjust to reflect the mood of the environment and even affect the emotional levels of the user.</p><p>As with any type of progressive technology, there are many who emphasize a need for caution when trekking into the world of Ambient Intelligence.</p><p>Stephen Hawking, himself, has warned against the development of Artificial Intelligence. Soon after Intel had reconditioned the ACAT interface for Hawking, he had expressed in an interview that as this AI learns and re-designs itself with the learned data, he believes our society takes one step closer to the end of the human race. “Humans, who are limited by slow biological evolution, couldn’t compete, and would be superseded,” Hawking noted. Furthermore, many scientists argue that any type of Artificial Intelligence such as AmI brings into question the unethical nature through which the user’s privacy is exposed by the learned information being available through the Web.</p><p>Part of what makes AmI successful in some areas as opposed to others is the rate of acceptance of the loss of privacy from the residents. Further questions arise as to when it is appropriate for AmI to interrupt a user’s daily life. Additionally, it is unknown what the human limit is in terms of how much intervention a user will tolerate before it tires of the AmI and wishes to remove it from the environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e568f7fcbef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating CarrierWave for File Upload in a Rails App]]></title>
            <link>https://medium.com/@laurakeem/integrating-carrierwave-for-file-upload-in-a-rails-app-8bf68d222da3?source=rss-c559f16200f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bf68d222da3</guid>
            <category><![CDATA[file-upload]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[carrierwave]]></category>
            <dc:creator><![CDATA[Laura Kim]]></dc:creator>
            <pubDate>Fri, 07 Dec 2018 18:46:16 GMT</pubDate>
            <atom:updated>2018-12-07T18:46:16.730Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a5MBdg62eWKmxtKV" /><figcaption>Photo by <a href="https://unsplash.com/@rawpixel?utm_source=medium&amp;utm_medium=referral">rawpixel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a Ruby on Rails project, my partners and I created a website called LinkUp that connects people who want to attend an event but have no one else to go with. We gave users the name “Groupies” and gave groupies the capability to interact with one another on an event show page through a comment section. Our domain consisted of five models: User, Event, Venue, Comment, and Like.</p><p>LinkUp uses the EventBrite API to create event objects based on the user’s search query, with parameters of “Search Keyword,” “Zip Code,” “Radius (miles),” “Date,” and a checkbox option of “Free Events.” After a show page of all of the events based on the search queries loads, a user can click on a specific event to go to the show page and read more details about the event.</p><p>Users can also save the event to their profile (and later delete it if they change their mind), which in turn increments the “Number of Groupies Attending” counter that we display on the event show page. Ideally, plans could be made in the comment section for all users to meet at a certain place and time before the event so they can attend together. As a side note, we used the Bulma CSS framework to style our website and there will be references to some div classes from Bulma.</p><p>One important aspect of the user functionality was to let them personalize their account. We utilized a gem called CarrierWave. With this gem, a user has the option of upload a picture anywhere from their computer and on the backend, a folder for that user id is created that saves the picture to that user id’s specific folder and creates the association.</p><p>Originally, we had the user paste in a URL to the image they wanted to use as their profile picture but soon realized it was not the most efficient way and refactored this functionality to remove the need to open a new tab in the browser to hunt down a profile picture that a user would then have to copy the link for. This blog post will be a walk-through of how to use CarrierWave.</p><p>First, install the gem on your terminal with the command:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0cd84d186dfcc60be7f45d1e4c2c1daf/href">https://medium.com/media/0cd84d186dfcc60be7f45d1e4c2c1daf/href</a></iframe><p>Add the ‘carrierwave’ and ‘mini_magick’ gems to your Gemfile for your Rails website. In your Initializers folder in Config, create a new file called “carrier_wave.rb” and put the below into the file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d43e18d17f6ea10efda77d204698fe5e/href">https://medium.com/media/d43e18d17f6ea10efda77d204698fe5e/href</a></iframe><p>If you haven’t already, create the User model and add “image” as an string attribute. The below takes into account that the model has not yet been made but if it has, just add “image” as a column to the existing User table</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4dfc644c8da6d5957a4eb96e3e2124f1/href">https://medium.com/media/4dfc644c8da6d5957a4eb96e3e2124f1/href</a></iframe><p>Migrate this into your database and created an uploader. An uploader comes from the CarrierWave gem and allows a user to upload a file to the server. Essentially, it isolates the logic of uploading a file from the logic of the model.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d3e67fac94b8d555a2113121f86cb344/href">https://medium.com/media/d3e67fac94b8d555a2113121f86cb344/href</a></iframe><p>This will generate a folder called “uploader” in “apps” with a lot of text commented out. In favor of space, I’ve only included the methods you need to create profile pictures below. Uncomment these below lines in your image_uploader.rb file.</p><p>The block that creates a thumb version of the user’s uploaded image can be any dimensions you prefer. I chose 500x500 pixels because it’s large enough that when the thumbnail is created, the image does not become distorted or grainy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WO5jDdGxhOwleXovePjqag.png" /><figcaption>ImageUploader Class</figcaption></figure><p>The next step is to go into your user model and mount the uploader. Add the below line into your user.rb file. By doing this, the uploader will automatically associate the image to the new instance of the User class. Image is a string because the image becomes a url that can be called on later as “@user.image.picture.url.”</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6f4c38398c727b3d073632b8019cf731/href">https://medium.com/media/6f4c38398c727b3d073632b8019cf731/href</a></iframe><p>Now, you need to include the ability to upload the image in the form that a user creating an account uses as well as editing the User model to permit “:image” in the strong params. For readability, I’ve expanded this to a form_for, as opposed to a form_tag form.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba15605f5e02e2d4b39a95342e3cda3e/href">https://medium.com/media/ba15605f5e02e2d4b39a95342e3cda3e/href</a></iframe><p>When the above form renders, the user will interact with the page as the below capture demonstrates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*1pl2efG6tc4Rq91We7g2HA.gif" /><figcaption>User Registration Form</figcaption></figure><p>As the final step, when the user logs in with the created account, it will render the user show page with the profile picture displayed. This is done by simply adding in the below code to the user show page.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/709c73973acaa522fa3815d75416c3d5/href">https://medium.com/media/709c73973acaa522fa3815d75416c3d5/href</a></iframe><p>The most important part is line 3 in the above code block. The others are just div classes I created to stylize the image in a circle border. It’s important that we use the thumb version of the user’s profile picture because it equalizes the size of all user profile pictures across the application.</p><p>The user show page will render like below once the account has been created and is logged into.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*Wy9P6_MIml1g2Al8MO3NNg.gif" /><figcaption>User Profile Page</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bf68d222da3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code Rescue]]></title>
            <link>https://medium.com/@laurakeem/code-rescue-676cee01c8f?source=rss-c559f16200f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/676cee01c8f</guid>
            <category><![CDATA[rescue]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[error-handling]]></category>
            <category><![CDATA[cli]]></category>
            <dc:creator><![CDATA[Laura Kim]]></dc:creator>
            <pubDate>Fri, 07 Dec 2018 18:45:30 GMT</pubDate>
            <atom:updated>2018-12-07T18:45:30.010Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZhHZX0YXCQ8Xb4t7" /><figcaption>Photo by <a href="https://unsplash.com/@hansgust?utm_source=medium&amp;utm_medium=referral">Hans Gustafsson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This past week, I created my first command line application that returned data from an API. My partner and I used the Yummly API (tip: you can bypass paying $500 for it if you apply to access it as a student and get approval) to create Méli-Mélo. The app name is derived from the French phrase which roughly translates to “hodgepodge.” Our idea was to create a program that, when given three food ingredients from the user, would return recipes to create from the input. In that vein, a user can create something that benefits him/her out of what seems like a random assortment of unrelated things.</p><p>Creating an application is generally quite fun but the real task to overcome is taking into account edge cases that may break the code. By being forced to compensate for any errors from the user end, there is a lot more room for something to go wrong and shut down the application entirely. The usability of the program was important because such a superficial program that does not account for user errors will not function well in the real world.</p><p>The biggest issue was when a user put in ingredients that either were not words that existed in the English language or ones that were viable words but had nothing to do with food (i.e., putting “help” in as an ingredient). In the application, when the API call is created with the user input of ingredients, a new object is instantiated from the Recipe class with the name attribute set as the value of the “recipeName” key from the hash returned from the API. If the input is not a viable food ingredient and passed into the search query, no hash is returned from the API and therefore, no object is instantiated.</p><p>Let’s look at a detailed example to explain the above. Below, I put in “need,” “more,” and “sleep” as my three recipe ingredients in my application which of course are not ingredients any person could ever cook with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*puQObkKVQ0ocmYjfurjzEg.gif" /><figcaption>Broken application for demo purposes</figcaption></figure><p>Since a recipe object was never instantiated due to the lack of return from the API, I cannot call the name method on an object that does not exist. But all is not lost. The error message is key in figuring out how to debug any problem in code.</p><p>The error output highlights exactly where the code is breaking. As a rule of thumb, whenever you run into an error, try to figure out what it is conveying as opposed to jumping right back into your code and throwing a pry into a random place. In line 8 below, the return_recipe method calls “.name” on the instance variable “recipe_obj.” Just as the error message output, you cannot call on the name method on something that is nil. Knowing exactly where the application was shutting down is absolutely crucial to rescue it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6223fef778e4cbeca39993032aa6bba1/href">https://medium.com/media/6223fef778e4cbeca39993032aa6bba1/href</a></iframe><p>“Rescue” stops the shutdown from occurring where the error in your code is and will run the code in the block below instead. To rescue Méli-Mélo, I put the “begin” where I know the error occurs, follow up with “rescue” immediately after, and call on the “rescue_from_breaking” method. The “rescue_from_breaking” method outputs a message to prompt the user to enter their ingredients again and loops back to the beginning of the application that asks for the very first ingredient.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/34d65b747ffb2ff9802056c42317d8a9/href">https://medium.com/media/34d65b747ffb2ff9802056c42317d8a9/href</a></iframe><p>In this case, the code inside my rescue block is a call to a different method but that method could just as easily have been in the “return_recipe” method instead. Abstracting the code into a separate method that I can call on as needed helps in simplifying code and increasing readability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ZptMY5EuGen3WXWu0G4hFg.gif" /><figcaption>Working demo utilizing rescue</figcaption></figure><p>The above shows how “rescue” essentially saved my application. It did not return a recipe object for my ingredients “chug,” “a,” and “redbull” but it also did not throw an error message and break. It output a message notifying the user that those were not valid food ingredients and loops the application to one of the beginning methods to give the opportunity for the user to restart with the proper ingredients. This code does not just account for the edge case of random input, but also if the user may accidentally spell an ingredient wrong. Can you, at any given time, spell “Worcestershire” correctly without looking it up?</p><p>Rescue is a valuable tool in helping coders understand what is truly happening in their code. It forces you to analyze what is being output and how to debug the problem. Besides, it is visually much more pleasing to receive a single string, “Error,” as opposed to a huge block just highlighting how wrong your code is.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=676cee01c8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pretzel (&:) Break]]></title>
            <link>https://medium.com/@laurakeem/pretzel-break-7e504e7df85d?source=rss-c559f16200f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e504e7df85d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[proc]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[iterators]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Laura Kim]]></dc:creator>
            <pubDate>Fri, 07 Dec 2018 17:27:01 GMT</pubDate>
            <atom:updated>2018-12-07T17:29:46.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JWCaBrPyal7oW-g6" /><figcaption>Photo by <a href="https://unsplash.com/@fempreneurstyledstock?utm_source=medium&amp;utm_medium=referral">Leone Venter</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As programmers, we are always looking to hack the system. To figure out a way to bypass any expendable lines of code to get our desired output in the most concise manner possible is a skill of a great developer. It was through this mentality that numerous shorthands were created, one being the pretzel colon shortcut. Written as “&amp;:”, it is very often misread as “ampersand and colon.” In actuality, it is “ampersand and <em>object</em>.”</p><p>Let’s take a look at an example of a basic array that we create a new array from using the .map method:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c0c7e6d32de74feb3128c973124fb82/href">https://medium.com/media/3c0c7e6d32de74feb3128c973124fb82/href</a></iframe><p>Here, array.map returns a new array in which every element, this case being a string that is a word, is reversed. We call this a semordnilap, a word that when it is reversed, is still a valid word in the English language but means an entirely different thing (“regal” reversed becomes “lager”, “time” reversed becomes “emit” and so on). It’s an interesting concept but I digress. Looking at our code block, it’s very straightforward but as coders we aren’t looking to be just straightforward. We also want to be succinct. What if we could simplify this to just one single line and just a couple of characters at that? Enter the pretzel colon shorthand.</p><p>Taking that same array of words, we can still call the reverse method on each element of the array but instead use “&amp;:” in place of “word.reverse.”</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d4fee766b2c1ea1071c7386ce8d064f/href">https://medium.com/media/3d4fee766b2c1ea1071c7386ce8d064f/href</a></iframe><p>Look at how much cleaner this code looks! The pretzel colon is creating a new array just as our other block of code did but it seems to be doing it without the element even being defined to be able to modify it. How is this happening? Therein lies the magic of the pretzel colon.</p><p>Remember, each of the strings in this array are themselves an object. So in our expanded mapped array, we had called the method reverse on our word object in the code block. Pretzel colon creates the call to the block behind the curtain, so to speak, and lets us condense that entire block into just the pretzel colon. This may seem like a slightly abstract way to look at what the pretzel colon is doing, so let’s get into detail about what’s actually occurring.</p><p>The ampersand is an operator that takes whatever follows it as the argument to use as the block, which in this case is “:reverse.” Our code recognizes that “:reverse” is not a proc. A proc is a Ruby Class and “:reverse” is not an instance of that class. How do we fix this? There’s a reason Ruby is hailed as one of the languages that extends great kindness to its users. Implicitly, the “:reverse,” symbol is recognized as not being a proc so it is converted from a symbol to a Proc before the “&amp;” operator can finally be called.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee513f8a98f3d93361037f95cd109bf5/href">https://medium.com/media/ee513f8a98f3d93361037f95cd109bf5/href</a></iframe><p>The above code walks through each step of the process. We have an array where each element is a word. We call the map method on the array as well as the “&amp;” operator on the “:reverse” symbol. Ruby recognizes that “:reverse” is not a proc and converts it implicitly for us. Then, an expanded version of the pretzel colon method shows that we are passing in the method reverse “word.send :reverse” which equates to “word.reverse” because we are calling the reverse method on word.</p><p>Our output is still the newly created array of reversed words. While this pretzel colon may seem like a simplified version of a method call on an object, there are a lot of things happening behind the scenes in just the “&amp;:” alone. In an abstracted viewpoint, the pretzel colon is a useful tool to declare the pieces of information that we are trying to pass and call methods on without ever having need us to define it. And after all, who doesn’t like a small snack break as a moment of relief during a day full of coding?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e504e7df85d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>