frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: What trick of the trade took you too long to learn?

14•unsupp0rted•2h ago
Every week for the last 3 months I’ve learned a new trick when it comes to getting whatever LLM I’m using at the time to produce better output. That’s my trade, but lots of HNers have more interesting trades than that.

In my case, only recently I learned the value of getting an LLM to write and refine a plan.md architecture doc first, and for it to break that doc down into testable phases, and then to implement phase by phase.

Seems obvious in hindsight. But it took too long to learn that that should be my approach. I had been going phase by phase myself- no overarching plan.md for the LLM.

What Trick of the Trade took you too long to learn?

Comments

vouaobrasil•2h ago
I only learned this in the last five years: do less, automate less, do more by hand, and use the limited capability of the manual method to really choose projects that are worthwile, rather than aim for maximum efficiency.
juliansimioni•8m ago
Similar to this: if you want to optimize your productivity*, do so on a timescale of at least weeks if not months or years.

Simple example: Can you get more done working 12 hours a day than 8? Sure, for the first day. Second day maybe. But after weeks, you're worse off in one way or another.

It's easy to chase imaginary gains like automating repetitive tasks that don't actually materialize, but some basics like sleep, nutrition, happiness, etc are 100% going to affect you going forward.

* I actually hate that word, and prefer saying "effectiveness". Productivity implies the only objective is more, more, more, endlessly. Effectiveness opens up the possibility that you achieve better results with less.

entrepy123•2h ago
How do you maintain tests, in order for LLM edits to not keep breaking things?

  - As a formal test suite in the program's own language?
  - Or using a .md natural language "tests" collection that must pass, which an LLM can understand?

To answer the OP, I learned use different models for reasoning vs. coding.
zappb•1h ago
Writing tests first is a good way to end up with testable code. If you skip that, retrofitting tests is incredibly difficult.
ryoshoe•22m ago
Even if you aren't going to do the complete test code just writing down the expected checks for each test makes things so much easier
atomicnumber3•18m ago
While it can be a useful forcing function, I find it also just fits into a higher velocity workflow in general, one I would describe like so:

1. Make PRs small, but not as small as you can possibly make them.

2. Intend to write at least one nice-ish test suite that tests like 50-80% of the LOC in the PR. Don't try to unit test the entire thing, that's not a unit test. And if something is intrinsically hard to test - requires extensive mocking etc - let it go instead of writing a really brittle test.

3. Tests only do two things: help you make the code correct right now, or help the company keep the code right long term. If your test doesn't do either, don't write it.

4. Ok - now code. And just keep in mind you're the poor sod who's gonna have to test it, so try to factor most of the interesting stuff to not require extensive mocking or shit tons of state.

I've found this workflow works almost anywhere and on almost any project or code. It doesn't require any dogmatic beliefs in PR sizes or test coverages. And it helps prevent the evils that dogmatic beliefs often lead you into. It just asks you to keep your eyes open and don't paint yourself into a corner, short term or long term.

AnimalMuppet•1m ago
One more piece - if the test would be hard to write, use that to drive you to clean up the architecture of that piece of code.
oumua_don17•25m ago
Start as early as possible in investing (in index funds) and otherwise being financially savvy. It is very beneficial to realise early on that growing your hard earned money and spending it wisely is way more important as it will in the future lead to some unexpected benefits. Freedom of thought and action!
Terretta•8m ago
Call Vanguard: 877-662-7447

An investing prof at Chicago puts this on the whiteboard at the start of semester, saying this is really all most people need to know and this class is unlikely to learn anything in his or any class that will let them, personally, do better.

TMWNN•12m ago
When I realized that a) `screen` exists and b) what it does, I felt like an utter fool for having gone for years—YEARS—without benefiting from it.
cwmoore•8m ago
Observe as much mastery as possible at what you would like to do.
Terretta•6m ago
Apprentice, journeyman, master: worked for millennia, will work for millennia more.
WalterBright•8m ago
That macros ruin everything they touch. I used them extensively for maybe 15 years, stopped adding them, and then a bit later removed them all from my code. My C/C++ code was a lot nicer without them.
yummypaint•8m ago
Most problems (including analytically intractible ones) can be modeled with a relatively simple monte-carlo simulation. Most simple monte-carlo simulations can be fully implemented in a spreadsheet.

Using timing coincidences in particle physics experiments is incredibly powerful. If multiple products from the same reaction can be measured at once, it's usually worth looking into.

Circular saws using wood cutting blades with carbide teeth can cut aluminum plates.

You can handle and attach atomically thin metal foils to things by floating them on water.

Use library search tools and academic databases. They are entirely superior to web search and AI.

abetusk•2m ago
I feel like the Monte-Carlo simulation modeling trick is one I picked up intuitively but only recently heard formalized. Do you (or anyone else) have a list of example problems that are solved in this way? Like a compendium of case studies on how to apply this trick to real world problems?
jshprentz•7m ago
Drum cards
MrDresden•2m ago
[delayed]

Apple sues Apple Cinemas for trademark infringement

https://www.universalhub.com/2025/apple-computer-sues-walpole-based-chain-apple-cinemas-trademark
1•ilamont•1m ago•0 comments

