HNHacker News
TopNewBestAskShowJobs

ashwinsundar

333 karma · joined February 28, 2025

ashwinsundar dot com

ash,i,un,dar,at,g,mail,dot,com

submissionscomments
ashwinsundar··on Instrumenting Next.js with runtime secret injection
Looks like the Next.js gish-gallop machine is firing on all cylinders, augmented by generative AI.

    .env files are problematic because they often end up in version control or left lying on local disks unencrypted, increasing the risk of a secret leak. They're nearly impossible to manage securely at scale, are difficult to distribute across a team, and offer no access control or security.
Sure, if your developers live in a bubble and don't know any better. Otherwise, .env files are fantastic because they are dead simple. Keeping them out of VCS is simple. echo ".env" >> .gitignore.

Need to share a secret value? Use any number of secure communications systems your company has in place. Or generate your own from the system that is issuing secrets. It's not the 1950s, when sharing a secret was considered a national security endeavor. This doesn't need to be rocket science.

You can communicate what's supposed to go in the .env file with a .env.template file, with a list of env variables set equal to an empty string.

I'm glad they at least share the nightmare that is client-side environment variables. Prepare to waste days/weeks of your life sifting through unresolved issues in Next.js repo on GitHub, only to discover that you have to re-architect vast swaths of an application just so a secret (of any kind) is never required on the client. This is incredibly challenging and frustrating to deal with, especially when on a deadline and you're 95% done with a working solution.

In typical Next.js fashion, the official documentation for instrumentation.ts is complete dog crap. It's deceptively short, making the naive developer think it's simple to configure. In reality, you should first read through the 50 open and 71 closed GitHub issues related just to instrumentation (https://github.com/vercel/next.js/issues?q=is%3Aissue%20stat...), and make sure you understand all the undocumented ways in which instrumentation.js will destroy any semblance of productivity or enjoyment of programming.

I'd highly recommend staying away from the dumpster fire that is Next.js. It's too bad it's like the top skill asked for by employers these days, who seem to have no idea what they're signing up for.

ashwinsundar··on Ask HN: What is so good about MCP servers?
MCP is the programmatic link between traditional programming (deterministic) and a new style of programming using LLMs (non-deterministic)
ashwinsundar··on Ask HN: React vs. X
Learning React prepares you for a career working on React. If you hate it, don’t do it.
ashwinsundar··on Compression culture is making you stupid and uninteresting
Lol it's funny that you see my comment as a summary of the article, just because I used the word "summary". Pretty much validates the entire article
ashwinsundar··on Compression culture is making you stupid and uninteresting
I like this writing style. I like variety in the things I read. Not everything has to be optimized for efficiency, not everyone thinks like a developer or engineer. I agree with the second half of your comment though, most issues are "in the gray areas", not black/white
ashwinsundar··on Compression culture is making you stupid and uninteresting
I've noticed this lately too, I think everyone is like posing as an AI-influencer or something and copying the "Just use AI" slogan that everyone is repeating right now. What if I don't want to use AI for this problem, and instead want to learn a re-usable and more deterministic skill for debugging?
ashwinsundar··on Compression culture is making you stupid and uninteresting
Are comments like this productive? What is the point of just vaguely guessing that someone used AI to write something, with 0 proof other than some dim pattern-recognition comment? Is it possible that the opposite is true, ChatGPT was trained on writing (like this) and now mimics how good writers speak?
ashwinsundar··on Compression culture is making you stupid and uninteresting

    I think this can be worse than ignorance. It's the illusion of knowledge coupled with the confidence that comes from thinking you understand something you've never actually encountered. These people walk around armed with headlines masquerading as insights, ready to deploy half-digested talking points in conversations that require actual thought. They've become human echo chambers, amplifying signals they never bothered to decode.
This is such a good summary of what I feel like I've been observing (including in myself) for the last 15 years or so
ashwinsundar··on Jqfmt like gofmt, but for jq
A standard for what? It just makes JSON look nicer and more query-able. You don't have to use it.
ashwinsundar··on Why does it feel like computers are not getting faster
it's just a saying, it's not provable
ashwinsundar··on Claude Is Back on Windsurf
You should repeat this
ashwinsundar··on Show HN: Running Linux Inside Node.js
What is the use case for needing to run Linux inside of Node.js?
ashwinsundar··on The Value of Hitting the HN Front Page
How can you claim that "HN is not a marketing plan", when the entire post is literally about how to market via HN
ashwinsundar··on Why does it feel like computers are not getting faster
Wirth's Law -https://en.wikipedia.org/wiki/Wirth%27s_law
ashwinsundar··on Ask HN: Cases where MCP is useful, has anyone used it in production?
Haven't gotten something to production, but I made a toy project for interacting with real-time Congressional data from the Congress.gov API

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

ashwinsundar··on Ask HN: What's Your Useful Local LLM Stack?
Does the cost of a new computer not get factored in? I think I would need to spend $2000+ to run a decent model locally, and even then I can only run open source models

Not to mention, running a giant model locally for hours a day is sure to shorten the lifespan of the machine…

ashwinsundar··on Ask HN: What's Your Useful Local LLM Stack?
I just go outside when my internet is down for 15 minutes a year. Or tether to my cell phone plan if the need is urgent.

I don't see the point of a local AI stack, outside of privacy or some ethical concerns (which a local stack doesn't solve anyway imo). I also *only* have 24GB of RAM on my laptop, which it sounds like isn't enough to run any of the best models. Am I missing something by not upgrading and running a high-performance LLM on my machine?

