← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 100
  1. I run Unifi network gear in my house.

  2. A coworker turned me onto this lovely technique the other day.

  3. I wore Invisalign braces from January of 2022 to early 2023.

  4. Using git worktrees

    Have you ever been developing on a feature branch and needed to look at a separate branch on the same repo?

  5. Derek Sivers recently wrote a post explaining how he backups his computers.

  6. About

    I am a lifelong learner working in lovely Seattle, Washington as a software developer.

  7. It is often useful to run a subset of the tests in a Go project.

  8. Today I needed to use the maximum unsigned 64-bit integer value possible in Golang.

  9. I learned something new from Julia Evans today.

  10. Go build tags

    Today I learned about Go build tags.

  11. Now that I’ve been writing Golang for a while, when I start a new project, I typically know the sort of layout I’m looking for.

  12. I was not very familiar with checking an error’s type in Golang, so I spent a few minutes learning about it today.

  13. I’ve also been thinking more about unnecessary allocations in my Go code and how to avoid them by pre-declaring the length of a slice up front.

  14. I recently went through How To Use Templates in Go to refresh my memory on Golang templates.

  15. While watching a talk by Rob Pike I learned today something about Goroutines which surprised me: Goroutines outlive their calling function.

  16. Go 1.18 added a feature to easily get the Git commit version that the binary was built from.

  17. The other day I ran into a situation where I wanted my function to block until it received data from a Go channel.

  18. Example 1 In the below code, <-messages will block until it gets something on the channel.

  19. At work, I’ve been using both Golang and Ruby to render Nomad jobspec files in a consistent manner across environments.

  20. These are useful and I’m putting them here so I can find them easily wherever I am.

  21. Last week, I was working on some Python at work and I found myself wishing for an equivalent to Golang’s structs.

  22. nil maps in Golang

    I’ve been a bit confused for a while over when a map in Golang gets created with a value of nil (its zero value) and when it does not, so I’m writing this to help me remember.

  23. My wife and I recently went to the Hawaiin islands for a few days for a vacatoin.

  24. Built-in Go HTTP server

    Go has a built-in HTTP server in net/http.

  25. The other day, I was linting my Go code with golangci-lint when I got this error: File is not `goimports`-ed (goimports) I examined the file and found nothing amiss, but the linter insisted something was wrong.

  26. Linux load average

    This post documents the high level concepts I need to remember about *nix Load Average.

  27. Old and new workflows My dev workflow used to look like this: Write some code and save it Change to my Terminal window Up-arrow to find my command to run unit tests (typically make test) Press Enter Wait for tests to run and examine test output This worked

  28. Go and pass by value

    Go normally uses pass-by-value for function calls.

  29. Constants in Go

    Constants syntax I always have a hard time remembering the syntax of declaring constants in Go.

  30. You can open the a file from the macOS CLI with the command open.

  31. Python type hints

    After working with Go for a while, one of the biggest drawbacks to Python for me is that the types of parameters to functions and methods are completely opaque without good documentation.

  32. Golang has mutexes (short for mutually exclusion) to manage concurrent access to a shared object via multiple goroutines.

  33. Working with Goroutines is simple.

  34. Closures in Go

    In Go, it’s pretty easy to write an anonymous function. package main import "fmt" func main() { func(s string){ fmt.Println("s is:", s) }("hello world") } Running the above code produces: $ go run main.go s is: hello world You can even assign the…

  35. Generics in Go 1.18

    In Go 1.18, we get access to Genrics.

  36. Go defer

    defer in go is used to run a function later on.

  37. Empty Go Interfaces

    When declaring function parameters in Go, you must type the incoming data.

  38. Today I accidentally created a file whose name had a newline character in it.

  39. I recently was having to work with Ansible for several days to deploy changes globally across prod.

  40. Today I was using Ansible’s tower_job_template module in a playbook.

  41. Setting up my blog has always been easy.

  42. Today a coworker posed an interesting question to me.

  43. If you’ve known me for a while, you probably know that I have a soap box.

  44. Notes on sed

    I’ve always been a bit hit-or-miss with sed and haven’t understood it to the level to which I wanted.

  45. A few days ago, I finished my Digital Declutter Experiment.

  46. TCL - Part 2

    Lists (Continued) Appending to lists is simple with lappend: Note: lappend takes just the name of the list.

  47. I recently finished “Digital Essentialism” by Cal Newport.

  48. TCL - Part 1

    I’ve been improving my knowledge of TCL since I’m starting to work with a lot of iRules (which are based on TCL) in my current position.

  49. In no particular order, here are some things which delight me: Books & Blogs Cal Newport’s books and blog This man has significantly improved my working life and made me more effective in general.

  50. Initial commit

    I’ve tried this blog thing before.