frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Show HN: I spent 6 years building a ridiculous wooden pixel display

https://benholmen.com/blog/kilopixel/
812•benholmen•12h ago•120 comments

Show HN: I've been building an ERP for manufacturing for the last 3 years

https://github.com/crbnos/carbon
153•barbinbrad•6h ago•57 comments

Qwen-Image: Crafting with native text rendering

https://qwenlm.github.io/blog/qwen-image/
348•meetpateltech•12h ago•93 comments

How we made JSON.stringify more than twice as fast

https://v8.dev/blog/json-stringify
250•emschwartz•14h ago•63 comments

I tried to replace myself with ChatGPT in my English class

https://lithub.com/what-happened-when-i-tried-to-replace-myself-with-chatgpt-in-my-english-classroom/
135•lapcat•2d ago•120 comments

Thingino: Open-Source Firmware for IP Cameras

https://thingino.com/
83•zakki•6h ago•11 comments

The history of the Schwartzian Transform (2016)

https://www.perl.com/article/the-history-of-the-schwartzian-transform/
27•mooreds•3d ago•3 comments

3D Line Drawings

https://amritkwatra.com/experiments/3d-line-drawings
45•tansh•5h ago•1 comments

NASA's Curiosity picks up new skills

https://www.jpl.nasa.gov/news/marking-13-years-on-mars-nasas-curiosity-picks-up-new-skills/
106•Bluestein•9h ago•36 comments

Indian Sign Painting: A typeface designer's take on the craft

https://bl.ag/indian-sign-painting-a-typeface-designers-take-on-the-craft/
143•detaro•2d ago•30 comments

OpenIPC: Open IP Camera Firmware

https://openipc.org/à
223•zakki•3d ago•122 comments

Deterministic Simulation Testing in Rust: A Theater of State Machines

https://www.polarsignals.com/blog/posts/2025/07/08/dst-rust
26•lukastyrychtr•3d ago•1 comments

EconTeen – Financial literacy lessons and tools for teens

https://econteen.com/
59•Chrisjackson4•5h ago•35 comments

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

107•unsupp0rted•10h ago•156 comments

Content-Aware Spaced Repetition

https://www.giacomoran.com/blog/content-aware-sr/
106•ran3000•9h ago•21 comments

DrawAFish.com Postmortem

https://aldenhallak.com/blog/posts/draw-a-fish-postmortem.html
282•hallak•16h ago•71 comments

Hiroshima (1946)

https://www.newyorker.com/magazine/1946/08/31/hiroshima
59•pseudolus•2d ago•92 comments

Perplexity is using stealth, undeclared crawlers to evade no-crawl directives

https://blog.cloudflare.com/perplexity-is-using-stealth-undeclared-crawlers-to-evade-website-no-crawl-directives/
1020•rrampage•14h ago•568 comments

Customizing tmux

https://evgeniipendragon.com/posts/customizing-tmux-and-making-it-less-dreadful/
108•EPendragon•12h ago•95 comments

Cellular Starlink expands to support IoT devices

https://me.pcmag.com/en/networking/31452/spacexs-cellular-starlink-expands-to-support-iot-devices
66•teleforce•3d ago•55 comments

What Can a Cell Remember?

https://www.quantamagazine.org/what-can-a-cell-remember-20250730/
59•chapulin•4d ago•9 comments

Once a death sentence, cardiac amyloidosis is finally treatable

https://www.nytimes.com/2025/08/04/well/cardiac-amyloidosis.html
120•elektor•8h ago•14 comments

The creative tension between developer and language

https://krishna.github.io/posts/creative-tension-between-developer-and-language/
3•kenshi•2d ago•1 comments

Kyoto University team develops pain reliever comparable to morphine

https://www.japantimes.co.jp/news/2025/08/05/japan/japan-new-painkiller-comparable-to-morphine/
10•nogajun•50m ago•0 comments

My Ideal Array Language

https://www.ashermancinelli.com/csblog/2025-7-20-Ideal-Array-Language.html
122•bobajeff•15h ago•53 comments

Is the interstellar object 3I/ATLAS alien technology? [pdf]

https://lweb.cfa.harvard.edu/~loeb/HCL25.pdf
96•jackbravo•15h ago•132 comments

Objects should shut up

https://dustri.org/b/objects-should-shut-the-fuck-up.html
332•gm678•14h ago•247 comments

Century-old stone “tsunami stones” dot Japan's coastline (2015)

https://www.smithsonianmag.com/smart-news/century-old-warnings-against-tsunamis-dot-japans-coastline-180956448/
136•deegles•15h ago•52 comments

Show HN: Mathpad – Physical keypad for typing math symbols

https://www.crowdsupply.com/summa-cogni/mathpad
68•MagneLauritzen•2d ago•23 comments

Show HN: Sidequest.js – Background jobs for Node.js using your database

https://docs.sidequestjs.com/quick-start
58•merencia•12h ago•13 comments
Open in hackernews

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

106•unsupp0rted•10h 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•10h 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•8h 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•10h 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•9h ago
Writing tests first is a good way to end up with testable code. If you skip that, retrofitting tests is incredibly difficult.
ryoshoe•8h 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•8h 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•8h 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•8h 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•8h 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.

lurking_swe•7h ago
That’s good advice for a layman but most high earners can do much better if they care and are motivated. Most are neither though lol.

Mostly on the tax side. Some specific examples:

- after maxing out your 401k what should you do next? IRA? Mega backdoor roth? Something else?

- If you have kids, how to best save for future education expenses? Hint: consider 529 plan.

- HSA is technically the best tax advantaged account, most high earners don’t realize it and “waste” the HSA funds to reimburse typical medical bills. HSA has triple tax benefits: contributions are tax-free, growth is tax-free, and withdrawals are also tax-free after age 65 for any reason, not just medical expenses. So basically investing without any tax obligation. You can also withdraw tax free before 65, but for medical expenses only.

