monkinetic the blog

Posts tagged with 'golang' (10 posts)

Steve Ivy

One thing I remain impressed about with #golang: I almost never see “alternate libraries” for things like http, networking, html parsing. The builtins are good and well-documented, and there’s a culture of using what’s provided.

~ # 15:49 ~

Steve Ivy

Back to a nerd topic: implemented some of the #webmention server in my blog software this evening, and rearchitected the storage layer with an interface to make testing easier. #golang

~ # 05:09 ~

Steve Ivy

Gotta say passing variable-length values to SQL’s “in” syntax in #golang is UUUUUGLY

~ # 16:59 ~

Learning Can Be... Boring?

http://monkinetic.blog/uploads/bored.png

Ran into a friend today at church and he asked me “hey I’m trying to learn Python, do you have any good sites or books to recommend? I’m kinda… bored.”

Now some of us geeks can’t imagine being bored learning something new, but I went through this when I first started learning Go. I had decided I wanted to learn a new programming language, and Rust was way too… Rust, so I picked Go and started building a small o-nothing web app. I got part way in an realized that I had no interest in what I was doing, and it (and some bits of Go that hadn’t matured) was killing my fun. So I put it down.

Fast forward to this year. I was ready to pick up Go again, but this time I also knew that I wanted to start writing again, and that the friction in my blogging process was killing my joy there, too. So I decided to write my own blog software (see #goldfrog), and I was going to write it in Go.

Suddenly I was energized to learn, because I had all these feature ideas for the site, and I had to learn the #golang techniques for tasks I’d only one in #python before. Also, it got me into the golang newbies Slack, and connecting with a community - for me at least - helps.

So my advice to my friend was:

  • Find a project you’re passionate about, or at least really interested in
  • Be willing to re-learn things you think you already know
  • Find a #community!

#goldfrog #golang #python #community

Steve Ivy

#golangs crappy regexp

~ # 12:38 ~

Steve Ivy

For my next #indieweb trick: I’m working on adding support for Webmention in #goldfrog.

https://github.com/sivy/goldfrog/issues/9

Client:

  • Endpoint discovery (header, link, a)
  • Send basic webmentions
  • Send “special” webmentions (ie Likes)

Server:

  • Provide discovery (header, link, a)
  • Receive basic webmentions
  • Receive “special” webmentions (ie Likes)

Ultimately I’d like to break out my webmention code into a releasable #golang module that can provide reusable http.Handler functions that can be plugged into any Go mux that supports them.

~ # 00:00 ~

Steve Ivy

Go By Example

Go By Example might be one of the best getting-started resource I’ve ever seen for a programming language.

Huge thanks to Mark McGranaghan for giving this to the community.

#golang #newbie #documentation

https://t.co/jBjzA9UALb

~ # 18:33 ~

Steve Ivy

I’m calling it goldfrog,it’s going to be written in #golang, which isn’t actually important.

~ # 18:06 ~