HNHacker News
TopNewBestAskShowJobs

mikeschinkel

39 karma · joined June 20, 2009

submissionscomments
mikeschinkel··on Declined Proposal: A built-in Go error check function, “try”
Interestingly you _can_ implement method chaining to require a terminal method call i.e. err := GetFoo().SetBar(1).SetBaz(2).Run() and then each chained method would set an error property in the object and if err!=nil then do nothing but return the object, and then the last method could return the error value.

That said, I am not a huge fan of fluent interfaces. I much prefer passing in a struct as an "args" parameter, in most case (but not all.)

mikeschinkel··on Declined Proposal: A built-in Go error check function, “try”
JMTCW, but since I generally program Go in GoLand with the debugger, I have full access to the stack all the time so I have not found this to be a major concern. But YMMV.
mikeschinkel··on Declined Proposal: A built-in Go error check function, “try”
Recently the Go team introduced the xerrors package for improved error management: https://godoc.org/golang.org/x/xerrors

So using these functions is becoming part of what good Go programmers do.

mikeschinkel··on Declined Proposal: A built-in Go error check function, “try”
The full call stack is available in Go but it is up to the developer if they want to include it or not which they can do by creating a custom error type and implementing that to be part of their type. And having the choice seems like a benefit to me.
mikeschinkel··on Declined Proposal: A built-in Go error check function, “try”
I would argue that if you are using boilerplate annotations, you are doing it wrong. If you really do not need to add context, don't add context. But in my code I find that I want to add context about 90% of the time.

But then I am super zealous about making sure my error messages understandable without the need to track down other information. For example, I want to know that (something like) "the config file needs group read permissions" not "file cannot be opened." But maybe others value ease of programming more than I do and are less concerned about error UX than I am?

mikeschinkel··on Declined Proposal: A built-in Go error check function, “try”
Just curious. Do you have a vision for how Go could change to improve your issues? (One of the key problems is nobody could agree on a better approach...)

Also, what editor/IDE do you use? The reason I ask is because of this: https://youtrack.jetbrains.com/issue/GO-7747

mikeschinkel··on Declined Proposal: A built-in Go error check function, “try”
I think it is unfair to label Go with "bad ergonomics."

It might be fair to say the ergonomics are suboptimal for the code _writer_, but I would say they are much closer to optimal for the code _reader_.

mikeschinkel··on JavaScript debuggers are broken
> Nobody is policing tool usage here..

> I would be very concerned to see a developer using the debugger on a daily basis especially if they're using it for state validation.

Those two statements seem to be in conflict.

Or maybe I should say that latter is not "policing" so much as "patronizing" in a condescending manner.

mikeschinkel··on JavaScript debuggers are broken
> Using a debugger only makes sense if you're dealing with a mess. Fix the mess don't build tools to work with it.

I have long thought if I was unable to use a good IDE debugger I would just change careers. Why? Because often I make the wrong assumption about the data that library or 3rd party functions will return. It is not until I can actually see the data that I realize my assumptions were wrong.

Using a debugger is all about learning, and debuggers make learning faster.

I am often able to code rings around my peers on projects. And I believe the reason is not because I am better or smarter but because I use a good IDE and debugger. And they don't.

mikeschinkel··on JavaScript debuggers are broken
I would argue that both Brian W. Kernighan and Rob Pike are exceptionally bright individuals, and likely able to hold considerable more abstract complex thought in their heads than the average person.

One of the bigger blindspots I find with exceptionally bright people is they have no concept of how their brains are capable of things that far exceed the capabilities of the average person.

Or said another way, of course Brian W. Kernighan and Rob Pike think that thinking harder is better than experiencing and seeing. Because they can.

#jmtcw

mikeschinkel··on Twirp: A new RPC framework for Go
It is amazing to me that almost nobody here actually questioned the wisdom of throwing out the time tested benefits of robustness of REST in exchange for that which REST was created to eliminate; the fragility of RPC. And all because using RPC is easier in the moment (vs. over time.)

This reminds of of the old saw "Those who ignore history are doomed to repeat it."

If you are unaware of the benefits, here are a just few links that can explain it:

- https://www.quora.com/What-are-the-advantages-of-REST-over-a...

- https://www.quora.com/What-is-the-difference-between-REST-an...

- http://duncan-cragg.org/blog/post/getting-data-rest-dialogue...

