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 We Have to Start Over: From Atom to Zed
I used Zed for a while. The biggest performance improvements I noticed, compared to VS Code, were in start-up times and the opening of files. Sure, Zed feels snappy in those areas, but I feel VS Code is simply not that bad speed-wise when it comes to everyday coding. Especially, in the era of M1 Macs. Zed may win the battle in the longer term, but I feel slow performance has to truly annoy the fuck out of the user to convince them to make the switch. Right now, I am sticking with VS Code.
shubhamjain··on From engineer to manager: what I love, what I hate
Another point: there many more senior+staff engineer roles than EM roles. Once you become an EM, it's much harder to make a switch, because:

a) the roles are fewer

b) companies are wary of bringing in an EM for a team (prefer to promote within the ranks, in my experience).

c) switching from EM to a senior engineer role is hard both because it feels like a downgrade and because I see companies not that willing to offer it.

Of course, if the company is on the right course, you've hit a jackpot and can become an important leader few years down the line, but I know many EMs who are trapped in a bad org because of this. I believe engineers transitioning to a management role should keep these things in mind. I prefer making less bucks and keep my peace of mind about moving somewhere else.

shubhamjain··on From engineer to manager: what I love, what I hate
> Suffering from front-end fatigue? Can't keep up with the newest shiniest frameworks and tools? Management's got you covered! The "hot new" agile / kanban / scrum methodologies are 20–30 years old. The basic meeting types (demos, dailies, 1-on-1s) have been developing for centuries.

> Frankly, after 4–5 years of working in a particular tech area, you can solve the vast majority of practical problems well enough. If you want some work challenge, you can:

I hate takes like these. "Good technical skills are dime a dozen, but management? that's the hard shit."

There's absolutely no lack of meaningful skills you can expand into if you're plateauing as an engineer. If you're a front-end engineer, go learn some design and product thinking, that'll help you give better input to other teams. Learn some scripting, and automate a bunch of shit. Learn some SQL and learn to query data on your own, instead of relying on others.

The best manager I had had a wide range of technical skills, so was able to make smart decisions since he had a very holistic picture of the codebase. Technical management shouldn't be about following methodologies, doing 1:1s, and being a middleman, it should be about making good practical decisions.

shubhamjain··on SQL for data scientists in 100 queries
Shameless Plug: If anyone here wants to practice their SQL, they are welcome to try my Mac app: TextQuery [1]. I built it because I wanted to quickly import CSV datasets and run SQL queries on them. I don't think there could be a more fun way to learn SQL than to jump in and start analyzing thousands of public datasets. Sure, you can use CLI/Code as well, but GUI is often faster and easier. Currently, the app is in the beta period and free-to-use. When launched, you'll get to keep the latest beta version.

[1]: https://textquery.app/

shubhamjain··on Ask HN: Looking for Beta Users for My First Mac App, TextQuery
Inline links to make it easier to check them:

- Demo Video: https://www.youtube.com/watch?v=_7TUx8i3WeI

- Beta Invite Form: https://tally.so/r/mDzR0N

shubhamjain··on The Needless Bullshit of Having a 'Mission'
I should have worded the title better. I have covered what you've said later in the article:

> I must clarify that my complaint isn’t against having mission statements because some of them do make sense and describe the company’s culture and the products they ship.

>> Honest Tea: To create and promote great-tasting, healthy, organic beverages.

>> Patagonia: Build the best product, Cause no unnecessary harm, Use business to protect nature, Not bound by convention.

>> IKEA: To offer a wide range of well-designed, functional home furnishing products at prices so low that as many people as possible will be able to afford them

shubhamjain··on How to forget what you read
> The first reason for this is that forgetting is a filter. When something you read resonates with you sufficiently for you to recall it without effort, that means something; it means it connects with your ideas and experiences in some relevant way.

I take an issue with this assumption. When I leaf through my past notes, highlights—hell, even stuff I have written myself—I am surprised at many relevant things that I completely forgot about. It's true forgetting is a filter, but one mustn't underestimate the brain's capacity to forget useful stuff too. Maybe it's something you didn't need in a while, and need it now. Maybe it has become more relevant than it was in the past. For eg, I have restarted journaling recently, and this highlight from "On Writing Well", immediately hit me:

> “Go to your desk on Monday morning and write about some event that’s still vivid in your memory,” he says. “It doesn’t have to be long—three pages, five pages—but it should have a beginning and an end. Put that episode in a folder and get on with your life. On Tuesday morning, do the same thing. … Take whatever memory comes calling; your subconscious mind, having been put to work, will start delivering your past.

It's written for a different context, but it made me realize a different way to approach my journaling.

However, I agree wanting to retain everything is needlessly ambitious, and counter-productive. I was once obsessed with making notes about everything I read, but soon, I realized how unenjoyable it was making my reading. The better approach, I found, is to just make highlights. And go over them once in a while (a few months or so). That's enough of a knowledge-retention system for me.