i could go on…investing is great, but reducing your tax obligation is an even more powerful technique if you want to grow your net worth.

davidivadavid•6h ago
At that point get someone to do it for you for x% of what they're getting you back and live blissfully unaware of arcane tax code specifics.
Jtsummers•6h ago
At least the 401k, IRA, and HSA don't require knowing anything particularly arcane. Money goes in, don't touch until 59 1/2 (401k, IRA) or 65 (HSA).

529 plans can get a bit more complicated because you'll want one from your state (if your state has an income tax) and they may offer several, but then it's less about knowing tax code specifics than about what the differences are between their offerings.

lurking_swe•5h ago
right, it’s not that arcane at all. I discovered all this over a couple weekends in my 20s. Started on reddit, then moved on to more official guides and books. I spent maybe 5 weekends in total doing this learning.

It’s really not that hard and i don’t understand why more people aren’t interested. Let’s reframe for a minute…if i said a high earner could retire a year earlier, or maybe even a few years earlier just by learning some semi-advanced tax strategies. Should they do so? Yeah. They’d be crazy not to lol.

recursive•2h ago
For a beginner it's hard to tell which information is trustworthy and which is a sales pitch.
tylerflick•5h ago
529s are also capped based on the recipient, not donor.
matt_s•6h ago
What you have stated is almost the same as call Vanguard, all those options are the same in the sense that they all involve investing, leaving it alone for a long time. Its just the vehicle thats slightly different and tax advantages.

I wouldn’t consider those options needing much motivation or research. The key with all of them is investing early and leaving it alone.

lurking_swe•6h ago
If one is clueless with investing and taxes in general, and they call vanguard, their eyes will glaze over. It would be like me explaining software development to my 85 year old father.

I do agree people should call vanguard. But just blindly following steps they give you is unlikely to be productive if you don’t understand why you’re doing those steps. Furthermore, those people who don’t understand _why_ will freak out every time there’s a huge market correction. They get scared - because they don’t understand any of it.

I’m also curious, do they offer financial advice for your accounts outside vanguard? Genuinely curious since i’m unsure.

matt_s•5h ago
I’ve think the “call” part is a bit from the past, should be a setup account online with Vanguard, put it in VOO or VTSAX or the equivalent low fee market index fund and leave it alone.

Replace Vanguard with any other firm but the key is picking low fee ETFs and leaving them alone. Vanguard tends to have a reputation for the lowest fees.

d_burfoot•4h ago
#1 Rule of Investing: you can't beat the market, but you can beat the tax man
arjvik•3h ago
The HSA thing intrigued me and so I did some digging. It appears that post-65, you still have to pay income tax on non-medical withdrawals from an HSA? That is, besides the tax-free-for-medical-expenses part it reverts to a traditional IRA?

One additional trick though is that it looks like you can pay for any HSA-eligible medical expenses (incurred after you created the HSA) out-of-pocket now, and reimburse your bills at any point in the future? Thus you can still earn interest on the cash before withdrawing it at any point in the future (treating it as tax-free liquidity).

(I don't fully understand this so these are questions not statements, but hopefully I'm correct!)

scarface_74•2h ago
Yes and you can invest your HSA funds just like anything else.
shmerl•2h ago
> The HSA thing intrigued me and so I did some digging. It appears that post-65, you still have to pay income tax on non-medical withdrawals from an HSA?

That's what I understood too. That claim that you can completely skip taxes looks wrong.

sokoloff•2h ago
You can completely escape taxes for any amounts that you have receipts for medical expenses incurred after the HSA was opened.

You can pay cash for a qualified medical expense in 2025 and take out that amount of money from the HSA decades later.

