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

推荐订阅源

B
Blog RSS Feed
博客园 - 叶小钗
F
Fortinet All Blogs
GbyAI
GbyAI
Martin Fowler
Martin Fowler
博客园 - 聂微东
I
InfoQ
B
Blog
IT之家
IT之家
美团技术团队
L
LangChain Blog
小众软件
小众软件
C
Check Point Blog
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
Last Week in AI
Last Week in AI
A
About on SuperTechFans
博客园 - Franky
P
Proofpoint News Feed
罗磊的独立博客
月光博客
月光博客
V
Visual Studio Blog
MyScale Blog
MyScale Blog

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.