Live data from Hacker News

Viewing profile — joeshaw

joeshaw

HN member
Joined
Wed, Aug 12, 2009, 3:35 AM UTC
HN karma
739
Public activity
117 items

About joeshaw

https://joeshaw.org https://twitter.com/joeshaw https://github.com/joeshaw

[ my public key: https://keybase.io/joeshaw; my proof: https://keybase.io/joeshaw/sigs/AGXxr0IGC2jnOAVfKsaUq_-D8FtMdgQjctgtTFC8WSE ]

Recent public activity

  1. comment
    Comment #41501698

    This is a contrived example, but imagine a situation where I have a file I want to write on disk and then have a reference to it in a database. If I have a flow like: func UpdateUs…

  2. comment
    Comment #41500614

    OP here. I appreciate the comments I've read here, and it might inspire a new blog post: "Defer is for resource cleanup, not error handling."

  3. comment
    Comment #41500597

    OP here. Another commenter pointed out that `errors.Join` didn't exist when I wrote this, but I wouldn't have changed my guidance if it had. The core issue here is that you want to…

  4. comment
    Comment #41480840

    I caution against this approach, as you are not really dealing with the error when it occurs. If the work you do after the defer has other side effects, you may have just gotten yo…

  5. comment
    Comment #16430339

    I'm fine with vendoring going away as long as we can check these new modules into version control and have vgo use them. Adding a caching proxy adds too much infrastructure for mos…

  6. comment
    Comment #15725278

    In net/http, if a handler panics you don't want it to bring down your entire application. For more info, see https://golang.org/pkg/net/http/#Handler The encoding/json package is i…

  7. comment
    Comment #15723564

    > I think there are plans to make an official debugger it just hasn't been prioritized. There was a nascent project inside the Go team a couple of years ago (called ergo I think?) …

  8. comment
    Comment #15723345

    My explanation for why is the following sentence: > If a function could fail, the function must return an error as its last return value. The caller should immediately check for er…

  9. comment
    Comment #12701325

    All Fastly customers that use it to terminate SSL/TLS are also affected. Among them are Wired and Buzzfeed (ones I've run into this morning).

  10. comment
    Comment #11405578

    Mono was started by Miguel at Ximian, and most of the Mono code was owned by Ximian. Ximian was bought by Novell and with it, all the Ximian-owned Mono code. (I don't remember if a…

  11. comment
    Comment #10081470

    On a related note, there are an alarmingly large number of hosts listening on port 23 (unencrypted telnet) on the internet: https://www.shodan.io/search?query=port%3A23 Most of the…

  12. comment
    Comment #10056195

    I'm one of the developers of http://imagefly.io . We are still very much active and doing development on the service. We have paying customers and our own photo products depend hea…

  13. comment
    Comment #9839846

    It may correct itself as you zoom in. It seems to group geographic areas together in somewhat centralized locations to avoid having too many bubbles at a particular zoom level. If …

  14. comment
    Comment #9381038

    The app doesn't matter anymore. Twitter is the app now (and whomever else they license their points-of-interest service to). Consumers of their service likely feed back check-in-eq…

  15. comment
    Comment #9380870

    The app isn't the product. The points-of-interest database they built from their apps' users is the product. And that is what they're now selling to companies like Twitter. Twitter…

  16. comment
    Comment #9380836

    Yes! I can't believe that nobody else has made this point. I am as disappointed in the pivot of the app as everyone else, but it's hardly the sign of impending death the post (and …

  17. comment
    Comment #8976659

    I'm not sure what the market is like in Cleveland, but in Columbus there is a great demand for web developers. I work out of a coworking place there with several freelance web deve…

  18. comment
    Comment #8448531

    Use `goimports` as a save hook in your editor. It analyzes your code and inserts/removes import lines as needed. Other than the occasional need to fix up an ambiguous import that i…

  19. comment
    Comment #8366989

    The DHCP attack vector is the one that is scariest to me. We know that dhclient on Linux is vulnerable, but the number of unpatched Linux machines on a public wifi network will lik…

  20. story
  21. comment
    Comment #8036224

    It appears so. Probably worth filing a bug about this, but I suspect that something about mosh's terminal emulation filters out the VT100 command sequences tmux uses to perform the…

  22. comment
    Comment #8036193

    The issue I've always had with the tmux integration is that it doesn't support multiple sessions simultaneously. I am typically moshed into several hosts and running tmux on each o…

  23. comment
    Comment #7662413

    I posted a comment about this to the blog, but I released a tool which will generate type-specific source code from a generic definition. Code is at https://github.com/joeshaw/geng…

  24. story
  25. comment
    Comment #7466316

    A colleague of mine recently wrote a post about automating an Nginx reverse proxy for Docker containers: http://jasonwilder.com/blog/2014/03/25/automated-nginx-rever...