koolba•2h ago
You can also use it to pay for Medicare premiums.
hopelite•2h ago
One thing to note!!!! Make sure to also keep records on the HSA start date and any transfers you may engage in, e.g., after leaving an employer or just changing providers. It is worth having that on record in case 20, 30, 40 years later your claims are rejected because the original opening date was lost in some transfer at some point.
lurking_swe•2h ago
i’m the parent. You are correct, my mistake! It’s too late to edit at this point. :(

What I should have said is that after 65 you can spend it on non medical stuff without penalty. BUT if you do so you’ll owe tax that year (withdrawal).

So to summarize, you can avoid all tax if it’s spent on medical stuff. For non medical (post 65) it’s still good, but not as good.

Still an amazing deal because old people tend to spend a lot more on healthcare.

lurking_swe•2h ago
i replied below already, i misspoke. Apologies!

https://news.ycombinator.com/item?id=44793595

xhrpost•2h ago
Looked into HSA recently at work but legally you need a high deductible health care plan to be eligible. Looking at the options, just nothing looked good compared to my current $0 deductible/$0 co-pay plan. Hard to know for sure but just seemed like I would be paying a lot more out of pocket every year.
SlightlyLeftPad•1h ago
You have the unicorn health plan it appears
1oooqooq•2h ago
i tried that hack one year. Cigna just emptied my account on the first try with a provider charging 2 emergency room visits when I was there only for a xray.

Cigna refused to lift a finger unless i sued them both.

yeah, i wouldn't recommend that.

jkmcf•5h ago
My millionaire, step-father-in-law, gave this advice to my brother when graduated.

I was lucky, my physics department administrator told me the same thing when I was graduating.

The 2ND best piece of advice is to rollover your 401k when you move to a new company -> this cost me at least 500k because they effectively stagnate when your company isn't paying the maintenance cost (AIUI).

slapstick•4h ago
> this cost me at least 500k because they effectively stagnate when your company isn't paying the maintenance cost

Is this true? My understanding is that the fees come out of the account itself. There's other good reasons to roll over (primarily investment flexibility) but I have not heard of something like this.

bcyn•3h ago
I don't think the point about 401k stagnation is true. At most fee structures and optionality of funds change. How did that cost you 500k exactly?
monkeyelite•3h ago
Why are we advertising this particular broker?
nemomarx•3h ago
vanguards very large and they're a mutual fund, so they have a lower profit motive than most brokers for it. they're basically the standard retirement fund company now
arjvik•2h ago
Vanguard is one of the cooler-structured brokerages. Vanguard (the management firm) is owned by the mutual funds themselves, of which you are an investor of. So their shareholder obligation is genuinely towards "clients" of the individual mutual funds. As far as I'm aware, this is the only mutually-owned mutual fund firm.

It's definitely got a solid track record and good fees, but these are things I'd feel weird about advertising it on HN for.

scarface_74•2h ago
This is generally not applicable to most people.

1. Invest enough to get the company match in an S&P 500. It probably isn’t Vanguard that your company uses

2. Pay off all of your debt except your house (and maybe your car)

3. Max out your HSA - if you are married it’s - $8550

4. Max out your 401K - again that’s probably not through Vanguard - $23500

5. Step 5 - then call Vanguard and depending on your income just do a Roth up to $8000 (?).

(Unless you are over 50 then do catch up contributions as 4.5)

If you are under 50, you can do $40,500 tax advantaged and over 50 $48050

hattmall•1h ago
Step 0: Have enough extra money to do all that.
healsdata•53m ago
And also Step 4a: Don't need to use the healthcare system.
bronco21016•1h ago
Step 6 is the mega-backdoor Roth. Do after tax contributions to your 401k and have your 401k servicer do an in-plan conversion to Roth 401k.

Also, on step 4, you may need to do a backdoor Roth IRA if you’re over the Roth IRA income limits.

scarface_74•1h ago
I’ve only had one employer that allowed after tax contributions (which for other people reading this is not the same as Roth 401K).

The issue is that most companies don’t allow it because of compliance reasons and rules regarding highly compensated employees. Of course the one company that did allow it was BigTech.

Not that I’m missing much. I doubt I will be in a higher tax bracket at retirement than I am now and I live in a state tax free state.

bronco21016•56m ago
To me the primary benefit is when it comes to RMDs. Having a mix of traditional and Roth allows me to draw down the traditional in lower tax years to avoid RMD and have the Roth to fill in those later years or pass on to children. Plus, if you’ve maxed the $23,500ish of the traditional 401k and still have extra to save, it’s more tax advantaged in a Roth vs a taxable brokerage account.

These are obviously champagne problems but if you’re a high earning W2 it’s worth considering.

sgc•32m ago
For those of us very late to the investing game, what is the best strategy to try to catch up at least somewhat?
hattmall•1h ago
An important part that could have been beneficial would have been to add, "today".

I had a class where the teacher did something similar, but she showed that if you started a ROTH today and contributed only the 4 years you were in college and then stopped forever. You would have nearly the same amount of money as someone who started 1 year after they completed college and invested every year until retirement.

Ultimately she was encouraging us to take out student loans and invest it or use any excess scholarship money to max out a ROTH IRA. She even advocated for investing all student loan money and opening credit cards tp actually pay for college, making minimum payments until graduation. Then moving away to a LCOL country and learn the language for 8-9 years while remaining in school taking 1 online class a year and travelling the world on student loans and not to worry about starting a career until 30 and start paying once you are back and start a job.

karp773•51m ago
ROTH IRA contributions have to be from earned income, though. The rest of the advice is of the same quality, imho. Beware!
emmelaich•7h ago
Get a financial advisor that you trust.
FristPost•2h ago
I didn't start investing until I understood it.

This is a fantastic course. It covers a lot of ground.

If you want to actively invest, this will help you learn the mechanics. But in the end, what you really learn, is that you can't beat the market.

https://ocw.mit.edu/courses/15-401-finance-theory-i-fall-200...

r0b05•43m ago
Excellent resource. The videos link to a YouTube channel with a treasure trove of content in multiple disciplines. Thanks for sharing!
al_borland•2h ago
My mistake was not starting early, because the numbers were small and it didn’t seem worth the time. The habit and systems are important to build, so that when the numbers do get bigger it goes to the right place.
calvinmorrison•1h ago
my mistake was to graduate in 2008 and then start a business right when covid hit.
bongodongobob•1h ago
In other words, 2008 had no meaningful impact on you then.
bsimpson•47m ago
I also graduated in 2008.

Starting my adult life with the markets in freefall made it hard to get in the habit of investing. All through school, people told me "most people don't start investing until their 30s, and end up in a worse than they ought to because the time-value of money compounds a bunch if you add a few more years." I thought I knew better than to be one of those people.

Instead, I ended up keeping a lot of savings in cash during years when the interest rates were approximately 0. I've tried to get better at putting money into the markets over the past few years, but my financials look very different than they might have.

> In other words, 2008 had no meaningful impact on you then.

People who graduated in the late 00s might not have accrued big financial losses, but it had a very meaningful impact on my comfort investing.

bongodongobob•27m ago
I don't follow. The markets were low, great time to invest. Great time to buy a home. 2008 was bad for people who owned homes or were already investing.
TMWNN•8h 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.
lpa22•3h ago
Can you please elaborate here?
cturner•2h ago
It is a terminal multiplexer. You will be able to find youtube videos. The gp is talking about a tool called gnu screen. If you need a more distinct token to search on try “tmux”.
dredmorbius•1h ago
On which, see: <https://news.ycombinator.com/item?id=44787374>
sureglymop•2h ago
Pretty sure they mean GNU screen, a terminal multiplexer. Similar in functionality to tmux or zellj (a newer alternative) if you have heard of those.
cwmoore•8h ago
Observe as much mastery as possible at what you would like to do.
Terretta•8h ago
Apprentice, journeyman, master: worked for millennia, will work for millennia more.
dandano•3h ago
But don’t fall into the trap of that’s all you do. This can lead to procrastination of the thing you’re trying to do.
WalterBright•8h 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.
peterfirefly•8h ago
My early C code would have been awfully slow without them. We needed enums and good inlining before we could ditch (most) macros. When did Zorland/Zortech C become good enough?

There are still a few special cases where macros are useful, such as the multiple #include trick where a macro #defined before the #include determines what the macro invocations in the include file does -- really helpful for building certain kinds of tables.

WalterBright•7h ago
Zortech had an inliner even before it was Zortech.

The #include trick is called the "X Macro". I used it extensively, and eventually just removed it.

peterfirefly•6h ago
Was it reliable enough?

(I have never played with it -- I saw the ads in Byte but I never met anybody who had tried it. It seemed so ridiculously cheap that I felt it had to be a scam ;) )

