HNHacker News
TopNewBestAskShowJobs

shubhamjain

10,569 karma · joined December 28, 2012

Web geek. Love tinkering, building, and learning.

Currently working on: https://textquery.app/

-------------------------------------------

Blog: https://shubhamjain.co

Email: hi [at] shubhamjain.co

Twitter: @shubhamjainco

submissionscomments
shubhamjain··on Fast Cash vs. Slow Equity
The more apt framing of this article would be something along the lines, of "The Agency Trap." The author grew his marketing agency to $1M quickly. That might sound great for HNers here, but there are reasons why such businesses don't attract handsome valuations. You always have to keep grinding to keep the inflow of customers, you're never free, and growth is directly tied to the number of employees. Additionally, such business can have severe ups and downs depending upon market conditions.

Building a product, on the other hand, is slow at the start but after a point, the rewards start showing up. The inflow of cash is consistent and keeps growing while the costs remain the same.

There's nothing wrong with the agency business, but it'd be a smart bet to use at least some of the proceeds into building something long-term. Some agencies, notably 37signals, have been quite successful doing that. Most, though, never do it.

shubhamjain··on Bun 1.2 Is Released
Quite a lot of people have told Jared (Bun’s Author) the same thing, but his opinion is that Bun should have everything a basic project might need. Keeping it in core he can make it more optimized than it would be as third-party library.

It’s a misguided approach according to me. And I feel Jared has become way too ambitious. But what can I say, it’s his passion project.

shubhamjain··on My Struggle with Doom Scrolling
None of those ways are sustainable. Not only because there are good reasons to use those apps, but also because there are times when forcing yourself to work isn't going to work. I mean, if I am sick, tired, and just not feeling like working, I would go out of my way to beat the system I installed.

What has worked for me is: one-sec extension [1]. The extension asks you take a deep breath and confirms if I still want to open the app. What I have realized is I don't want to completely do away with time-sink websites, I only want to moderate my behavior of pressing Cmd-T and opening reddit/youtube/twitter in the middle of work. I have increased the length of the pause to 30 second and I am actively forcing myself to actually take the deep breath. Such a pause is enough to knock enough sense into me and return back to work. I think such kind of gentle nudging is better than being overly harsh on yourself.

[1]: https://chromewebstore.google.com/detail/one-sec-website-blo...

shubhamjain··on Why is Cloudflare Pages' bandwidth unlimited?
> Additionally, there's plenty of "Upgrade to Pro" buttons sprinkled about. It's the freemium model at work.

I don't think they care much about few "Pro" upgrades here and there. The real money, and their focus as a company, is in enterprise contracts. Note that, Matthew Prince, the CEO, had outlined a few reasons why they have such a generous free tier on an Stack Exchange answer[1]. I think the biggest reason is this:

> Bandwidth Chicken & Egg: in order to get the unit economics around bandwidth to offer competitive pricing at acceptable margins you need to have scale, but in order to get scale from paying users you need competitive pricing. Free customers early on helped us solve this chicken & egg problem. Today we continue to see that benefit in regions where our diversity of customers helps convince regional telecoms to peer with us locally, continuing to drive down our unit costs of bandwidth.

Cloudflare had decided long ago that they wanted to work at an incredible scale. I would actually be very interested in understanding how this vision came to be. Hope Matthew writes that book someday.

[1]: https://webmasters.stackexchange.com/a/88685.

shubhamjain··on Hetzner cuts traffic on US VPSs, raises prices
Possible theory why they did it: To my understanding, you don't pay for traffic, you pay for network capacity. Maybe US instances aren't getting the uptake they had hoped for, and they are looking lower some costs by reducing their network capacity (they are a very German company and care a lot about efficiency).

Hetzner is very cheap and still profitable because classic "economy of scale" and vertical integration. They own, build, and operate all their data centers. This comment goes into more details[1], but it's possible this doesn't really work out in a foreign location like US.

[1]: https://forumweb.hosting/13663-why-are-hetzners-dedicated-ho...

