HNHacker News
TopNewBestAskShowJobs

__mharrison__

1,516 karma · joined April 1, 2011

Effective Pandas, Effective Polars, Effective XGBoost, Effective Visualization, and Effective Testing author. Mountain, Frisbee sports. Corporate trainer help your team level up w/ AI, pydata ecosystem https://store.metasnake.com @__mharrison__
submissionscomments
__mharrison__··on Great Salt Lake Tracker
I think the should get the local sports teams involved. Put a little heat map down the side of the Jazz's jerseys. (I mocked this up on Twitter a few years back).

I live next to the lake (saw the remnants of it today on my bike ride).

__mharrison__··on Apple to skip high-end M6 Mac chips in favor of AI-focused M7 line
Aerospace, Nvidia Sync, Dropbox, Espanso, Karabiner, displaylink manager, NTFS for mac, Maccy, Streamdeck, Tailscale, + 6 mac display/bat/wifi/search/cfg/date.

Elaborate on my problems... or help me fix them.

__mharrison__··on Apple to skip high-end M6 Mac chips in favor of AI-focused M7 line
Except that it hides stuff...
__mharrison__··on Slate EV truck starts at $24,950
Agreed. Driving in snow is paramount for me...
__mharrison__··on Slate EV truck starts at $24,950
Wish it had all wheel drive...
__mharrison__··on Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX
This is very cool, but I'm going to say the inevitable...

How hard would it be to support cetz? I'm not touching LaTeX if I can avoid it, but I'm using Typst all the time.

__mharrison__··on Why Drawing Tablet Brands Won't Collaborate on Linux Floss Drivers
Name it something really confusing like... Linuxtablet
__mharrison__··on Why Drawing Tablet Brands Won't Collaborate on Linux Floss Drivers
Second hardest thing in CS besides cache invalidation and off by one errors....
__mharrison__··on Show HN: Make PDFs look scanned (CLI or in the browser via WASM)
I have something similar. Someone asked for a signed PDF. I digitally signed it and sent it to them. They said it has to be scanned. So I did some image magic fu to it to rotate it and make it look crappy. Then they accepted it.
__mharrison__··on Ask HN: Will programmers write more efficient code during the memory shortage?
I think they are writing shorter code for to token limits...

(Just refactored an app to do this. 60k lines to 20k)

__mharrison__··on Migrate from OpenClaw
My bad... saw the setup.py and quickly posted.
__mharrison__··on Migrate from OpenClaw
Is it bad that I want to try Hermes but look at the code and see setup.py and no project.toml and it gives me pause?
__mharrison__··on Typst 0.15.0
Use it with markdown/pandoc. That's what I do for my books...
__mharrison__··on Typst 0.15.0
And yet you probably understand Typst better than you ever understood LaTeX...
__mharrison__··on Typst 0.15.0
I do all my invoicing and SOW proposals with Typst. As well as slideshows and books...
__mharrison__··on Typst 0.15.0
Frontier LLMs work great with Typst. (Have published multiple books using it).
__mharrison__··on Ask HN: Has anyone replaced Claude/GPT with a local model for daily coding?
Using this just this morning on my DGX Spark. A little slower than frontier models but my $200/mo weekly usage exhausted with 3 days left on the week...