WalterBright•4h ago
It was frequently better and faster than the others. Mine was the first (for the PC) to add data flow analysis.
yummypaint•8h 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•8h 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?
sceadu•7h ago
not sure if it counts as a list of case studies, but a relevant and recent video nonetheless https://www.youtube.com/watch?v=KZeIEiBrT_w

also in general bayesian statistics

random medium article: https://medium.com/pythoneers/monte-carlo-simulation-ideas-a...

bobbiechen•6h ago
_How to Measure Anything_ by Douglas Hubbard includes a chapter on Monte Carlo simulations and comes with downloadable Excel examples: https://www.howtomeasureanything.com/3rd-edition/ (scroll down to Ch. 6)

The main example is, you're considering leasing new equipment that might save you money. What's the risk that it will actually cost more, considering various ranges of potential numbers (and distributions)?

I think it's harder to apply to software since there are more unknowns (or the unknowns are fatter-tailed) but I still liked the book just for the philosophical framing at the beginning: you want to the measure things because they help you make decisions; you don't need perfect measurements since reducing the range of uncertainty is often enough to make the decision.

yummypaint•6h ago
A simple example that highlights the strength of this method: a 137Cs point source is at the origin. A detector consisting of a right cylinder at arbitrary distance and orientation is nearby. What is the solid angle?

There may exist an analytical solution for this, but I wouldn't trust myself to derive it correctly. It would certainly be a huge mess.

If we add that the source is also a right cylinder instead of point source, and we want to add first order attenuation of emitted gammas by the source itself, the spreadsheet becomes only a bit more complex, but there will not be a pen and paper equation solution.

In this example every row of the spreadsheet would represent a hypothetical ray. One could randomly choose a location in the source, a random trajectory, and check if the photon intersects the detector. An alternative approach would be randomly choosing points in both target and detector, then doing additional math.

The results are recovered by making histograms and computing stats on the outputs of all the rows. You probably need a few thousand for most things at least. Remember roughly speaking 10k hits gets you ~1% statistics.

LegionMammal978•1h ago
What annoys me with Monte Carlo methods is trying to get self-consistent statistics at multiple parameter values. E.g., in your example, what is the derivative of the solid angle as the detector is moved? Or more generally, if we have some 'net goodness' measure for a system depending on parameters, how can we efficiently maximize it, when simulations are noisy and basins are shallow?

My understanding is that these sorts of questions come up in ML, and there are ways of dealing with it, but they can't converge nearly as fast as simple iterations like Newton's method. Even if I have to take a series approximation instead of a simple formula, I'll be able to use autodiff (or at worst, symbolic differentiation) to get quick and precise answers to these questions.

thrawa8387336•2h ago
Think of hard problems where sampling of outcomes could give you a better understanding
aghilmort•3h ago
what do you consider top tier library search tools and academic databases these days?
btrettel•2h ago
I've used various commercial databases over the years. Some popular commercial databases relevant to HN readers include Web of Science, Scopus, and Engineering Village. When I worked at the USPTO, I used the less popular database Dialog, which I preferred. To my knowledge, none of these are available direct to consumers. I've only been able to get access from places with subscriptions. Some university libraries allow visitors where you can use these databases for free on-site.

I would call these databases complementary, not "entirely superior". There are two main advantages. One is that these databases will contain many things that you can't find on Google. The second advantage of these databases is that they are designed for advanced searchers and have more powerful query languages. Google on the other hand is dumbed down and will try to guess what you want, often doing a poor job. You can get very specific on these databases in ways that you can't with Google.

Related: I'm somewhat fascinated by more specialized bibliographic databases because they often contain things that can't be found on Google or the major commercial databases I listed above. I started keeping a list of them. https://github.com/btrettel/specialized-bibs

w4der•12m ago
On a related note, if you studied and got a degree at a university, check if they have an alumni program. I pay a small yearly fee that lets me access the university's academic databases and their VPN, so I get some other perks as it looks like I'm connected through eduroam.
1oooqooq•2h ago
even wood tipped circular saw can cut Al plate...

and academic/library search is indeed so underrated!

jshprentz•8h ago
Drum cards
betaby•2h ago
Like this https://www.themusicstand.com/Drum-Rudiments-Playing-Cards-p... ?
analog31•1h ago
Man, I'm dating myself by admitting that I know what a drum card is.
MrDresden•8h ago
Technical skills will only take you so far in most orgs. Learn to play the soft game.
ipnon•2h ago
When I stopped trying to be right and I started trying to be friends my career finally took off.
treetalker•8h ago
The big one, for keeping my focus on the power of repeated, consistent action, and prioritizing my "future selves":