shubhamjain··on Hetzner cuts traffic on US VPSs, raises prices
The pricing applies immediately only for new customers. For existing ones, it applies from Feb 2025.
shubhamjain··on Hetzner cuts traffic on US VPSs, raises prices
They already offer it on their European servers and it's still unchanged. Also, just because it's included doesn't mean everyone is using it to their full capacity.
shubhamjain··on Poisoning the Day
Focusing on a small unit of work (e.g, a day), can make you lose sight of the bigger picture, like how you need a break, or what you’re working on isn’t motivating anymore, which is why I kind of dislike most productivity advice.

Too much focus on how to optimise your day, your schedule and not much emphasis on how to feel motivated about work you’re doing.

shubhamjain··on Fly.io outage – resolved
This is probably 5th or 6th major outage from Fly.io that I have personally seen. Pretty sure there were many others and some just went unnoticed. I recommended the service to a friend, and within two days he faced two outages.

Fly.io seriously needs to get it together. Why it hasn’t happened yet is a mystery to me. They have a good product but stability needs to be an absolute top for a hosting service. Everything else is secondary.

shubhamjain··on The Hidden Tax Trap for SaaS Founders in Germany
Is there actually any sane country to do SaaS business except the US? It's insane how easy it's to start an LLC in US, set up a bank account, do your taxes, without ever leaving your home. Hell, you can start it as a foreigner, opt for pass-through taxation, and pay taxes at your tax residence.

I mean, I get higher taxes, I just don't understand why you want to make it so hard to start and operate a company.

shubhamjain··on Docker Compose Isn't Enough
Yup, I was surprised how weak the arguments were. I mean, surely there are better reasons why docker compose fails to scale? I have been pretty happy with it right now, and haven't felt the need to try something like k8s or docker swarm.
shubhamjain··on I Lost $210 to a Stripe Dispute Despite Proof
> they resorted to finger-pointing.

This is not finger-pointing. This is literally how disputes work. Stripe has no role to play in this and they have clarified this in their docs:

> Throughout this process, Stripe facilitates your case, but doesn’t have influence over the outcome, which is at the sole discretion of the account owner’s bank.

-----

> This is a lie because I never even sent them the IP address since that isn't shown in the evidence I submitted.

What if they already have a record of IP address of who did the transaction and they are saying that it doesn't match the geolocation of the customer?

shubhamjain··on Bluesky adds 700k new users in a week
It's beyond words how much Elon Musk has wrecked Twitter. But, I am not ready join another echo chamber that mirrors the same flaws from the other side of the spectrum. My initial impression of BlueSky is just that.

Twitter's greatest flaw—no, I won’t call it "X"—is its obsession with engagement to promote tweets. This creates the worst feed you can think of:

- People ask the dumbest questions, just to bait responses.

- Someone makes a reasonable point, and along comes the dumbest reply. Why? So others can pile on, calling them out, driving up engagement.

- External links are buried. Good articles? Forget it. They’ve vanished from my feed.

- The most toxic people are constantly pushed to my feed. And it's a losing battle to block them all. Keeping my feed politics-free is borderline impossible.

- The fact that you can buy a subscription and ensure that your tweets get highlighted more is absurd. It has made it really easy to get the worst accounts in your feed.

It’s exhausting. I am just there because I think it is still a good marketing channel. But I am not sure anymore if the pros outweigh the cons.

shubhamjain··on My Time Working at Stripe
Every company I have worked at I have hit this point of mental health collapse, just like OP. At this point, I can try everything—"Treating it just as a job", "finding happiness elsewhere", "just get shit done"—but nothing works. For a long while, I only found myself to blame. I felt idiotic for not having the energy to work like everyone else does.

Past one and a half years, have been years of self-discovery. I have been hacking on projects full-time (hopefully, I will make sustainable money soon). And it's been so fun, and relieving, and joyful to direct your creative energy to projects, with no authority to answer to. It's not without difficult times though. Sometimes, I feel blocked to the point of abandoning months of hard work, but I am slowly learning how to avoid those situations.

