Web Dev with Golang Anti-Textbook

Learning and science

programming book

SHOW HN2016

158points
57comments
#204of 2,264 in 2016
Top 10%of 2016 by points

How HN took it

CuriousMostly questions and neutral comments

3 positive, 12 neutral or asking, 1 mixed, 4 critical, out of 20 comments about the project. Thread score +0.01.

Docs: 2 for, 2 againstPerformance: 0 for, 1 againstIdea: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Useful, approachable introduction to Go web basics

    From 2 comments
    • I've been using this, found it through Google awhile back. I didn't want a framework and this helps. I had to search more for Redis and PG and Solr but the front-end stuff here…
      edoceo on HN
    • Side comment, and I'm sure it has been said before, but GitBook is beautiful. It could replace textbooks, cheap $40 tablets can render HTML just fine. I'm going to read this…
      emehrkay on HN

Objections

  • Some statements about Go methods and functions are incorrect

    From 1 comment
    • I applaud the approach and the effort, but there are some basic things in this book that are just not correct, or are difficult to read. One random page that I jumped to:…
      chrisbroadfoot on HN
  • Uses text/template instead of html/template, risking escaping issues

    From 2 comments
    • Just looking at the template bit... why do you use text/template and not html/template? I get that you wrote the templates, you trust them, you don't want the HTML escaping,…
      buro9 on HN
    • Usually that's a goimports gotcha. Definitely want to be using html/template though.
      astockwell on HN
  • Missing deployment, static file, and reverse proxy coverage

    From 2 comments
    • I much prefer to serve Go applications through an NGINX reverse proxy. It deals with a lot of stuff for you (static assets, SSL, logging, etc.) and lets you focus on developing…
      eljimmy on HN
    • It would be great to see anything on deployment added to this.
      enahs-sf on HN

Requests

  • Add a chapter on reverse proxy setup such as nginx

    From 1 comment
    • I much prefer to serve Go applications through an NGINX reverse proxy. It deals with a lot of stuff for you (static assets, SSL, logging, etc.) and lets you focus on developing…
      eljimmy on HN
  • Cover PostgreSQL or MySQL instead of SQLite

    From 1 comment
    • Don't you think that teaching how to use it with mysql or postegres would be more useful than sqlite?
      bezzi on HN
  • Add deployment content

    From 1 comment
    • It would be great to see anything on deployment added to this.
      enahs-sf on HN
  • Add graceful restarts and internationalisation

    From 2 comments
    • You may want to mention something about Graceful restarts to avoid downtime when upgrading. A great library to achieve this is: https://github.com/facebookgo/grace
      caleblloyd on HN
    • Just looking at the template bit... why do you use text/template and not html/template? I get that you wrote the templates, you trust them, you don't want the HTML escaping,…
      buro9 on HN

Questions

  • Why use text/template rather than html/template

    From 1 comment
    • Just looking at the template bit... why do you use text/template and not html/template? I get that you wrote the templates, you trust them, you don't want the HTML escaping,…
      buro9 on HN
  • Why SQLite rather than a server database

    From 1 comment
    • Don't you think that teaching how to use it with mysql or postegres would be more useful than sqlite?
      bezzi on HN

Alternatives named

  • Caddy web server

    From 1 comment
    • With Caddy[0] around, the only thing that keeps me tied to nginx is its performance and tried-and-tested-ness. Waiting to see someone do some detailed benchmarks on Caddy before…
      wanda on HN
  • GORM ORM

    From 1 comment
    • Like you describe in the book, I had written a web-app in Go in which I was doing all the SQL handling manually, I found that it became very difficult to maintain this over time…
      jlubawy on HN
  • Manning's Go book

    From 1 comment
    • The manning book uses vanilla Go too, but it's not free. However, it's a pretty good book.
      kevindeasis on HN
  • Astaxie's Go web book

    From 1 comment
    • Well mine isn't the first book created with git, my book is actually inspired from astaxie's book on Go, that too is on github
      thewhitetulip on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/12232293)