https://gitlab.com/lyda/template-go-api

cross-posted from: https://programming.dev/post/5161514 > A template project for creating OpenAPI document driven API servers in Go.

2
0
golang
Golang lyda Now 87%
Go API server
https://gitlab.com/lyda/template-go-api

A template project for creating OpenAPI document driven API servers in Go.

6
0
Conventional Commits: A specification for adding human and machine readable meaning to commit messages
  • lyda lyda Now 100%

    And then

    git ci -am "Addressed performance issue in flurbin module
    
    The flubin module was designed as a successor to the flurbar module
    which took in...
    [...500 line essay on the hostory, problem and solution deleted...]
    
    Hopefully this will fully fix the issue discussed."
    

    for a one character change that adds an additional, and unrequired, semicolon.

    1
  • The Absolute Minimum Every Software Developer Must Know About Unicode in 2023 (Still No Excuses!)
  • lyda lyda Now 100%

    js console: document.querySelector('.pointers').hidden=true

    5
  • Browse and Discover Manpages
  • lyda lyda Now 100%

    ls /usr/share/man/man?/* will show you all the man pages on your system. I used to pick ones at random.

    Originally there were a number of manuals. Manual 1 had user commands. Manual 2 had system calls. Etc. You can type man NUMBER intro to read about that manual. You can also use man -k or appropos but I've also just used grep. These days they're compressed so zgrep.

    3
  • The Absolute Minimum Every Software Developer Must Know About Unicode in 2023 (Still No Excuses!)
  • lyda lyda Now 100%

    The mouse pointer background is kinda a dick move. Good article. but the background is annoying for tired old eyes - which I assume are a target demographic for that article.

    12
  • How to affect the order of operations for "go generate"
  • lyda lyda Now 100%

    Good answers. I like these. I like the more than one command in a file, that will work. And yes, should have read the source!

    2
  • https://pkg.go.dev/cmd/go/internal/generate

    Say I have `go:generate` directives in two files: one in the `foo/` directory and one in the `mock/` directory. The generated `mock` code will need data structures from the generated code in the `foo` module. Will `go generate ./...` reliably generate code in the correct order? What do I need to do to make that happen?

    10
    3
    Bingo for reproducible builds
  • lyda lyda Now 100%

    Well, nix would be an entire operating system. This is just for a build system to specify the versions of the tools to use.

    1
  • github.com

    Wonder if anyone here has been using bingo for reproducible builds. I've found it to be really good and wish I could find similar tooling for things like python for tools like yamllint.

    14
    6
    https://phrye.com/tools/vcsh/

    Back in 2016 I finally moved from mercurial to a git-based tool for version controlling my home dir. I now have six repos. The link is to my first article on it. I use tagging on my blog so you can find the other vcsh articles from there. It makes switching machines super-simple and encourages me to write utilities to make my life easier.

    4
    0
    Fossil: Fossil Versus Git
  • lyda lyda Now 100%

    I love that fossil exists. I would never use it, but I'm glad cranks have something to work on.

    1
  • Signing Commits in Git, Explained
  • lyda lyda Now 100%

    I have never heard proper reasoning for squashing commits. I don't think sanitized history is useful in any context. Seeing the thought process that went into building something has been repeatedly useful in debugging things. It's also useful to me as a software engineering manager to help folks on my team get better. I could care less how "pretty" git log looks, but I care a hell of a lot about what git diff and git blame tell me. They help me figure out where issues actually are and how they came to be.

    2
  • Signing Commits in Git, Explained
  • lyda lyda Now 87%

    This is yet another reason not to squash commits.

    6
  • Dotfiles matter
  • lyda lyda Now 100%

    I use vcsh to manage my home directory - including but not limited to dot files. Written a number of posts on it over the years: https://phrye.com/tags/vcsh/

    1
  • What do y'all think about mailing lists and IRC as sole communication channels?
  • lyda lyda Now 100%

    Projects like that make me want to create a uucp network and so I can email a bang path address to get my patch.

    1
  • Memoization in Go
  • lyda lyda Now 100%

    I suppose I should be clearer on the features I want. I'd want to be able to store my cache in memcached or redis and I want the cached data to expire. So for one call, I might want to keep it for five minutes, but another one can stick around for 24 hours.

    The memorize package falls down there.

    2
  • https://en.wikipedia.org/wiki/Memoization

    I'm curious what people are doing for memoization in #golang. I've looked around and haven't found great libraries for this which makes me wonder if I'm pursuing the wrong solution to a problem. Caching the return values of functions based on the params has been useful to reduce load on downstream services, make things a bit faster on average and even add some level of consistency in functions that can be highly variable (which is an odd use case but nonethelass useful). But maybe there's a different pattern/idiom that's used in the Go ecosystem?

    11
    3
    lyda Now
    6 13

    Kevin Lyda

    lyda@ programming.dev

    Software developer in the West of Ireland. Can also be found at https://mastodon.ie/@lyda