What is likely to happen if I do (or don't do) this thing one thousand days (or times) in a row?

Examples:

- exercising 2h per day and eating right --> I'm going to look and feel great and my health will be far better than that of my peers

- Should I buy these cookies along with the rest of my groceries? If I do that 1,000 grocery trips in a row …

- spending 30+ minutes per day reading the highest quality material I can find; taking notes; and figuring out ways to implement the knowledge and ideas I gain --> …

itsmevictor•6h ago
I like your approach to relating your daily choices to your broader life goals.

I think you'd like Atomic Habits [1] if you haven't read it already.

[1] https://www.amazon.com/Atomic-Habits-Proven-Build-Break/dp/0...

johnfn•2h ago
This is a good one. What's gonna happen if I respond to comments on HN for 1000 days in a row? Uh oh.
rickcarlino•7h ago
Git bisect. For certain classes of software regressions, it makes life easier. Many people (me) don’t know this feature exists and end up reinventing the wheel on their own. https://git-scm.com/docs/git-bisect
benreesman•3h ago
And interactive rebase. Master interactive rebase and reflog until you can do it blindfolded.
lanfeust6•3h ago
Agreed with interactive rebase, but what of reflog? I've checked that for commit hashes when things have gone very wrong but I don't know many commands.
benreesman•1h ago
It allows you to observe and interact with the history of refs like HEAD, so superficially destructive operations like amending a commit can be recovered, reverted, etc. It's kind of like meta-git, allowing version control operations on the version control system. It's a lifesaver when you botch a merge or something and allows you to do "destructive" operations fearlessly (up to a point, you can munge a git repo pretty bad if you try hard enough).
pseudo_meta•26m ago
I've only used reflog really to look up a hash and reset back to it. Is there anything else about it one should learn?
lanfeust6•3h ago
Very useful. What we always say after the fact is "we need more tests".
sureglymop•2h ago
Similar feelings about git worktree. Being able to check out multiple branches at once without having to deal with stash is a game changer.
koolba•2h ago
Whenever people try to argue that small and meaningful commits do not matter, I introduce them to git bisect. I’ve yet to meet someone familiar with it that does not agree.
austin-cheney•6h ago
Measure everything. There are two benefits to this.

1. Discarding the bullshit. A consistent practice of weighting assumptions and conclusions on evidence/numbers helps identify biases and motives from other people.

2. Measures allow for value identification and performance. Most people just guess at this. Guessing is wrong more than 80% of the time and often wrong by multiple orders of magnitude.

Most people don’t think like this and find this line of thinking completely foreign, so I often just keep my conclusions to myself. To see a movie about this watch Money Ball.

quantdev1•6h ago
This is interesting. I’ve often thought about building a dashboard for my personal life, comparable to the dashboards I build for growth teams.

And then iterating on it over time, and I find what’s valuable and what’s not.

gopalv•6h ago
> What Trick of the Trade took you too long to learn?

"Everything worth doing is worth doing badly"

And as a corollary, every complex system that works came from a simple system that works.

I learned this in programming, but now I apply it on everything from motorcycle maintenance, home appliance repair to parenting.

--

Often the easier way to fix a complex system is to pretend that it could be simpler and then reintroduce the complexity-inducing requirements.

I had a professor who taught debugging as a whole another skill from programming and used to say "Most of programming is starting from an empty editor and debugging until your code works".

The debugging "lab" in Java course (in the year 2000) was one of my transformational after-school classes - where I got a java program which fits within 2-3 pages of print code with a bug and was told to go find it in print for ~20 minutes, then given 40 minutes with a debugger instead.

tstrimple•5h ago
> And as a corollary, every complex system that works came from a simple system that works.

"Do the simplest thing that works" is one of the few core architecture principles I stick my neck out for time and time again. Why write a simple function when you can spend a week accounting for every imagined corner case and implement modular expansion capabilities! Please... stop...

I empathize with the debugger story. If you're super deep in a language it makes sense to know the debugger inside and out. But stdout is universal and I've never been a specific language developer rather than being able to jump into whatever is needed.

tptacek•3h ago
Always have a stack of deli cups handy.
bravesoul2•3h ago
Make use of L1 wetware cache by learning how to do common things and dont make AI do them.
moralestapia•3h ago
Ship, even if it's crap.
mixmastamyk•3h ago
Environment variables can be expanded at the command line, just like files. Believe I started before it was a thing and never thought to check until twenty years later(?), when I hit the tab key by mistake. :-D
aghilmort•3h ago
read something new every day before going to bed

journal before you start your day

buy some sort of electric kettle

swader999•3h ago
Scala
lagniappe•3h ago
CIDR
brcmthrowaway•3h ago
tmux
scarface_74•2h ago
Learning that it is more important to know how to communicate, how to promote myself and the art of persuasion to get ahead than any technical skills I could know.
tjmc•2h ago
Easy transfers between different people's iThings with Airdrop. I got my CompSci degree over 30 years ago and yet my 74yo aunt taught me this - the shame!
hirvi74•2h ago
One other benefit, if it happens to matter to you, is that Airdropped files like photos or videos retain their original quality as opposed to taking a slight hit to quality when being transferred via text or email.
sureglymop•2h ago
Also good to know is that if you crop a picture in your iOS photos app and then airdrop it to someone, they can undo the crop in their photos app. It is a non-obviously non-destructive operation.
thebeardisred•2h ago
A shell script has to start with "#!" with no spaces before it. I spent about a week figuring that out 25+ years ago.
ramses0•1h ago
Similarly, it's `XXX=123`, and cannot be `XXX = 123` or `$XXX=123`.

Shellcheck (and Wooledge) are crucial!

david422•2h ago
When you buy a house and get a mortgage, you are going to be paying MUCH more in interest (than expected). Over the course of the mortgage, you are going to be paying MUCH more than the sticker price. Between closing costs and taxes and fees maintenance, you will need more cash than you think.

My advice is look at the numbers very carefully and choose something that is (below) or fits your budget. Sudden financial issues like the loss of a job or new vehicle purchase can put a big strain on all this.

bozhark•2h ago
Exactly, calculate total cost of loan vs. cost of purchase
mitthrowaway2•1h ago
What do you do when the people you're bidding against don't understand this?
hintklb•1h ago
it's called renting.

Americans are obsessed with owning a home at all cost. This means that you are effectively bidding against people that do not even do the math. They are ready to spend Millions of dollar on something that is comparatively cheap to rent.

The fact that absolutely everyone wants to buy pushed prices through the roof. The good news is that you can take the other side of this bet. it's called renting.

Currently in most places in the US you will save literally millions over the 30 year mortgage by renting and investing in the market instead.

Reminder that renting and owning is functionally almost exactly the same thing.

Never trust your realtor and never trust other homeowner that most of the time never did the math (We all know those people: "I bought my home for 500k 15 years ago. It is now worth 1M$, therefore I made 500k$").

In other words, let other people take the irrational side of this bet and take the rational side by renting. It's an arbitrage opportunity.

ameliaquining•1h ago
An important fact that this doesn't account for is that, in the United States, living in housing that you own is highly tax-advantaged, at least if you can get a mortgage on it. For example, mortgage interest is tax-deductible for owner-occupied housing (whereas landlords usually can't deduct interest on their mortgages and so those taxes are passed on to renters), and mortgage rates for owner-occupied housing are far below market due to government subsidies and guarantees (whereas landlords have to pay higher rates that, again, they pass on to renters). This isn't good policy, but as long as it's the case, buying a single-family home is a smarter financial choice for most Americans than renting one.
hintklb•1h ago
I live in the US and I'm aware of this. Those tax deductible interest should be calculated in the complex buy vs rent equation.

