Working on Rust crate "gmaps-static" (Google Static Maps API URL builder) - Twitch live 2021-06-27

Subscribers:
953
Published on ● Video Link: https://www.youtube.com/watch?v=d_RfLXdSBl4



Duration: 1:43:10
237 views
9


In this video, I work with Tommaso Allevo (https://twitter.com/AlleviTommaso) on a Rust crate that helps you to generate URLs for Google Maps Static API (https://developers.google.com/maps/documentation/maps-static/overview)

The crate is called gmaps-static and you can find it on GitHub: https://github.com/lmammino/gmaps-static

In this live stream, we explained what the crate does, and then we did some interesting refactoring using trait objects (https://doc.rust-lang.org/reference/types/trait-object.html), type erasure (https://internals.rust-lang.org/t/traits-and-type-erasure-trait-objects/11263), and dynamic dispatch (https://doc.rust-lang.org/1.8.0/book/trait-objects.html) to reduce code duplication in the code responsible for assembling all the query string parameters of the URL.

If you want to follow along with the next live stream, check out my Twitch channel at https://twitch.tv/loige




Other Videos By Luciano Mammino (loige)


2021-09-20Advent of code in Rust - solving year 2020 exercise 18 p2 (Twitch Live 2021-09-20)
2021-09-14Advent of code in Rust - solving year 2020 exercise 18 p1 (Twitch Live 2021-09-13)
2021-09-06Advent of code in Rust - solving year 2020 exercise 17 p2 (Twitch Live 2021-09-06)
2021-08-30Advent of code in Rust - solving year 2020 exercise 17 p1 (Twitch Live 2021-08-30)
2021-08-24Advent of code in Rust - reviewing year 2020 exercise 16 - Part 2 + 17 p1 (Twitch Live 2021-08-23)
2021-08-17Advent of code in Rust - solving year 2020 exercise 16 - Part 2 (Twitch Live 2021-08-16)
2021-08-10Advent of code in Rust - solving year 2020 exercise 16 - Part 1 (Twitch Live 2021-08-09)
2021-07-12Advent of code in Rust - solving year 2020 exercise 15 - Part 1 & Part 2 (Twitch Live 2021-07-12)
2021-07-05Advent of code in Rust - solving year 2020 exercise 14 - Part 2 (Twitch Live 2021-07-05)
2021-06-28Advent of code in Rust - solving year 2020 exercise 14 - Part 1 (Twitch Live 2021-06-28)
2021-06-27Working on Rust crate "gmaps-static" (Google Static Maps API URL builder) - Twitch live 2021-06-27
2021-06-21Advent of code in Rust - solving year 2020 exercise 13 - Part 2 (Twitch Live 2021-06-21)
2021-06-14Advent of code in Rust - solving year 2020 exercise 13 - Part 1 (Twitch Live 2021-06-14)
2021-06-07Advent of code in Rust - solving year 2020 exercise 12 - Part 2 (Twitch Live 2021-06-07)
2021-05-31Advent of code in Rust - solving year 2020 exercise 12 - Part 1 (Twitch Live 2021-05-31)
2021-05-24Advent of code in Rust - solving year 2020 exercise 11 - Part 2 (Twitch Live 2021-05-24)
2021-05-19Advent of code in Rust - solving year 2020 exercise 11 (Twitch Live 2021-05-18)
2020-04-26Middy.js contribution graph



Tags:
rust
live coding
dynamic dispatch
rust crate
pair programming
trait objects
type erasure
google maps api
google maps
library
crate
rustlang