shubhamjain··on We have reached an agreement in principle for Sam to return to OpenAI as CEO
At the end of the day, we still don't know what exactly happened and probably, never will. However, it seems clear there was a rift between Rapid Commercialization (Team Sam) and Upholding the Original Principles (Team Helen/Ilya). I think the tensions were brewing for quite a while, as it's evident from an article written even before GPT-3 [1].

> Over time, it has allowed a fierce competitiveness and mounting pressure for ever more funding to erode its founding ideals of transparency, openness, and collaboration

Team Helen acted in panic, but they believed they would win since they were upholding the principles the org was founded on. But they never had a chance. I think only a minority of the general public truly cares about AI Safety, the rest are happy seeing ChatGPT helping with their homework. I know it's easy to ridicule the sheer stupidity the board acted with (and justifiably so), but take a moment to think of the other side. If you truly believed that Superhuman AI was near, and it could act with malice, won't you try to slow things down a bit?

Honestly, I myself can't take the threat seriously. But, I do want to understand it more deeply than before. Maybe, it isn't without substance as I thought it to be. Hopefully, there won't be a day when Team Helen gets to say, "This is exactly what we wanted to prevent."

[1]: https://www.technologyreview.com/2020/02/17/844721/ai-openai...

shubhamjain··on OpenAI's chaos does not add up
I know it's a hot topic. There are at least eight stories on the front page related to the chaos. But can we please stop upvoting each and everything? The article is just seven facts, all of which we know already. There's not enough information to speculate what exactly happened and it would be foolish to do so. Let the dust settle!
shubhamjain··on Sam Altman, Greg Brockman and others to join Microsoft
I am not claiming how right or wrong the final outcome would be, but owning the technology with a clear "for-profit" objective is definitely a better structure for Microsoft and for Sam Altman as well (considering, his plans for the future). I have no opinion on AI risk. I just think that a super valuable technology under a non-profit objective was simply an untenable structure, regardless of potential threats.
shubhamjain··on Sam Altman, Greg Brockman and others to join Microsoft
Have to give it to Satya. There's a thin possibility that Microsoft would have to write-off its whole $10B (or more?) investment in OpenAI, but that isn't Satya's focus. The focus is on what he can do next. Maybe, recruit the most formidable AI team in the world, removed from the shackles of an awkward non-profit owning a for-profit company? Give enough (cash) incentives and most of OpenAI employees would have no qualms about following Sam and Greg. It will take time for sure, but Microsoft can now capture even a bigger slice of THE FUTURE than it was possible with OpenAI investment.
shubhamjain··on Ask HN: What's your go-to webhost in 2023 for simple websites?
No offence, there's a bit of stubbornness when someone says, "I used an FTP client to upload whatever I wanted by a process that was pretty obvious." Git + Pages/Netlify is a different setup than FTP for sure, but it isn't more complicated. Just connect your git repo with Cloudflare pages and push things to it. If you don't like CLI, there are plenty of git clients to do the job. Hell, you can edit files on Github repo itself.

The reason I say this is, because as I have grown senior, I started noticing similar stubbornness in myself ("This was so much easy back in our days") and attitude of refusing to learn that came with it. I don't deny that some of the complexity in the web world is unwarranted, but when I refuse to invest my time in even trying to understand new solutions, I fail to acknowledge the benefits as well.

In the FTP days, it was easy to crash the whole site because of bad code that creeped in and no easy to way to decipher what change caused it. Cloudflare pages allow my to restore my site to any point of time and makes it easier to keep track of changes.

I think it's important to keep an open mind when it comes to new solutions.

shubhamjain··on You're barely managing
> We're going to be a big company, we thought. So let's hire "professional managers." We went out and hired a bunch of professional management, and it didn't work at all.

> They knew how to manage, but they didn't know how to do anything.

> You know who the best managers are? They're the great individual contributors who never, ever want to be a manager, but decide they want to be a manager, because no one else is going to be able to do as good a job as them.

> -- Steve Jobs

YMMV, but best managers I worked under were extremely competent programmers and had an eye for the big-picture stuff. They knew when to intervene and when to leave engineers to their own devices. It's when managers start to think their job is to create specs, run & enforce sprint boards, and create processes upon processes, that working under becomes a torture. So, yes, I would say 'barely managing' is a feature, not a bug.

