惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
Recent Announcements
Recent Announcements
B
Blog
D
Docker
V
V2EX
GbyAI
GbyAI
L
LangChain Blog
博客园 - Franky
U
Unit 42
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Vercel News
Vercel News
博客园_首页
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
量子位
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客

Stonecharioteer on Tech

I Traced My Traffic Through a Home Tailscale Exit Node What Was I Reading Last? In Three Not-So-Easy Pieces Dogfooding Is Hard Code blocks in your books, finally GoForGo v0.9.0 Merrilin - We built an app to read books I use a Macbook now Data Structures & Algorithms - Preparing for Interviews Using a local DNS namespace for local service discovery Direction KOllector - Publishing KOReader Highlights gbt: branches touched in the last 24 hours A Soiree into Symbols in Ruby Some Smalltalk about Ruby Loops Ruby Blocks Returning from Ruby Blocks, Procs and Lambdas My Linux Laptop Finally Works: How Claude Helped Me Fix Years of Annoyances TIL: Watchexec - Modern File Watching for Development Workflows A Less Busy Mind GoForGo - Learn Go through live examples Migrating My Old Blog to Hugo with Claude The Qtile Window Manager: A Python-Powered Tiling Experience Read the RFCs that Built the Internet Py-x-Protobuf - Or How I Learned to Stop Worrying and Love Protocol Buffers Python Reverse a List New Beginnings Leaving ChainSafe Systems Screen Lock for Cinnamon Desktop using Zenity and Terminal Commands Crews Not Teams A System for Getting Better at LeetCode
Learning Golang
2021-12-28 · via Stonecharioteer on Tech

Despite my numerous failed attempts at learning golang, I’ve decided to bite the bullet and try yet again. This time, Learn Go With Tests is my favorite resource.

This is a great “book” that sticks to the principles of TDD with gusto (do people still say gusto?). I’m having fun working on it and will have more thoughts later. I’ve already written more golang than I ever have. I’ve tried A Tour of Golang before and never got around to finishing it. This seems much more structured and might be my favorite new way of learning how to learn a programming language.

Learning Goals

To help me measure my journey, I’m going to target being able to do the following things:

1. Command Line Application

  • Do what I’m able to in Python using Click
  • Read a TOML file for config
  • Use whatever is the equivalent of Pathlib to find ~/.config/APPNAME/default.toml
  • Read environment variables to get custom settings files
  • Read environment variables to get overrides for custom settings

2. Interact with an API

  • Create a CLI (again) which interacts with some public API (Maybe the Starwars or Pokemon API)
  • Find the equivalent of retrying to backoff from requests
  • Find out how to pass Authentication headers/tokens
  • Multiprocessing? Goroutines?

3. Create a REST API

  • Create a simple HTTP API
  • Write to SQL Lite
  • Write to Redis
  • Write to RabbitMQ
  • How would I do background tasks?

For now, this is all I want to achieve learning Golang. I think the CLI part takes higher precedence since I mostly write CLIs. I’d like to see if I am able to shift to Golang for everything I do at work.