<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Javascript on</title><link>https://www.ardanlabs.com/tags/javascript/</link><description>Recent content in Javascript on</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 16 Feb 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.ardanlabs.com/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>Range-Over Functions in Go</title><link>https://www.ardanlabs.com/blog/2024/04/range-over-functions-in-go.html</link><pubDate>Mon, 16 Feb 2026 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/04/range-over-functions-in-go.html</guid><description>&lt;p&gt;Iteration has long been one of the more fragmented areas of Go, with developers relying on ad hoc patterns to traverse custom data structures. This article explores the range-over-functions experiment, a proposed evolution of the language that introduces a standardized iterator model while preserving Go&amp;rsquo;s familiar for range syntax. Using the new iter package and sequence abstractions, it shows how iteration logic can be expressed more clearly, flexibly, and idiomatically. Originally published in April 2024, the concepts remain highly relevant as Go continues to evolve toward more expressive yet simple language features.&lt;/p&gt;</description></item><item><title>For Loops and More in Go</title><link>https://www.ardanlabs.com/blog/2024/03/for-loops-and-more-in-go.html</link><pubDate>Tue, 12 Mar 2024 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/03/for-loops-and-more-in-go.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;Looping seems like a basic topic: Write a &lt;code&gt;for&lt;/code&gt; loop with a termination condition, and you&amp;rsquo;re done. However there&amp;rsquo;s a lot of ways you can write a &lt;code&gt;for&lt;/code&gt; loop in Go. Knowing more about the different versions of &lt;code&gt;for&lt;/code&gt; will help you choose the best option to accomplish your tasks and it will help you prevent some bugs.&lt;/p&gt;&#10;&lt;h3 id="some-assembly-required"&gt;Some Assembly Required&lt;/h3&gt;&#10;&lt;p&gt;What kind of code is generated by the compiler for a &lt;code&gt;for&lt;/code&gt; loop? To keep things simple, I will produce the assembly for an empty loop:&lt;/p&gt;</description></item><item><title>Visualizing Map Data with Go and Leaflet JS</title><link>https://www.ardanlabs.com/blog/2023/11/visualizing-map-data-go.html</link><pubDate>Thu, 23 Nov 2023 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2023/11/visualizing-map-data-go.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;This year I set a personal goal of walking for a total of 1,000 kilometers and I’m proud to say I’m close to hitting that goal. I’ve been tracking all the different routes I take in an app named &lt;a href="https://www.strava.com/dashboard"&gt;Strava&lt;/a&gt;. One nice feature of Strava is that the app provides access to the raw data in a format called &lt;a href="https://en.wikipedia.org/wiki/GPS_Exchange_Format"&gt;GPX&lt;/a&gt;. Starva can visualize the route in their app, but I wanted to try and perform my own visualization. That brought me to this blog post about using &lt;a href="https://leafletjs.com"&gt;Leaflet JS&lt;/a&gt; to plot one of my walks on a map.&lt;/p&gt;</description></item></channel></rss>