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

推荐订阅源

D
DataBreaches.Net
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
腾讯CDC
博客园 - Franky
Engineering at Meta
Engineering at Meta
C
Check Point Blog
T
The Blog of Author Tim Ferriss
有赞技术团队
有赞技术团队
Microsoft Azure Blog
Microsoft Azure Blog
MyScale Blog
MyScale Blog
I
InfoQ
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学

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.