Live data from Hacker News

Viewing profile — bwhmather

bwhmather

HN member
Joined
Tue, Mar 13, 2012, 11:53 PM UTC
HN karma
151
Public activity
26 items

About bwhmather

No profile information was provided.

Recent public activity

  1. comment
    Comment #49058497

    This is the way, and why I wrote https://pypi.org/project/ssort/ . Unfortunately you need to follow it up with shameless self-promotion or it doesn't work.

  2. comment
    Comment #48523050

    To add to this, experienced users will often start typing without looking based on what they trust the eventual state of the UI will be. Moving the cursor immediately makes it expl…

  3. comment
    Comment #48049560

    You are not wrong! That certainly looks like the intention.

  4. comment
    Comment #48035594

    I'm also the happy owner of a StarLite Mk IV. The perfect travel laptop. Thin, light, fanless, excellent keyboard and touchpad, matt screen, rock solid chassis, good battery life. …

  5. comment
    Comment #32469012

    I use this script, saved as `rerun`, to automatically re-execute a command whenever a file in the current directory changes: #!/usr/bin/sh while true; do reset; "$@"; inotifywait -…

  6. story
    Show HN: BDC – Ergonomic, sub 1KiB virtual DOM library

    BDC is a simple library for updating the DOM to match a javascript description. Does not require JSX or a compilation step. clobber( document.body, h("marquee", [ h("span", {"style…

  7. story
    Show HN: SSort – The Python source code sorter

    Hi HN - SSort is a tool I've been working on that sorts the contents of python modules in dependency order. It's like isort, but for the rest of the file. It's starting to get a bi…

  8. comment
    Comment #30266614

    Have pushed fix as version 0.10.0. Thank you very much for reporting.

  9. comment
    Comment #30266485

    By the way, I have raised a ticket to finalize method order before 1.0 release ( https://github.com/bwhmather/ssort/issues/11 ). Please follow and comment if you would like to see …

  10. comment
    Comment #30266449

    I'll try to add some better ones over the weekend. This should be a start.

  11. comment
    Comment #30265412

    It is a bit backwards, but in exchange you get predictability With backwards sorting you know that, unless there is a cycle, you can always scroll up from a call site to find the d…

  12. comment
    Comment #30263448

    Will do. Examples directory isn't terribly helpful as documentation as it mostly contains real code with problematic syntax (and compatible licensing) that tripped up ssort when I …

  13. comment
    Comment #30262936

    Implementation details at the top. Python is a scripting language so modules are actually evaluated from top to bottom. Putting high level logic up top is nice when you just have f…

  14. comment
    Comment #30262817

    isort only sorts imports. ssort will sort all other statements within a module so that they go after any other statements they depend on. The two are complementary and I usually ru…

  15. comment
    Comment #30261837

    One thing worth mentioning is that the `git blame` ignore file trick doesn't work as well with ssort as it does with black because the changes ssort makes tend to be much less loca…

  16. comment
    Comment #30261814

    Yup, that's a bug. All assignments are treated as properties and moved to the top. Fix to follow shortly.

  17. comment
    Comment #30261723

    I've had the same problem with pydantic. Currently, properties are special cased and moved to the top. Everything else, including classes, is grouped with methods. Meta classes wil…

  18. comment
    Comment #30260874

    Shameless plug: For people who like black, I've been working on ssort[0], a python source code sorter that will organize python statements into topological order based on their dep…

  19. comment
    Comment #24686987

    Commit history serves two largely separate purposes: 1) To provide a code-level record of what has changed in individual files and why. 2) To provide a high-level record of what fe…

  20. comment
    Comment #20062015

    To access an equivalent amount of mass from the moon you would need to strip mine it to a depth of about 23.5km. On earth it would be about 1km. Your point about losing a lot of it…

  21. comment
    Comment #11560989

    The smoothsort variant of heap sort might be a better alternative. It can be implemented in-place like an ordinary heap sort, but unlike an ordinary heap sort the root will be at t…

  22. comment
    Comment #7809675

    Option 1 is already provided. The sd_notify function is simply a convenience wrapper for sending messages on a socket specified by the NOTIFY_SOCKET environment variable. See the n…

  23. comment
    Comment #7318392

    See also http://academictorrents.com/ posted here a few months ago

  24. comment
    Comment #7241297

    For similar stuff, don't miss the link at the bottom to the blog of the designer behind the film: http://www.gavinrothery.com/moon-blog-index/

  25. comment
    Comment #7101774

    Mandatory link to http://blog.okcupid.com/ Less story, more analysis.