ashwinsundar··on Happy 20th Birthday, Django
Custom tags and filters have been my escape hatches when the DTL is not taking me where I need to go.

https://docs.djangoproject.com/en/5.2/howto/custom-template-...

ashwinsundar··on Ask HN: How are you reviewing code with Claude Code?
The point of code review imo is to have a human-in-the-loop actually read the code and decide if it makes sense, in the broader context of the application. That means the human knows things that a linter, formatter, automated test-suite, or even AI agent doesn't know about.

If a computer is doing code review, then it's not a code review. It's an automated check. Even if it's done by AI

ashwinsundar··on Gaming cancer: How citizen science games could help cure disease
Ender’s Game for biology
ashwinsundar··on Things I learned from 5 years at Vercel
It's been a year since I was on the project and have since forgotten. I remember it being related to configuring security and middleware with the granularity required by a high-security client. There were other things too that were very hard to configure as soon as you stepped off the Dockerfile template provided by Next.js documentation.
ashwinsundar··on Things I learned from 5 years at Vercel
Nuxt joined Vercel earlier this week too - https://vercel.com/blog/nuxtlabs-joins-vercel
ashwinsundar··on Things I learned from 5 years at Vercel
I am not impressed with Next.js or Lee's evangelism (yes, in the religious sense) of their platform. Being forced to develop in Next.js for a major project was the last straw, and convinced me to abandon the Javascript/Typescript/Node.js ecosystem entirely for future web projects (where I have the choice). Dev-fluencers and Next.js evangelists who gish-gallop and provide (non)-responses to serious developer problems with Next.js convinced me that Vercel is building an elaborate cash grab, on the enterprise scale, and securing vendor lock-in for many years to come. Don't tell me that Next.js is easy to deploy in Docker either - it's not, I wrestled with that implementation for months and it was fragile/broken in a way that I suspect a native Vercel-deployment is not.

The current stack I'm using is Django/Python, HTMX, Alpine.js, and TailwindCSS. Yes I know the middle two use Javascript under the hood, there is no way around that for client interactivity. But they do support the HATEOAS principal (https://en.wikipedia.org/wiki/HATEOAS) which has been a breath of fresh air imo. The book "Hypermedia Systems" is also a great way to achieve the mental reset needed to abandon modern web frameworks and go back to things that actually work, in terms of web development.

ashwinsundar··on Ask HN: What makes an AI system an "agent" vs. just software with if-then logic?
agent is an AI buzzword. It's a black box for a non-deterministic system, with some deterministic connections and wrappers around the whole thing to simulate "security" and "guardrails"
ashwinsundar··on Intel Raptor Lake Crashing from EU Heat Wave
correlation is not causation
ashwinsundar··on Lead pigment in turmeric is the culprit in a global poisoning mystery (2024)
There is a much easier and reliable way to test it -> https://eatrightindia.gov.in/dart/#:~:text=Test%2014%20%3A%2...
ashwinsundar··on Lead pigment in turmeric is the culprit in a global poisoning mystery (2024)
https://eatrightindia.gov.in/dart/#:~:text=Test%2014%20%3A%2...
ashwinsundar··on Lead pigment in turmeric is the culprit in a global poisoning mystery (2024)
Yes but the coloring is easier to visually detect on the whole root, versus the powder (according to article). If you see bright yellow whole turmeric at a store, run away!

FYI real, fresh turmeric is a dull orange color with a tan papery skin. It still stains the hands and cutting board when chopped, but that's normal. As the root dries, it turns a dull yellow-orange.

ashwinsundar··on Lead pigment in turmeric is the culprit in a global poisoning mystery (2024)
I don't know why you're obsessed with whether India has the same problem. Maybe it hasn't been studied as extensively, or the turmeric there is healthier and hence doesn't need to be colored, or something else. Also the article doesn't say that India doesn't have this problem.
ashwinsundar··on Lead pigment in turmeric is the culprit in a global poisoning mystery (2024)

    Since billions of people eat turmeric every day (not the same set, but >1 billion each day, surely), if this was an issue we'd have known about it before now.
Yes we have known this is an issue for several years (https://news.stanford.edu/stories/2019/09/lead-found-turmeri...). Maybe you weren't aware.
← PreviousPage 3 of 6Next →