Arsh's Newsletter

Archives
January 27, 2025

“We follow the Codes not because they bring gain, but because we loathe the people we would otherwise become.” - Dalinar, The Way Of Kings

Interesting links for the week

Instead of sending a bunch of random links your way, these are all things I’ve read or seen and found interesting and relevant enough to share!

  • The Secret About Big Software Companies

  • Optimizing in-process gRPC with Go 1.23 Iterators and Coroutines

  • You Don’t Need To Pay for the OpenAI API During Development

Something that sparked my curiosity

In all honesty, this week wasn’t very “tech” heavy for me. I spent most of it reading this high fantasy novel called The Way of Kings. It’s a slightly longer read, but I highly highly recommend checking it out if you’re even remotely interested in the fantasy genre or are just looking to get out of a reading slump.

Inspired by finishing reading that book, I spent some time improving the HTML template for my website where I store my favorite quotes: https://quotes.arsh.wtf/

All this is implemented using Hugo and Decap CMS! (Let me know if you’d like a guide on how to do it.)

Golang puzzle of the week

You are a young Jedi Padawan tasked with helping the Jedi Council organize a list of planets in the galaxy. The Council wants you to write a Go program to filter out planets that are under the control of the Dark Side and calculate the total population of the remaining planets.

Here’s your starter code:

package main

import "fmt"

// Planet represents a planet in the galaxy
type Planet struct {
    Name                 string
    Population           int
    UnderDarkSideControl bool
}

func main() {
    // List of planets
    planets := []Planet{
        {Name: "Tatooine", Population: 200000, UnderDarkSideControl: true},
        {Name: "Alderaan", Population: 2000000, UnderDarkSideControl: false},
        {Name: "Coruscant", Population: 1000000000, UnderDarkSideControl: false},
        {Name: "Dathomir", Population: 50000, UnderDarkSideControl: true},
        {Name: "Naboo", Population: 4500000, UnderDarkSideControl: false},
    }

    // TODO: Filter out planets under Dark Side control
    // TODO: Calculate the total population of the remaining planets
    // TODO: Print the names of the safe planets and the total population
}

This is what your output should look like:

Safe Planets: [Alderaan Coruscant Naboo]
Total Population: 1,004,500,000

You can write solutions to this in the Go Playground and share the link with me on LinkedIn to get a shoutout in next week’s newsletter!

Who’s hiring?

  • env0 is hiring for a remote Solutions Architect role in the US

  • SigNoz is hiring for a remote Senior Frontend Engineer in India

  • Shopify is hiring for Site Reliability Engineers globally.

Don't miss what's next. Subscribe to Arsh's Newsletter:
Share this email:
Share on Facebook Share on Twitter Share on LinkedIn Share on Hacker News Share on Reddit Share via email
arshsharma.com
Twitter
LinkedIn
Powered by Buttondown, the easiest way to start and grow your newsletter.