A client-side video editor in the browser using Vue 3

https://vustu.vercel.app/
1•00240William•2m ago•1 comments

Speedhunters Was a Car Culture Juggernaut. This Is How It Died

https://www.thedrive.com/news/speedhunters-was-a-car-culture-juggernaut-this-is-how-it-died
1•PaulHoule•2m ago•0 comments

Solving the Mystery of Sea Star Wasting Disease: A Breakthrough Discovery

https://www.usgs.gov/centers/western-fisheries-research-center/news/solving-mystery-sea-star-wasting-disease-a
1•lemonberry•2m ago•0 comments

Snake Eater UI – a modern milsim component library

https://github.com/asynchronous-x/snake-eater-ui
1•jack_peplinski•2m ago•0 comments

Forget the Space Force Trump needs to create a Cyber Force, says think tank

https://www.theregister.com/2025/08/04/think_tank_military_cyber_force/
1•penda•3m ago•0 comments

Brennan Center for Justice Report: The Campaign to Undermine the Next Election

https://www.brennancenter.org/our-work/research-reports/trump-administrations-campaign-undermine-next-election
2•tastyface•4m ago•0 comments

Military leaders say integrated space power crucial for national defense

https://spacenews.com/military-leaders-say-integrated-space-power-crucial-for-national-defense/
2•CrankyBear•5m ago•0 comments

Ask HN: What service should I use to send email from my Node.js application?

2•TimCTRL•6m ago•0 comments

Show HN: Bookava – Your personal audiobook player (auto-speed 0.1x / 10min)

https://github.com/bookava/bookava.github.io
2•aaurelions•13m ago•0 comments

Google mocks Apple's AI struggles in new Pixel 10 ad campaign

https://www.neowin.net/news/google-seemingly-mocks-apples-ai-struggles-in-new-pixel-10-ad-campaign/
2•bundie•15m ago•1 comments

Agentic coding tools ranked by free-tier access to frontier models

https://github.com/inmve/free-ai-coding
2•codeclimber•16m ago•0 comments

What is ISO 639:2023?

https://lightcapai.medium.com/what-is-iso-639-2023-634173110a8a
3•WASDAai•18m ago•1 comments

Adam Driver and Scarlett Johansson audio from Marriage Story scares off wolves

https://www.theguardian.com/film/2025/aug/04/audio-of-adam-driver-and-scarlett-johansson-arguments-from-marriage-story-used-to-scare-off-wolves-in-the-us
3•mykowebhn•22m ago•0 comments

In Support of Shitty Types

https://lucumr.pocoo.org/2025/8/4/shitty-types/
3•vercantez•23m ago•0 comments

ShipFast and Supa Starter Alternative

2•nabedkhan•24m ago•0 comments

Capitalists Love This Podcast. So Do Their Critics.

https://www.nytimes.com/2025/08/03/business/odd-lots-podcast-bloomberg.html
2•mitchbob•26m ago•1 comments

Joyent ran the servers for Twitter, LinkedIn and Facebook 10y before AWS

https://threadreaderapp.com/thread/1952384517983121540.html
5•pieter_mj•27m ago•0 comments

Silicon Valley Is in Its 'Hard Tech' Era

https://www.nytimes.com/2025/08/04/technology/ai-silicon-valley-hard-tech.html
4•mempko•28m ago•1 comments

Why Can't Americans Sleep?

https://www.theatlantic.com/magazine/archive/2025/08/insomnia-health-cognitive-behavioral-therapy/683257/
3•gmays•31m ago•1 comments

Do discounts make money? We analyzed 3M subscriptions across billions of $$

https://churnkey.co/blog/discounting-at-cancellation/
2•khushick•31m ago•1 comments

Bitlocker Question

2•donnylinux•33m ago•0 comments

Made an extension to get rid of doomscrolling

https://addons.mozilla.org/en-US/firefox/addon/shortshield-for-youtube-shorts/
1•arthantyo•33m ago•0 comments

Show HN: Copilot-style assistant that works offline, with screen/mic/text

https://github.com/viktorfaubl/QuietPrompt
1•Steelsky•34m ago•0 comments

The Journals of Noiruzi Sangsung: Salutations

https://www.royalroad.com/fiction/103797/the-journals-of-noiruzi-sangsung/chapter/2019540/salutations
1•bryanrasmussen•35m ago•0 comments

Refine Chat

1•Abdulhayyi•35m ago•0 comments

NASA won't publish key climate change report online

https://www.space.com/science/climate-change/nasa-wont-publish-key-climate-change-report-online-citing-no-legal-obligation-to-do-so
8•belter•35m ago•2 comments

Ask HN: What is the go-to programming language in your industry and why?

1•vishalontheline•36m ago•3 comments

Adtech company OpenX sues Google

https://www.businessinsider.com/adtech-company-openx-sues-google-antitrust-digital-advertising-market-2025-8
2•bdev12345•37m ago•0 comments

Are we the last generation of programmers?

https://www.cummulative.io/p/the-last-generation-of-programmers
2•karimfan•37m ago•0 comments