(Shouldn't have done that refactoring job in high mode)

__mharrison__··on Openrouter Fusion API
Random forest!
__mharrison__··on Not everyone is using AI for everything
At this point, why wouldn't you ask on the phone screen what attitude towards AI is?

I would hedge towards AI usage if you didn't probe before and then justify why.

Ymmv, can also gauge whether you want to work for the company based on this

__mharrison__··on Tectonic: A modernized, complete, self-contained TeX/LaTeX engine
Typst is awesome. I've completed migrated and am happy to never have to touch LaTeX again. (Or have an AI write it.)
__mharrison__··on Removing 'um' from a recording is harder than it sounds
Interesting. I make a bunch of video content and I went another way.

When I want to redo a section, I say it again. But, I have a magic word — "mistake" — that I insert before. Previously I transcribed and just removed the sentence (or section) before mistake.

I recently automated this and used AI to determine what to cut and to drive davinci resolve to make the edit. Saves a lot of time in my workflow.

__mharrison__··on Ask HN: What are tools you have made for yourself since the advent of AI?
- My own whisperflow bike shed

- Converted invoicing to Typst (from LaTeX)

- Automation of blinds

- Automation of lights

- Python library to control lights

- ML tuning library

- ML feature interaction library

- Jupyter notebook slideshow interface

- Davinci Resolve Authomation

- Arduino eink bluetooth HR monitor

- Tons of small scripts

__mharrison__··on Are you expected to run five Python type-checkers now?
I'm happy w/ ty right now. My agents runs it fast and it seems to provide great guardrails.
__mharrison__··on I design with Claude more than Figma now
I'm my work as an FDE this week, Copilot did the initial UI. Feedback was given and tells were adjusted all through prompting.
__mharrison__··on My Agent Skill for Test-Driven Development
My experience with refactoring is if a change causes larger number of tests faults, I run the last failed test and fix that (see my AGENTS.md posted elsewhere). Generally, if you fix the one issue everything else falls in line.

Wrt mocking. I'm not a huge fan. Again, look at my AGENTS.md. I prefer monkeypatch as a last resort option. Luckily, if you use TDD, you rarely have to use mocking. If you don't use TDD...

__mharrison__··on Gemma 4 QAT models: Optimizing compression for mobile and laptop efficiency
As an aside uvx is so pleasant to use... I wish Nvidia supported it as first-class rather than making folks jump through Docker hoops.
__mharrison__··on My Agent Skill for Test-Driven Development
See my AGENTS.md in nearby comment
__mharrison__··on My Agent Skill for Test-Driven Development
Here's a portion of my AGENTS.md from this week (playing FDE, implementing a custom workflow for a client that 20x their productivity).

    # Python Tooling
    
    - Use `uv` to manage Python environments and dependencies.
    - Use `uv run` to execute Python scripts and commands.
    - Use `pytest` for testing your code.
    - Use the `hypothesis` library for property-based testing when you have complex input spaces or need to test edge cases.
    - Don't edit `pyproject.toml` directly. Instead, use `uv add` and `uv add --dev` to manage dependencies.
    - Use ruff, ty, prek, wily for code quality and linting.
    - Don't use excessive casting. If you find yourself needing to cast types frequently, consider refactoring your code to use more appropriate types. Casting should only be done in boundary layers where you are interfacing with external systems.
    - Run appropriate tooling after making changes to your code to ensure it meets quality standards.
    - When you come across a bug or regression, think hard about writing a test and also how to create code that will prevent this from happening again in the future.
    - When creating a command line interface, add `--verbose` flag that provides logging output useful for debugging issues.
    - Before creating code, brainstorm 5 different approaches to solve the problem and sort them by their probable effectiveness. Then, choose the best approach and implement it.
    - Use Test Driven Development (TDD) for all code you write. Write tests before writing the implementation code. 
    - Collect pytest fixtures in a `conftest.py` file to avoid duplication 
    - Prefer testing real code where possible. Use doubles and `monkeypatch` when absolute necessary. Try to avoid mocking as much as possible.
    - Favor pytest monkeypatch to mock.
    - When a test fails, run the last failed test first using `uv run pytest --last-failed` 
    - Use numpy-style docstrings for all functions and classes you create.
    - Include doctests in the docstrings of your functions to provide examples
    - Use type hints for all function parameters and return types.
    - Use logging to provide insight into failures. Don't use print for debugging. Don't use logging to hide stack traces.
__mharrison__··on My Agent Skill for Test-Driven Development
My experience is the opposite. TDD keeps the guardrails on and let's me refactor with confidence.

Crazy times here in the development world. I'm always curious to watch other's best practices.

__mharrison__··on My Agent Skill for Test-Driven Development
Testing is so important for development.

Even more so when coding with agents. I think it is the probably the biggest lever to keep AI in guardrails.

(It's also why I wrote my latest book, Effective Testing, because I routinely find that my clients are very poor at treating.)

← PreviousPage 3 of 31Next →