Top all-time · #6714
Justinas Stankevičius
Personal blog · justinas.orgprogramming
Justinas Stankevičius's personal blog at justinas.org covers programming. Since 2013, 12 different Hacker News readers have linked it 15 times, most often “The bizarre world of V”. The last post was in 2024, but the archive is still widely read.
Too few sampled comments (8) to say how often HN recommends it.?
Why HN links it
HN readers link Justinas Stankevičius's blog for posts on Go web development, such as writing HTTP middleware with the standard library, and a long piece on the V programming language controversy.
Summarised by Claude from a sample of 8 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- The bizarre world of V6 people · 7 mentions · first linked 2024-09-25
- Writing HTTP Middleware in Go2 people · 2 mentions · first linked 2013-10-19
- Embrace Go's HTTP Tools2 people · 2 mentions · first linked 2013-12-08
What Hacker News says?
The first thing people tend to do is to replace the default, very primitive "mux" with a router that more closely aligns with modern expectations, such as httprouter ( https://github.com/julienschmidt/httprouter ) or chi ( https://github.com/pressly/chi ). These libraries also support middleware wrapping [1], a technique that the default mux supports but doesn't help you with. For example, adding CORS headers or log…
Comment linking /writing-http-middleware-in-go/
on “Writing web applications using only the Go Standard Library”Submitted Writing HTTP Middleware in Go as a story · 112 points
HN discussionTo those who say frameworks are needed because the stdlib is not enough: No, the stdlib defines very clear interfaces that libraries can implement. The result is that you can drag and drop middlewares from multiple packages into your codebase, because they all conform to the universal middleware signature `func(http.Handler) http.Handler`. Want CSRF? Want Sessions? Want Auth? They all exist as separate packages (che…
Comment linking /embrace-gos-http-tools
on “Go in Production – Lessons Learned”Submitted Writing HTTP Middleware in Go as a story · 13 points
HN discussionAuthor here. Thanks for your input, but I'd like to clarify some points. The blog post's intent was not to show how to implement your own middleware mechanism in a web framework you're writing, but how to create HTTP middleware using the standard Go net/http interface. Your proposed middleware type might feel a bit nicer, but it disregards the standard net/http interface and makes your middleware incompatible with i…
Comment linking /embrace-gos-http-tools/
on “Writing HTTP Middleware in Go”Submitted Best Practices for Errors in Go as a story · 8 points
HN discussionFor a longer read: https://justinas.org/the-bizarre-world-of-v
Comment linking /the-bizarre-world-of-v
on “Vinix – A modern operating system written in V”Submitted The bizarre world of V as a story · 7 points
HN discussionI have no opinion on the subject but I have found this to be an interesting dive into the supposed controversy: https://justinas.org/the-bizarre-world-of-v
Comment linking /the-bizarre-world-of-v
on “Vinix – A modern operating system written in V”Submitted The bizarre world of the V Programming Language as a story · 6 points
HN discussionAt least as of 2024 [1], V relies heavily on a GC for memory management, so I wouldn't really call it low-level. [1]: https://justinas.org/the-bizarre-world-of-v#memory-unmanagem...
Comment linking /the-bizarre-world-of-v
on “Ask HN: Memory-safe low level languages?”Submitted Embrace Go's HTTP Tools as a story · 4 points
HN discussionOh, hello again. :) I have no desire to get into a discussion. You can find plenty of details in feedback from people who have given your language a try over the years. Here's a blog post from September 2024[1]. A quick glance at the open issues yields [2], and many others if you search for "immutable". To be fair, open issues are a sign of interest and people wanting to move the project forward, which is good. I th…
Comment linking /the-bizarre-world-of-v
on “TUI editor and Vim/Neovim alternative”Submitted The bizarre world of V (2024) as a story · 2 points
HN discussionThis sort of stuff: https://justinas.org/the-bizarre-world-of-v
Comment linking /the-bizarre-world-of-v
on “The V Programming Language”