Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mikeschinkel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
mikeschinkel
7y ago
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 re
32.
▲
by
mikeschinkel
7y ago
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.
33.
▲
by
mikeschinkel
7y ago
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.
34.
▲
by
mikeschinkel
7y ago
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 bene
35.
▲
by
mikeschinkel
7y ago
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 sup
36.
▲
by
mikeschinkel
7y ago
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:&
37.
▲
by
mikeschinkel
7y ago
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_.
38.
▲
by
mikeschinkel
7y ago
> 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
39.
▲
by
mikeschinkel
7y ago
> 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
40.
▲
by
mikeschinkel
7y ago
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 wit
41.
▲
by
mikeschinkel
9y ago
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
42.
▲
by
mikeschinkel
10y ago
Seems like she did an awful lot of "Strawmanning" in that article: http://www.quickanddirtytips.com/education/grammar/what-is-a...
43.
▲
by
mikeschinkel
10y ago
Spot on!
44.
▲
by
mikeschinkel
11y ago
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?
45.
▲
by
mikeschinkel
11y ago
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.
46.
▲
by
mikeschinkel
11y ago
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. :-)
47.
▲
by
mikeschinkel
11y ago
I lost all respect for him as a decent human being in this fiasco. FWIW.
48.
▲
by
mikeschinkel
11y ago
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
49.
▲
by
mikeschinkel
11y ago
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
50.
▲
by
mikeschinkel
11y ago
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 all
51.
▲
by
mikeschinkel
11y ago
+1
52.
▲
by
mikeschinkel
12y ago
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
53.
▲
by
mikeschinkel
12y ago
> 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 budget
54.
▲
by
mikeschinkel
12y ago
Security by obscurity. Yeah, that's a valid strategy.
55.
▲
by
mikeschinkel
12y ago
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 t
56.
▲
by
mikeschinkel
12y ago
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.
57.
▲
by
mikeschinkel
12y ago
You were either hosting it on the wrong place or using sketchy themes and/or plugins. WordPress core itself is very secure.
58.
▲
by
mikeschinkel
12y ago
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."
59.
▲
by
mikeschinkel
12y ago
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 WordPre
60.
▲
by
mikeschinkel
12y ago
Question is, how is their business model performing? Has WP hurt or helped that? In that end, that is really what matters.
More ›