- https://apihandyman.io/do-you-really-know-why-you-prefer-res...

- https://www.quora.com/What-are-the-pros-and-cons-of-REST-ver...

mikeschinkel··on Why we don’t build websites with WordPress
Seems like she did an awful lot of "Strawmanning" in that article:

http://www.quickanddirtytips.com/education/grammar/what-is-a...

mikeschinkel··on Why we don’t build websites with WordPress
Spot on!
mikeschinkel··on Show HN: WP Pluginator – A WordPress Plugin Development tool
Steal? I thought the whole idea of open-source was to allow people to remix and reuse?

Why is their use of Laravel's code not applauded instead of being derided?

mikeschinkel··on Thesis, Automattic, and WordPress: A Conflict of Ideology
His willingness to settle shows a level of understanding regarding the dollar, time and personal focus cost of lawsuits even for those who will win. It says nothing about the merits of a potential lawsuit.
mikeschinkel··on Thesis, Automattic, and WordPress: A Conflict of Ideology
When you have software that runs on 23% of the web, it is simply impossible to test for all permutations. Try it yourself sometime if you don't believe me. :-)
mikeschinkel··on Thesis, Automattic, and WordPress: A Conflict of Ideology
I lost all respect for him as a decent human being in this fiasco. FWIW.
mikeschinkel··on Thesis, Automattic, and WordPress: A Conflict of Ideology
There are pros and cons to WordPress' database structure. While it may take "a series of SQL gymnastics just to retrieve the relevant data" it's database structure is incredibly resilient to the changing requirements of different users. A "better" database structure would almost certainly be too fragile to meet the needs of as many users as WordPress does.
mikeschinkel··on Thesis, Automattic, and WordPress: A Conflict of Ideology
Having businesses that are built just to explain software is not a sign of failure, it is a sign of success. Microsoft Windows has the same and no one could say that they were not a success for over two decades. It means that WordPress has "crossed the chasm" into the "early majority."
mikeschinkel··on In Defence of WordPress
A language designer's gastrointestinal state is orthogonal to a programming language's usefulness and usability. PHP is both of the latter in part by virtue of it's ubiquity.

Further, many years development experience has allowed me to appreciate that the benefits of a programming language are often inversely proportional to it's level of design purity. And the greater the longevity of a widely-useful programming language, the more haters it will have.

mikeschinkel··on In Defence of WordPress
+1
mikeschinkel··on Our Director of Engineering on the new Wired.com
And yours seems opinion based. I'd argue WordPress has a much stronger community in part because is has around 10x more community members. :-p
mikeschinkel··on Our Director of Engineering on the new Wired.com
> WP is bad for big businesses because it's an serious attack vector.

That's FUD. WordPress is not hard to secure if you follow some best practices and do not use crap plugins.

That said, one would hope with the projects budgets that big businesses offer to agencies that agencies would hire competent people to build their sites.

Full disclosure: that's what we do; build WP sites for agencies on behalf their big business clients.

mikeschinkel··on Our Director of Engineering on the new Wired.com
Security by obscurity. Yeah, that's a valid strategy.
mikeschinkel··on Our Director of Engineering on the new Wired.com
I don't understand why you say WordPress is difficult to secure. Just disconnect the ethernet cable, turn off the wifi and lock the machine in a steel box. Or you can go with absolute security and just disconnect the power cable from the machine; problem solved.
mikeschinkel··on Layers – A simple WordPress site builder
Digital Ocean's website is following a pretty standard design trend that has emerged over the past few years, the long scoll page with numerous horizontal sections. Lots of sites look like that these days.
mikeschinkel··on Layers – A simple WordPress site builder
You were either hosting it on the wrong place or using sketchy themes and/or plugins. WordPress core itself is very secure.
mikeschinkel··on Layers – A simple WordPress site builder
Further commentary, you could also instead say "Built with a look and feel that would make you think it is built into WordPress core." But not "Built into WordPress core."
mikeschinkel··on Layers – A simple WordPress site builder
It is very misleading to say "Built into WordPress core." It's actually factually incorrect, and it took me a while to decipher what you meant. Instead you should say "The First Major Page Builder to Leverage the WordPress Customizer" (assuming Layers actually is the first.)
mikeschinkel··on Layers – A simple WordPress site builder
Question is, how is their business model performing? Has WP hurt or helped that? In that end, that is really what matters.
← PreviousPage 2 of 3Next →