<?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 Rand H on Medium]]></title>
        <description><![CDATA[Stories by Rand H on Medium]]></description>
        <link>https://medium.com/@randluca?source=rss-571ce55ef3d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Rand H on Medium</title>
            <link>https://medium.com/@randluca?source=rss-571ce55ef3d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:00:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@randluca/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[Low Level vs High Level Programming Languages]]></title>
            <link>https://randluca.medium.com/low-level-vs-high-level-programming-languages-ca321cba718d?source=rss-571ce55ef3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca321cba718d</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Rand H]]></dc:creator>
            <pubDate>Sat, 13 Feb 2021 06:19:43 GMT</pubDate>
            <atom:updated>2021-02-13T06:19:43.209Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been learning a lot about web development, and at a breakneck pace. It’s been incredibly fun, and bewildering of course, to jump between programming technologies, libraries, packages and more. Along the rapid journey however, I know that some of the nitty gritty aspects of programming and how languages operate on a machine level are lost on me. Join me now on a brief exploration of the differences between low level and high level programming languages, in which I’ll discuss what I’ve researched about their respective advantages and disadvantages.</p><p>Low level languages are more machine-readable, as their commands are comparatively specific to how a computer should execute processes. The downside here is that writing in these languages tends to be much more verbose than high level languages when attempting to develop an algorithm to achieve the same result. The programmer must be very specific with the instructions they write, as they are guiding the computer on a more step-by-step basis on how it should behave. In contrast, high level languages are more human-readable, and are also often referred to as more programmer-friendly. Their syntax is easier to interpret (at least as an English language speaker) with keywords that more intuitively match their functionality. This makes interpretation of the code much easier for the programmer by hiding the keywords’ associated processes “under the hood.” The high level language still has to be processed through a <strong>compiler </strong>or <strong>interpreter </strong>that translates said keywords into machine language to execute the program. High level languages are farther removed from the ones and zeros read by computers, making them easier for us to read but requiring more steps for the computer to read.</p><p>Continuing along this train of thought, high level languages tend to be easier to debug and maintain because the logic involved is easier to trace and more accessible to programmers. The use of compilers/interpreters also makes errors easier to identify and locate. Low level languages are comparatively harder to debug due to their curse of specificity. A programmer working with a low level language typically has to spend more time thinking about program code to instruct the computer how to operate, rather than solely focusing on the logic of their algorithm while the high level language does the heavy lifting.</p><p>An area that low level languages excel in is the use of memory. These languages are much less memory-intensive than high level counterparts, because they do not have to be translated (at least not as much) into machine language in real time. By the same principle high level languages execute more slowly than low level. Another boon of low level is more direct control on the hardware, although this can also be a bane as it necessitates a greater understanding of how the software and hardware interact. These points and more illustrate how high level languages are more programmer-friendly, and I am certainly not alone when I say I am beyond grateful for them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca321cba718d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Maps Javascript: Fascinating, Versatile, Complex]]></title>
            <link>https://randluca.medium.com/google-maps-javascript-fascinating-versatile-complex-8c2020d9164f?source=rss-571ce55ef3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c2020d9164f</guid>
            <category><![CDATA[google-maps-api]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Rand H]]></dc:creator>
            <pubDate>Thu, 14 Jan 2021 04:37:26 GMT</pubDate>
            <atom:updated>2021-01-14T04:37:26.704Z</atom:updated>
            <content:encoded><![CDATA[<p>The ubiquity of Google Maps across the web is undeniable. As a novice web developer my insights on it are fledgling, but I can’t resist sharing my excitement to dive into its utilization. I found the Javascript version of the Google Maps API to be much more engaging than the Static Maps API. The web application that I used it to build allows a user to browse the global map to choose a country, and then passed the location of their marker to a different API that would provide information on the most popular music artists listened to in that country. This required a dynamic and interactive map to do so, as a static map image would not grant the user nearly as much intuitive control over their search.</p><p>As expected from a service provided by Google the depth of functionality (and corresponding documentation) is enormous. For the purpose of this brief reflection I’ll shed some light on how to construct an interactive map for your webpage, and how to let a user place map pins — or “markers” — on that map.</p><p>To use the unique Javascript functions provided in Google Maps Javascript, first register an account with the Google Cloud service to obtain your own API key, and place the generated &lt;script&gt; element into the &lt;body&gt; of your HTML. This will allow you to use their pre-defined functions in your own script.js file, as pictured below.</p><figure><img alt="Example code for creating an interactive instance of Google Maps on the webpage" src="https://cdn-images-1.medium.com/max/610/1*ssEILrAdH1oQ57jaoPnhQw.png" /></figure><p>The function initMap() is your money-maker… I mean map-maker… Within it you declare the map variable and set it equal to <strong>new google.maps.Map()</strong>, within which you can define rules for it to behave by. It is necessary to declare the HTML element that the map will be appended to in the <em>first</em> argument in the <strong>Map()</strong> method, and the rules described below as the <em>second </em>argument. In my example, the <strong>center</strong> of the map is set to the coordinates of the center of the continental United States, the default <strong>zoom</strong> is set to a value of 4.1 (larger numbers cause the map to start more zoomed in), and <strong>restriction</strong> prevents the user from zooming out or panning the map beyond the coordinate bounds written there. If you want your user to be able to peruse the global map like in the final version of my app, a restriction rule will not be helpful. I’ve included it here just because I thought it was cool and useful in other contexts.</p><p>At the bottom of the code snippet above I use the <strong>addListener()</strong> method on the map to listen for the user’s “click” anywhere on the map, at which point the function <strong>placeMarker()</strong> is called at the exact coordinates of the click event. It is essential to create this event listener <em>within</em> the initMap() function, or else you will receive an error that <strong>map</strong> is undefined, even if you have already declared it as a global variable.</p><figure><img alt="Example code for creating a marker on the map" src="https://cdn-images-1.medium.com/max/433/1*J8Kknb1bKDlx62tjMz_1zQ.png" /></figure><p>Similar to how one constructs a map, you create a marker using <strong>new google.maps.Marker()</strong> with rules contained therein. Here I specified the marker animation as <strong>DROP</strong> to make the marker slide down from the top of the map before landing at the chosen location. The values of “location” and “map” are placeholders that correspond to the arguments of the <strong>placeMarker()</strong> called at the end of the first code snippet up above. For my app I only wanted to allow the user to create a single marker, which necessitated the use of the if/else statement seen here. If the marker did not already exist then the click event would create a new marker, but if the marker did exist with some value (and therefore was not <strong>null</strong>) then the same marker’s position was simply moved with the <strong>setPosition()</strong> method.</p><p>Finally, I used the methods <strong>getPosition()</strong> and <strong>toUrlValue()</strong> on the marker to respectively obtain the marker’s position and convert it to an uninterrupted string of its longitude and latitude together, which can be passed to other APIs as needed.</p><p>I hope this brief guide was informative to you. It certainly took me a lot longer to figure out how to use these tools than it did to write all this!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c2020d9164f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>