HNHacker News
TopNewBestAskShowJobs

garfij

101 karma · joined October 2, 2012

submissionscomments
garfij··on Microsoft blocks EdgeDeflector to force Windows 11 users into Edge
I'm in no way defending what Microsoft is doing here, but I would like to be able to have different clients for http:// & ftp://. Segregating client software by protocol makes perfect sense
garfij··on Go 1.14.2 and Go 1.13.10 are released
I don't know if I'd qualify the addition of Generics as a "minor change"
garfij··on If You Can Manage a Waffle House, You Can Manage Anything
Searching for the URL on facebook and clicking through from there should still work (if you have facebook)
garfij··on If You Can Manage a Waffle House, You Can Manage Anything
Can confirm that if you do, follow his script. Get the patty melt and a pecan waffle and you'll be happy.
garfij··on Mozilla and independent researchers publish guidelines for an ad archive API
Ah yes, such a simple solution, just get everyone, everywhere to install adblocking software in their browser of choice.

Problem Solved!

garfij··on Go 2 Draft Designs
True about no operator overloading, but that's just syntactical sugar for functions.

I believe you can get integer parameter types by using something like the `convertible` contract seen here https://go.googlesource.com/proposal/+/master/design/go2draf... (unless I'm mistaking what you are saying)

garfij··on Nearly 1,000 Paintings and Drawings by Vincent van Gogh Digitized and Put Online
There are more than 10 on just the first page of search results, so I'm not sure how you're counting https://www.vangoghmuseum.nl/en/search/collection?q=&artist=...
garfij··on Understanding Go panic output
In practice, what you end up doing is adding the `errcheck` linter to your build process and it finds all instances of you not dealing with an error return and it's "just-as-good" as a compile time check.
garfij··on Why Ageism Never Gets Old
It's been said elsewhere in this thread, but there is a distinct difference between the knowledge you accumulate in years of engineering and the constant cycle of learning the new framework.

Anyone can learn a new framework. Making good architectural and design decisions generally takes experience.

garfij··on Eight years of Go
While this is technically true, I've considered `errcheck` to be standard tooling for what feels like forever now, and it does exactly this; make sure you're checking your errors.
garfij··on Angular vs. React vs. Vue
Can you expand on this at all? I've looked at it as a replacement and I understand there are things like prop-types that are missing, but my understanding is that there are other libraries you can can use in addition to preact that give you 100% compatibility.
garfij··on Ask HN: What Go framework for web API are you using in production?
We use this too. It's not bad if all you're ever doing is returning json, but escaping from their `rest.ResponseWriter` to a normal `http.ResponseWriter` is always sad when you need to write out anything else.

That's a pretty good summary of the rest of it for me too...pretty good, but sad that it doesn't adhere to the standard libs `http` interfaces

garfij··on Run your own OAuth2 server
Please elaborate on how DNS has failed? It seems to me that everyone uses DNS all the time and is an essential component of the Internet as we know it, but you and I may have differing notions of failure.
garfij··on Without Systemd
Isn't being somewhat monolithic Linux-like in itself? I've always been under the impression that Linux is a monolith kernel approach to Unix. Unless we're all switching to Hurd, caring about a monolith init system while running the Linux kernel seems philosophically inconsistent.
garfij··on Gopher-OS: A Proof of Concept OS Written in Go
It might have been helpful for GP to note that the quote comes from Linus Torvalds. He said it while he was first developing Linux
garfij··on React v15.5.0
> For each of these new deprecations, we've provided a codemod to automatically migrate your code. They are available as part of the react-codemod project.

They gave you tools to automatically fix any new warnings that came from this. I honestly don't know how they could have made it any easier.

garfij··on A Roadmap to Merging 'dep' into the Go Toolchain
I haven't used Glide (only govendor) so I'm not sure exactly how it works.

Are you checking your dependencies into your repository (we do this, it works very well).

If not, are you pinning specific commit hashes? Is that even possible in Glide?

AFAIK those are the only two ways to get even close to reproducible builds.

garfij··on Textures.js – SVG patterns for Data Visualization
I found C3 (http://c3js.org/) to be a reasonable layer on top of D3
garfij··on I Love Go; I Hate Go
I've run into that as well, but I've since come to favor avoiding that pattern entirely as a code smell.

In your example, you end up modifying the struct value x, even if there was an error. Maybe there are cases where that is the correct behavior, but even then I would advocate for explicitly setting the struct value after handling the error, to make it very clear that it was your intention to do so, rather than doing it be accident.

garfij··on I Love Go; I Hate Go
Just for contrast, when I'm exporting something in Go, using gorename makes it very easy to fix all the references within the package. It works the same when I'm un-exporting something as well. However, when un-exporting I have to go though all other packages that use that identifier and fix the code that used it. Presumably you need to do something similar when you remove the `pub` (i.e. It's not just a simple removing of the pub unless nothing used it to begin with).

Ultimately in the end, for this example it really seems like the same amount of work. You add one word, I run one command.

garfij··on JSON Web Tokens vs. Sessions
If you're at the point where someone can inject random code into your site, you've already lost and have so many more problems than access to localStorage.
garfij··on A language wish list
> Go doesn't, vehemently so.

We seem to have a different notion of what a higher order function is. My understanding is that a higher order function is one that takes one or more functions as arguments, or, returns one or more functions as a result.

Go happily supports this.

garfij··on Recycling is Garbage (1996)
There is more gold in a ton of garbage electronics than there is in a ton of gold ore.

http://pubs.usgs.gov/fs/fs060-01/fs060-01.pdf http://europa.eu/rapid/press-release_SPEECH-14-527_en.htm http://www.bbc.com/news/blogs-magazine-monitor-28802646

garfij··on From Asm.js to WebAssembly
I'm curious what the debugging story for this is going to be? Source maps?
garfij··on Why Go is doomed to succeed
I like how ML is more modern than C, but they were both released in the early 70s.
garfij··on What Is Code?
If you use chrome, you might enjoy this flag

chrome://flags/#enable-tab-audio-muting

garfij··on How Eve Online went to the edge of apocalypse and back
Learning a new language makes you better, and is something you enjoy doing. It's certainly not helping any homeless people out. And then through that you maybe learn about another culture, and it brings cultures imperceptibly closer.

By that same token, by playing Eve you can meet people from other cultures all around the world, share social experiences, and learn about each other. Maybe then you actually go visit those people in real life and you get actually exposed to a new culture and experience how it works first hand. And now you've made the world better by playing Eve.

What do you think about that?

garfij··on JavaScript at 20
Then you swipe.
garfij··on Four days of Go
Ever since I started immediately creating at least one "test" file in my Go projects, I have found that both the unused variable/imports problem, as well as the "freedom to explore" issue have been eliminated for me.

Sure, they will still bite me in that individual test file if the situation arises. It keeps the problem out of the "real" code, however so I don't get it when building. In this way I get to maintain a creative space to test out various apis and do my "print to console" testing, while also keeping my primary code base Go-Clean™.

garfij··on Four days of Go
Goto's can create unreadable code. It's not a unavoidable fact that they have to create unreadable code.

Anything can create unreadable code, but mostly it's bad programmers writing unreadable code, not the syntax they use.

← PreviousPage 2 of 3Next →