HNHacker News
TopNewBestAskShowJobs

wizhi

50 karma · joined March 30, 2021

submissionscomments
wizhi··on I wrote a Ruby extension in Zig
I've never used D, but aren't you kind of making the author's point?

If you disable GC in D, and end up with something equivalent to Zig, then why not use Zig?

wizhi··on WikiLeaks is struggling to stay online as millions of documents disappear
How is Tor compromised?
wizhi··on Go Style
Assuming Car() is a receiver function, you should be able to infer "how" the Car is "fetched" based on the type receiving the function call.

func (d CarDB) func Car() (Car, error)

The above tells you everything you need to know. As for usage, again, the type and now also the variable names should let you infer everything you need.

func f(db *CarDB) { c, _ := db.Car() }

The function name makes as little of a guarantee as to the underlying "how" as these other factors.

wizhi··on GitHub gender-inclusive language bot – postmortem FAQ
You'd think, that someone who has suffered would not wish for others to suffer.
wizhi··on Do Not Recommend: User Provided Primary Keys
>Because now you depend on an UUID library and its attack surface.

I can appreciate reducing dependencies, but this is bordering on paranoia.

wizhi··on Textile Markup Language
Markdown simply isn't meant for that kind of content. The idea of markdown, is that you end up with a text that is readable by itself, and renderable in more simple graphical environments.

No one should ever ask themselves "how do I do image positioning" or "how do I add pagination" when dealing with markdown. That's just not what it's good for.

Imagine having to write comments on HN using LaTeX.

wizhi··on Google Pixel 6 and Pixel 6 Pro
>If she had an Android anything, I'd be spending at least an hour per week on tech support.

I highly, highly, highly doubt that.

Considering how static phones honestly are after initial setup, when you've installed the apps you need and configured the few things you need configuring, you never touch anything that's not an app.

wizhi··on The Single-Page-App Morality Play
Except now replace "platform" with browser, and you have the exact same dilemma as if we still made desktop applications.

It's sad how many "web apps" (and even more regular sites) only work in Chrome - try using Firefox or any non major browser, and quite a lot of the web simply doesn't work.

wizhi··on Are dynamic languages going to replace static languages? (2003)
What makes Go's interfaces dynamic in nature?
wizhi··on Google can ban your Android app if they think you’ve clicked on your own ads
How is Porkbun related to China? I thought they were US based.
wizhi··on Down the Golang Nil Rabbit Hole
Do you possibly have any example projects you would be willing to share?

I've been getting into Go for the past couple of months, but I still struggle with this.

← PreviousPage 2 of 2