In fact, even when taking them into account, it still doesn't make sense for most Americans to own. (In today's market).

Renting and investing is still the way to go for at least 75% of Americans (this is slightly more nuanced for low cost of living areas, but hold true for any MCOL or HCOL areas).

Eventually the math could make sense again, but right now owning is a huge luxury that will cost you millions in the long run.

I invite you to play with this calculator: www.nytimes.com/interactive/2024/upshot/buy-rent-calculator.html

silisili•45m ago
It's not all numbers, though. Both have a lot of intangibles that can and should affect your decision.

Owning can feel suffocating at times, and like a ball and chain at others. You can't just decide you don't like it or the area anymore and go. Maintenance is also no joke.

Renting feels ephemeral. Getting kicked out at lease end sucks, it's hard to uproot everything and start over. Having inane rules and a landlord constantly drive by can make you feel both infantile and spied on.

I've done both off and on and those are my own thoughts on the two.

Financially only it's easy to pick a winner. But for some, one of these factors may be worth the extra however much money the difference is.

hintklb•35m ago
The best way to calculate those intangible is to associate a value to them, Most people love to say that owning is so good because they can decide on their own house improvement.

Ok, but how much do you really value this over? Is it worth 2M$ over 30 years? Because in a lot of cases this is what you leave on the table by deciding to own.

deanmoriarty•42m ago
I am a renter so I don't have a horse in this race, but renting is many times the financially worse choice even in HCOL.

Why? Because rent inflates like crazy over here! In the Bay Area 7%+ a year is completely expected, and 10% is not unusual. I have been all over the Bay Area for more than a decade (San Francisco proper, East Bay, South Bay) and know this well. It's been nuts.

Random example: the 1 bedroom apartment that I lived in 2012 and was then going for $1,500 a month, is now going for $3,800 in the exact same building (with no/minimal renovations it seems, I just looked it up). An ~8% YoY increase. That will do it to any buy vs rent calculator, very easy to break even in under 5 years, and that's excluding the speculative ability to refinance if interest rates go down from the current 7%, in which case it becomes a huge boost.

Renting as a long term choice just works in European countries where normal people can lock in 5+ year leases with no or minimal rent increases. America is too profit-seeking and greedy for that.

I still rent for flexibility reasons, but I definitely see it as a luxury lifestyle choice, the most financially responsible thing would be to buy, even in HCOL.

All this in my opinion and personal experience, totally fine if people see it differently.

hintklb•37m ago
SF is the poster child of a HCOL where buying makes absolutely no sense.

Even if rent increases a lot, the buy to rent ratio is so horrible that it could continue to increase for MANY more years before buying could make sense.

I invite you to use the NYT Rent or buy calculator, It is clear as day: www.nytimes.com/interactive/2024/upshot/buy-rent-calculator.html

deanmoriarty•32m ago
I just did, picturing exactly the situation I'm in right now:

- Rent: $3,500

- Home price: $700,000 (a similar unit just sold for this price a few months ago in my building)

- Rent increase: 8%