shubhamjain··on The IPv6 mess (2002)
Yeah, it's a stupid comment. I don't know what I was thinking. Wish I could delete it.
shubhamjain··on The IPv6 mess (2002)
Even with IPv6 we are not abandoning NAT. There are good reasons to have a single point of access / control. Do we really see billions of devices connected independently to the internet?
shubhamjain··on The IPv6 mess (2002)
I do wonder if things would have been fine if had just added another octet. We would still have had enough addresses to not need more for the forseeable future. Some may disagree, but a trillion addresses are fine for human population which is going plateau soon. I am not a network engineer, but I believe it would have been far easier to make the two versions interoperable. The number of addresses possible with IPv6 are too much for its own good. The ranges are absurdly long and far apart. Add to the difficulty to communicate and understand an address filled with hex-codes. I think IPv6 solved more problems than that were actually needed.
shubhamjain··on What I would do if I ran Tarsnap (2014)
I applaud Colin's (Tarsnap Founder) attitude. Sure it could be priced better. Sure it could make much, much more than it currently does. But I dislike the notion that every software company needs to optimize for the same things. Tarsnap is a service that I am sure makes comfortable amount of money for its founder and has remained faithful to its initial audience. Why does anything other than that matters? Yes, some things Patrick points out are indeed low-hanging fruits, but I believe it's a conscious decision to completely ignore all the "optimisation" aspects.

Tarsnap doesn't even have any tracker on its homepage. Tarsnap has had the same basic pricing structure for the past ten years. It does one thing and does it well. I hate the pursuit of growth and everything that comes as a result: bloat, shiny landing pages, a/b testing, conversation rate optimisation.

Reminds me of the adage of a Mexican fisherman.

> “Afterwards? Well my friend, that’s when it gets really interesting,” answered the tourist, laughing. “When your business gets really big, you can start buying and selling stocks and make millions!”

> “Millions? Really? And after that?” asked the fishermen.

> “After that you’ll be able to retire, live in a tiny village near the coast, sleep late, play with your children, catch a few fish, take a siesta with your wife and spend your evenings drinking and enjoying your friends.”

> “With all due respect sir, but that’s exactly what we are doing now. So what’s the point wasting twenty-five years?” asked the Mexicans.

shubhamjain··on Indian developer fired 90 percent of tech support team, outsourced the job to AI
I know of a company whose CEO and upper management cheered when there were hints that their chatbot solution was going to solve a lot of tickets on its own. "We are going to replace these tech support monkeys," were the exact words. I found it surprising at that time that someone could be so boastful about their lack of empathy. But the words never reached the wider public.

Reading this news, I had a deja vu to that. And it makes me wonder how common are these kind of obnoxious sentiments in the corporate/startup world, and how we hear only fraction of them.

shubhamjain··on 3M reaches $10.3B settlement over PFAS contamination of water systems
Yeah, sure! Someone bribed a 11y old account, from India, risked everything just to post on a forum no one in the general public cares about. Typical HN brains! When you can't fight with facts, just paint it with an idiotic conspiracy.
shubhamjain··on Ask HN: I have 10 yrs of Exp. Failed 4 takehome projects. What am I doing wrong?
Honestly, your code looks great. Yes, there are thousands things that can be done better, so there will always be people saying so (just like in this thread). But that's no reason to deny a candidate a chance. Mature companies realize this and aren't really looking for the perfect code. They are more interested in the thought process behind the assignment. I think you're just having a hard luck, specially with a tight tech job market.
shubhamjain··on Show HN: Workout.lol – a web app to easily create a workout routine
What an awesome execution. This app goes to show how you can build an excellent product even in a crowded market like Fitness. There must be gazillion workout builders out there, but OP's is the first one that I have seen which shows every exercise with example videos, and allows you to build exact workout you need without multiple google searches.
shubhamjain··on 3M reaches $10.3B settlement over PFAS contamination of water systems
Surely, lot of words about how these chemicals don't degrade naturally, but none about the actual impact. Same like microplastics. Not denying that PFAS can't be harmful, but how can we prosecute just on the basis of the fact that these chemicals exist, when the evidence of harm is inconclusive? Stuart Ritchie is my favorite health journalist to refer to whenever it comes to things like these [1]:

> Some of the evidence comes from animal studies: studies have claimed that exposing rats and mice to the chemicals has negative effects on their ability to reproduce. The problem—aside from the inherent problem with comparing non-human animals to human ones—is that the concentrations of the chemicals are normally far, far higher in the animal studies than they are for humans in everyday life. As with all “toxins”, the dose makes the poison: something that is harmful to health at high levels could be entirely safe if the average person never has very much of it in their system.

> The Guardian – which has published dozens of articles about these “dangerous”, “potentially toxic” chemicals in the last few years – called the new research “the first known study on the effects of PFAS on female fertility”. That’s a little odd, since earlier this year a review study put together 13 previous such studies, drawing the conclusion that “increased levels of PFAS exposure are associated with reduced fertility in women”.

> As with all such reviews, that conclusion is dependent on the quality and consistency of the underlying 13 studies. Unfortunately, the studies we have are all over the place: even though on average they point to an association of PFAS with lower fertility, the estimate of the size of the association varies a great deal from study to study.