Honestly, everything I was advised was a lie (or at least, didn't work for me). I like being able to shape things, and use my creative energy to do useful things. Politics, and bureaucratic processes, drain my energy to an extent that I simply can't function. And no matter how hard I try, I can't ignore it with the mindset of "it's just a job." I can't find happiness in "being promoted" or whatever rating I am given.

I just want to ship good software. When I am driven, I will forget about everything and just dive in to solve the problem. Sadly though, it's not an easy ask in a modern-day corporate environment.

So, I would say what you're experiencing is normal in many ways. Don't kill yourself over it. If you have a list of fun projects, attempt them. For many of us, creative energy is precious, and needs to be directed well to keep ourselves sane.

shubhamjain··on The carefulness knob
Thanks for saying this. This mindset has infiltrated all the engineering teams and made software development hell for those of us who actually like shipping. Being more careful, adding more checks and processes, has exponentially less returns (just invert the graph). Somehow though, teams have been lead to believe that each incident needs to be responded with more processes.
shubhamjain··on Ask HN: Website with 6^16 subpages and 80k+ daily bots
Unless your website has real humans visiting it, there's not a lot of value, I am afraid. The idea of many dynamically generated pages isn't new or unique. IPInfo[1] has 4B sub-pages for every IPv4 address. CompressJPEG[2] has lot of sub-pages to answer the query, "resize image to a x b". ColorHexa[3] has sub-pages for all hex colors. The easiest way to monetize is signup for AdSense and throw some ads on the page.

[1]: https://ipinfo.io/185.192.69.2

[2]: https://compressjpeg.online/resize-image-to-512x512

[3]: https://www.colorhexa.com/553390

shubhamjain··on WordPress Alternatives
If you don't mind paying a few bucks a month, you can give my service [1] a try. I actually designed it with that specific use-case in mind. Handling images is the biggest PITA for static-site generators.

There are other image CDNs (Cloudinary, Imagekit, Imgix) but they have been designed for developers and are prohibitively expensive beyond their free-tier.

[1]: https://magecdn.com/

shubhamjain··on Show HN: I made a super-simple image CDN
It might work depending on how Imgur chooses to police this, but it's explicitly prohibited [1].

> Also, don't use Imgur to host image libraries you link to from elsewhere, content for your website, advertising, avatars, or anything else that turns us into your content delivery network

Imgur did shut down direct links to images being shared. Now they direct to the webpage:

http://i.imgur.com/FPyso27.png

So in the future, we might expect Imgur to only allow its own website as a valid referer.

[1]: https://imgur.com/tos

shubhamjain··on Show HN: I made a super-simple image CDN
1. It doesn't seem BunnyCDN offers format conversions. This can be pretty important if you have screenshots in PNG and you want to host them in a more optimized format.

2. It costs $9/mo/website, in addition to the bandwidth. We don't charge by websites at all.

3. It does solve the problem of optimization, and serving, but not really of storage. You'd still have to upload the files somewhere. BunnyCDN does have a storage option. But it isn't geared toward images (for eg, you can't paste screenshots).

More importantly, with BunnyCDN you'd have to configure pull zone, storage zone, enable optimizer before you can start serving images. MageCDN is plug-and-play!

shubhamjain··on Show HN: I made a super-simple image CDN
BunnyCDN, the one I am using, does offer DDoS protection[1]. I would say that there's some inherent risk in that happening when you're using a CDN or hosting for that matter. None of the CDNs I know offer a spending limit. But as a small business, I am willing to understand the situation and waive off the charges on case-to-case basis.

On the other hand, if you incurred that kind of egress on Cloudfront, you'd have no option but to pay. The bigger platforms rarely budge in these kind of situations.

I would also add that large-scale DDoS attacks (something like 80+TB!!) are unusual, especially when the target is just a small website.

[1]: https://bunny.net/network/ddos-protection/

shubhamjain··on Show HN: I made a super-simple image CDN
This was one of the main reasons I didn't offer a free plan. Currently, there are no automated checks since there isn't a huge volume and it's pretty doable manually. But if the scope of abuse grows, I am willing to explore some options.

We do have it clarified what kind of content is prohibited under terms of use and how that can result in account being suspended.

shubhamjain··on YC criticized for backing AI startup that simply cloned another AI startup
This reminds me of another clone that YC backed: Athens Research[1]. Supposedly, open-source alternative to Roam Research. The company barely lasted for two years before shutting down[1]. While it's laudable to create open-source alternative, I always believed copying in such cases should be spiritual, not blatant, where even your name is just a derivative of the original.

YC's decision-making has become very questionable in the past few years, and though it's cliche to say this, it just resembles a textbook fad-chasing VC firm. YC latest batch includes LumenOrbit, a startup building data-center in the space[2]. The idea is not only impractical, it's simply pointless. I am no space scientist, but I could smell the BS just from the mission statement. Amazing that smart guys at YC couldn't.

[1]: https://x.com/AthensResearch/status/1591138491379122176

[2]: https://x.com/ycombinator/status/1831074690384978072

shubhamjain··on TSMC execs allegedly dismissed OpenAI CEO Sam Altman as 'podcasting bro'
Most of the expense can probably be attributed to training and operating their free-tier. They can shut off both of them any day and become insanely profitable. I don't think people realize the sheer magnitude of reaching $3B ARR in under two years. Is there an AI hype? Sure. Is it a crypto-like bubble just where everyone is just peddling BS? No, not even close.
shubhamjain··on Minimal Web
Motherfucking Website[1] Law: Every year, someone reinvents a minimalistic, no-nonsense website concept / CSS framework.

[1]: https://motherfuckingwebsite.com/

shubhamjain··on OpenAI is good at unminifying code
I use node.js, but I think it will work for anything. I recommend trying small chunks first vs dumping your whole file.
shubhamjain··on OpenAI is good at unminifying code
An interesting use-case of this capability is refactoring, which, for me, ChatGPT has been unmistakably good at. It's amazing how I can throw garbage code I wrote at ChatGPT, ask it to refactor, and get clean code that I can use without worrying if it's going to work or not, because in 99% of cases it works without breaking anything.
shubhamjain··on Removing stuff is never obvious yet often better
In most cases though, anticipating requirements results in building things you don't need. And if you do need them, you usually end up needing a very different form of it. The worst codebase I have worked on is the one that was designed with some complex future-use in mind. In your example as well, the codebase only required columns a year later. So I think removing all chunks of code that anticipate a future need sets the right precedent, even if you end up needing it eventually.
shubhamjain··on Removing stuff is never obvious yet often better
The problem is that it's easy to prove that signups are increasing, and lot harder to prove that there was a measurable increase in number of paying users. Most A/B tests focus on the former, very few on the latter. We had a free plan, and most users who signed up never made a single API request. So, assuming that the increase in signups is driving more business is just foolhardy.
shubhamjain··on Removing stuff is never obvious yet often better
Absolutely true! An A/B test enthusiast in our team once significantly reduced padding on the pricing page to bring the signup button above the fold and used the increase in signup button clicks as a proof of success of the experiment. Of course, the pricing page became plain ugly, but that didn't matter, because "Signups are increasing!!"

In this case, I do agree that the calculator is a bit daunting if you're not used to all the terms, but what should be done with it should have been an intuitive decision ("what can we do to simplify the calculator?") Not a fan of A/B testing culture that everything needs to be statistically analyzed and proved.

shubhamjain··on Ask HN: What are you working on (August 2024)?
I am working on a simple image-hosting service. Imagine Imgur, but you can backlink. Additionally, you can resize, crop, and optimize images on the fly. Here's a sample PNG being served as WEBP[1] reduced from 1.5MB to 75KB (no visible reduction in quality, original image [2])

Not a sexy idea, of course. However, I couldn't find any solution that fit my needs for my SSG blog. Services like Cloudinary, and Imagekit are too developer-focused, and popular image sharing websites like Imgur don't allow backlinking.

[1]: https://i.magecdn.com/d2b508/574114_cleanshot_2024_08_25_at_...

[2]: https://i.magecdn.com/d2b508/574114_cleanshot_2024_08_25_at_...

← PreviousPage 4 of 30Next →