- All other parameters left as default, which seem reasonable (and as I said, there might be chances of refinancing over the next 10 years, which would drastically skew the picture, but I'm leaving that assumption out)

The ratio of 0.5% monthly rent/price is common for non-luxury "dated" condos all over the city, so I think my situation reflects well the typical renter.

Once again, in my personal experience, guided by a decade+ of living here, what people miss is the crazy rate of rent inflation. There is always a massive rent increase right around the corner, and God forbid if you are forced to move (because the landlord wants you to, it happened a couple times), then you take a gigantic hit at market rate. Once you factor in these occasional resets and the standard yearly increase, you get very close to 10% rent increase.

Cyph0n•36m ago
But mortgage interest is an itemized deduction, which means it only becomes a tax benefit when your interest + other deductions exceed the standard deduction. And if you do take the deduction, only the delta between it the standard deduction is a benefit.
nothercastle•3m ago
You wait and invest In something else and you try to convince your spouse that living in a super nice neighborhood as a renter isn’t a bad deal. But sometimes you lose rational arguments on feels and that’s just life
tootie•1h ago
Also, there's no shame in renting and it's frequently a better financial decision.
tibbar•2h ago
You can memorize the correct opening moves in chess. For maybe my first year playing chess, I just YOLO'd the opening moves. My judgement there was probably not much worse than the rest of my play, but with other players playing engine moves in the opening, I was probably in a losing position early on in most of my games. I gained about, I think, 100 ELO after learning some 3 or 4 move opening combinations.
01HNNWZ0MV43FF•2h ago
Always fix errors in reverse order, from the bottom of the file to the top. That way the line numbers don't change as you go.
65•1h ago
If you're selling something physical, always have free shipping. Include the price of shipping in the price of the product.

I guess people now expect free shipping via Amazon and boy does this make things sell faster.

hintklb•1h ago
Understanding the concept of Opportunity Cost and how it applies to everything in life.

- Buying a house: Is this the best return I can get on a downpayment. (Spoiler: It is not).

- Accepting a specific job offer: Is this the best way to spend 8 hours a day?

- Not making a successful trade, is as much as a loss than losing money explicitely on a trade.

- If you own something, you should consider what could you do with it's cash value if you sold it instead.

- If you have a paid off home, could you sell it and get a better ROI with the cash equivalent and rent instead? (The answer is yes and you should do it).

mvdtnz•37m ago
It's really sad when you hear about people living this way. Life isn't about profit maximisation.
aspanu•31m ago
As usual, I'd like to bring up that it is until you have enough profit for it to no longer be only about that.

Also regardless of the quality of the examples, it may be the case that the point (opportunity cost is important to consider) is still valid.

hintklb•28m ago
Thanks for clarifying. Being mindful of opportunity cost allows people to retire early, to spend more time with their loved ones, do better financial decisions.

I have seen too many of my loved ones work until their 70s because they didn't think about those concepts enough. That is what is sad.

hintklb•31m ago
So It's really sad to think about the value of time or things? Don't you implicitly do that every time you chose an activity over another? When you chose a job over another? when you chose to spend your time with a friend or with your wife?
vishnugupta•1h ago
Making sense of probability and statistics and incorporating them in day to day life.
quantdev1•1h ago
Do you have any examples of ways you incorporate them into your day-to-day?
chthonicdaemon•1h ago
Most people really cannot tell you what they want in any reasonable way. So expecting good specs for software without a very laborious interview and review process is pure wishful thinking. People "know what they like when they see it", so spend time rapid prototyping.

Smaller and more recent: iTerm has deep tmux support. Just do `tmux -CC` to start your session or `tmux -CC a` to attach to it and you don't have to memorise all the tmux commands.

hintklb•1h ago
Realizing that buying a house is absolutely not a good investment and that the whole society is on a narrative to convince more and more people to blindly buy (realtors, lenders, other homeowners, the governments, parents,...)

Doing the real math is the trick of the trade. The math for owning has been made so that it looks like a good deal while in reality it is not at all. Most people will literally compare mortgage to their rent, or "I sold my house I bought for 500k for 1M$, therefore I made 500k$".

Treat owning as a luxury item. The same way you would own a sport car or travel on a private jet. Do the (real) math and realize Owning is costing you money.

Also don't let yourself get emotional about buying a house. Society has made it look as if buying a house was a proof of success. A lot of research shows that once people buy they lose flexibility, feel more stuck, cannot access higher paying job in a different places etc. Renting has a ton of advantages.

This calculator get most things right. As an exercise, you can try to retroactively put the numbers for the house you bought and the rent equivalent. The results might surprise you: www.nytimes.com/interactive/2024/upshot/buy-rent-calculator.html

nothercastle•1h ago
There are a couple good resources on this. The nyt rent vs own calculator is good but also there is a great podcast episode (tailored for Canada but mostly the same in the us) https://rationalreminder.ca/podcast/323
hintklb•1h ago
You are exactly right and I will add this to my post.

This calculator get most things right. As an exercise, you can try to retroactively put the numbers for the house you bought and the rent equivalent. The results might surprise you: www.nytimes.com/interactive/2024/upshot/buy-rent-calculator.html

nothrabannosir•58m ago
*> Most people will literally compare mortgage to their rent, or "I sold my house I bought for 500k for 1M$, therefore I made 500k$".

I’ll bite: what’s the problem? If anything mortgage is even more favorable than rent because part of it goes to paying off the principal. Which is still your money, just in a different asset. But I guess you include this and still reach the opposite result?

Are you talking about taxes or maintenance or something ? Which country / locality? What time span? How many places are there where you would’ve been better off renting than buying in recent memory… not where I’ve lived but you never know!

hintklb•51m ago
Because the mortgage and the rent are completely different numbers.

The rent is the maximum you will ever pay for that period. The mortgage is the minimum you will pay and doesn't include the downpayment, repairs, HOA, Insurance and tax increases. It also doesn't include the closing costs, realtor costs, all the fees.

This is why the math is so complex. People easily forget all those fees and costs to make the math look simple.

This also takes into account that you invest into the US market and equity with all the cash that you would have had to spend on your house.

I'm talking about the US, but this holds true in multiple countries.

To answer your last question: In almost all HCOL (SF, Seattle, ...) you would have been way better renting than buying, except if you time it perfectly. If you look at today's market you would almost definitely be better renting than buying (But nobody knows the future...)

bigstrat2003•19m ago
This is just plain wrong. Let's break it down:

* Insurance and tax increases: real and you have to deal with them, but they don't go up as fast as rent does. Advantage: owning

* HOA fees: don't buy an HOA home, problem solved. You should do that anyway just because HOAs suck ass.

* Down payment: not a real cost, that money is yours in the form of equity

* Closing costs and other fees: real but completely negligible when amortized over the life of the home.

* Repairs: real, and they suck. This is the only place renting can stack up superior, but you can do a lot to mitigate this by doing your due diligence up front and not buying a dud house. Overall, unless you get unlucky you should come out ahead, but you can lose the die roll.

* Realtor costs: greatly depends. When we bought our house we paid zero, because the seller pays the buyer's costs. This can be a serious cost if you're changing houses a lot, but... just don't do that (for multiple reasons).

Overall, after buying my house 7 years ago I'm coming out ahead month over month (thanks to rent going up like clockwork every year, while my mortgage has stayed the same). By the time I die, I will be significantly ahead, and that's not even taking into account unrealized gains in the value of the property. Which I don't count for much, because my home is a place to live and not an investment vehicle. But maybe someday it'll do me good, or my heirs.

Owning a home really is a great deal for the vast majority of people in the US. It's not some society wide conspiracy, it's not an ad to get others into the market so you can benefit, it's the truth.

vayup•54m ago
As I grew older (and hopefully wiser), I have internalized investment returns is a lot more than sanitized numbers. I did the numbers and as a result did not buy much real estate when I was yonger. It was pretty clear, if I put the same cash outflow into stocks, I would come out ahead... Way ahead!

The things is, I didn't put the same cash outflow in stocks. For various reasons. But mainly, it was just not psychologically palatable to max out my investments on equity by streching my finances. With hindsight, given the buffer in most real estate investments (left with tangible assets, banks shouldering some of the risk etc.) it would have been a lot more psychologically palatable to investment my max in real estate.

My point is not that real estate is "best". But merely, there is a lot more to returns than cold numbers. If you think you already understand it, and are under 30, you are likely underestimating the significance of that. I know I did.

hintklb•45m ago
This is the argument that buying a house serves as a subpar, forced investment for most people.

But I don't know if I agree with you, I understood in my twenties that housing was generally a bad investment. We are now 10 years later and I invested everything in the stock market instead and came way ... way ahead than if I bough one or more houses.

I personally find it way way more scary to buy an average 2M$ house that could crash and lose half of its value overnight than the whole American economy that is relatively diversified. What happens if there is a fire in your neighborhood? Or if your city is the next Detroit? We have been made to believe a house is a safe investment. I personally think it's the scariest least diversified investment you could ever make.

bfg_9k•28m ago
You know I hear this all the time but it never quite makes sense to me. REA is inherently a better asset class than the vast majority of assets, simply because you can leverage up without a risk of being stopped out.

Doing the numbers on (most) developed economies, buying freehold housing is typically a worse investment than stocks before leverage, but after, RE almost always comes ahead. Nobody is going to let you mortgage a basket of stocks, but almost any bank will let you do that with a house.

That said - I hate this idea because I think this kind of thinking is what has lead to many of societies problems in the developed world at the moment. But, from a rational point of view the numbers make sense.

hintklb•24m ago
It's worse than that. Buying a house without leverage is a terrible investment.

The leverage is absolutely required because all the fees that come with real estate (Realtors, Interest, HOA, Taxes, Insurances, Closing costs, Downpayment opportunity cost,...). The leverage makes it an OK investment, but still historically not on the level of a diversified basket of stocks.

The leverage also works in both ways and essentially makes your house an even more risky asset. It supposes that it only ever goes up which has not always been the case historically.

nikkwong•53m ago
This is of course true if your house is not income producing. If you rent out rooms of your house, the calculus changes considerably.

…and now having viewed their calculator, I find it disingenuous that they haven’t added this as an additional configurable step, given how many bells and whistles their tool has. The takeaway from the tool is that you should never buy in HCOL areas, but renting out rooms in your unit is potentially a way to make it work out financially.

hintklb•40m ago
I don't know if I agree. On average renting a room out of your place is the same as buying a place as a rental investment with the difference you can claim you live there (which gives you some small tax advantage).

In general, real estate rental investment are terrible subpar investment. How would this be different?

jimsojim•1h ago
Excellence in anything is a byproduct of having fun. Fun is a byproduct of understanding. Understanding is a byproduct of going slow. Going slow is a byproduct of curiosity. Curiosity is a byproduct of saying "I don’t know," of shunning beliefs and attending to what is in front, with zero baggage or impositions of your own—shunning the ego in the moment, moment by moment. Excellence comes when each piece is as equal as any other, when preference is shunned, when space is created to allow what is in the moment, without resistance, without insistence.
duckkg5•45m ago
This is relatable. Once one gets over the frustration of failing and making mistakes (thousands of times in some cases), it becomes fun and easier to stay curious.
tootie•1h ago
You should never look at code and say "this should work". If it "should" work it would work. If it doesn't work, you definitely made a mistake. Poke every assumption one by one. Preferably with an interactive debugger.

This may seem obvious but when I was younger I used to spin out in frustration at bugs.

sagarpatil•1h ago
Claude Code recently showcased how powerful it can be when you don’t have to memorize commands. My AI agent works similarly. It finds the right CLI commands instead of relying on Playwright or an MCP server to perform tasks. What’s interesting is that even the agent doesn’t know many commands upfront; it simply uses the help option to discover what’s available.
kevinqi•50m ago
duplicate code is not that bad. reduce duplication over time as you find the common patterns/abstractions, instead of trying to build abstractions that don't fit the use cases
gwlperl•35m ago
Yes.
jcgrillo•43m ago
Learn how to stab your colleagues in the back and play petty mean spirited office politics games. That's most of what being employed in this industry actually is, and if you accept that now and optimize yourself around it you can save decades wasted trying to actually get good at doing tangible (albeit economically useless) things.