[1]: https://inews.co.uk/news/forever-chemicals-fertility-study-l...

shubhamjain··on Tailwind and the Beauty of Ugly Code
I do agree, it's easy to abandon classes altogether. It's also a bit concerning that newer devs are starting with Tailwind. At the same time, I think one should be able to notice that certain styling is just getting repeated everywhere and abstracting it out makes sense.

What I actually like about Tailwind is not that you don't have to create classes at all, it's that you don't have to do it for things that don't need it. My old codebase was littered with hundreds of classes doing the same set of styling — padding, margins, flex-box stuff. That's the biggest thing Tailwind helps with.

shubhamjain··on Tailwind and the Beauty of Ugly Code
I don't understand why it's an either/or between Tailwind vs using CSS classes. Tailwind is awesome. At the same time, no, repeating the same styles for links, buttons again and again isn't great. Code littered with hundreds of classes is plain ugly and makes it hard to read and work on. This[1] is a valid complaint about Tailwind. The < span > at the end has nearly 20+ classes.

At some point, you should abstract some set of classes. In some cases, CSS selectors and other CSS feature will allow you to do what you want with far fewer lines of code.

[1]: https://twitter.com/xirclebox/status/1673557143088242689

shubhamjain··on Astro framework lowers competitors by ~40% on performance graph to looks better
> Imagine if Tailwind or Laravel forced you into funky .tailwind/.laravel named files because they felt a certain way about their name.

> I took this as a sign that Astro might become a very money hunger shark at the first drop of blood like other popular CMS providers have done in recent memory.

You’re reading way more than what’s reasonable. Vue, React, Svelte have their own file types. The reason has nothing to do with branding. Astro’s syntax is just different from anything that exists and having a dedicated file type makes sense.

shubhamjain··on What Do the Best Investors Do That the Rest Don’t?
Yes, there are. I won't say it's easy, but it's possible to outperform the market without relying on the element of luck over a long term. Often, you don't hear about these folks because they are succeeding at a much smaller scale.

The reason is simple. The market, even rational as it is, gives you chances to make a great deal of money. META was $89 only a few months back. APPL was once trading at P/E of 10. TSLA is now 2.5x from its recent bottom. Of course, the boat has sailed now. Now, you can say investors who made money here were just lucky, or you can see how they ignored the temporary negative sentiment and invested in a company with solid fundamentals.

It's a myth that you can't beat the market. If you know how to seize an opportunity, you perfectly can. My investment philosophy is to keep investing in ETFs, but also keep an eye on bargains.

shubhamjain··on Ask HN: Which book has had the most meaningful contribution in your life?
_Four Thousand Weeks: Time Management for Mortals_ and _Surely You're Joking, Mr. Feynman!_. I always thought myself as a deeply ambitious person who wanted to do something significant. The mindset did help me grow, but it came at the cost of my mental health. Doubting every second if you're making good use of time isn't a great way to live. Both of those books helped me appreciate having a decent carefree life, where doing things matter without expecting (i.e, following your creative spirit).
shubhamjain··on Why Perl?
> Perl has a small set of core syntax and is very extensible and flexible in adopting new paradigms.

This is actually a deep flaw, rather than an advantage. There are so many ways to do a single thing in Perl that you just give up seeing them in the wild. It would take months or years of practice to get comfortable with every nuance of Perl. Even Google fails to help often (try Googling what "$_%@" means). I get it; the terseness can feel for an advanced user, but folks like me, the verbosity of Python and Javascript is much more preferable.

shubhamjain··on Ask HN: What are some popular books affected by replication crisis?
One of a the famous study quoted in the book is how hungry judges (working before the lunch) delivery harsher sentences. The study failed to account for vastly more plausible explanations like scheduling of cases [1].

[1]: https://inews.co.uk/news/do-judges-give-out-tougher-sentence...

shubhamjain··on Same Stop: Life after 26 years as a programmer for Apple
> The respite from programming though lasted maybe about four months after retiring. I started a small project , in part to learn Python, in part to play with e-ink displays. I was back programming (back abusing git) but of course the pressure was off. It both was and wasn’t like the day job I had left behind.

This is one reasons I got disillusioned with FIRE and the concept of early retirement. Programming was my first love. There might be phases where I just get sick of technology, but most of them have proven to be temporary. It's the best, the most versatile medium of my creative energy. I don't plan to stop doing it ever. What I actually dislike is the corporatisation of programming—JIRA Tasks, PRD, Stand-up meetings, Stakeholder meetings.

I don't want early retirement. I want to work in a small team with a good product vision and a strong shipping culture. But it has proven to rare in my professional experience. For me, alternative is to keep taking breaks. Few months, once in a while, to work and experiment on my own ideas. This allows me to keep my creative spirit alive and (possibly) to make money that gives me the freedom to explore them more.

← PreviousPage 6 of 30Next →