Hacker News .hnnew | past | comments | ask | show | jobs | submit | dsego's commentslogin

It's all in the details, eg. in sublime if you use the goto panel and highlight a file it will immediately show a preview, in zed you have to click on it, so you lose the snappy feeling.

Not related to beans, but I had serious issues with bloating, gas and bad smell comparable to sewage. It went on for years until I had a short massage to adjust my stomach, the lady was pushing and shifting things around. This was a few months ago. Ever since I haven't had that type of gas, and I burp now which I haven't for years. I didn't change my diet at all.

Not my field, but I wonder if this could have been a case of a bezoar of some kind, perhaps Phytobezoar[0], that got loosened by the massage?

After seeing reports[1] a few years back about the use of Coke as a non invasive way to clean these out, I now drink the stuff when my stomach is upset. With n=1 I can report it has a real effect on me.

[0]: https://en.wikipedia.org/wiki/Phytobezoar

[1]: https://pmc.ncbi.nlm.nih.gov/articles/PMC3292399/


I clicked the link out of interest but am quite happy that the article had no image.

Could be, almost like something was trapped and fermented inside.

Years of digestive issues resolved by a single massage? I've never heard of an outcome like that before. Could you explain more about how it worked and what this lady's approach purported to do? Who was she? Genuinely curious!

Sounded like alternative medicine, but it was supposedly centering my stomach or adjusting the intestines to be in their optimal place, e.g. some people have organ displacement, the stomach is too low or too high, and somehow that affects digestion and health.

Was this a normal body massage, where they also worked on your stomach or specifically a massage for the stomach promising a cure for your specific issues?

Sounds like the massage moved his intestines around

I understood that. Just wanted to know if the masseuse specifically pitched the idea to OP, after hearing his complaint or whether it was just a happy co-incidence.

It's a specific alternative therapy, a traditional practice associated with adjusting or repositioning the stomach in folk healing. The woman who performed this on me is a physiotherapist.

Thanks for clarifying it - does this alternative therapy have a name?

Honestly, I don't know, translated it would be stomach alignment, it was popularized by a traditional healer and herbalist nun who lived in Bosnia.

Did the massage trigger a giant fart? I would be terrified of somebody massaging my stomach, lol

It felt uncomfortable and I needed to pass gas but managed to hold it.

There are yoga poses that can be done solo, that have the effect of massaging internal organs. This can also be helpful for the lymphatic system, in which lymph circulates passively, encouraged by movement of the relevant body parts.

Do you know the name of those poses by chance?

Are you a Batman villain by any chance?

Please say more; this is breaking my brain.

It's now possible to carry a spare battery or two, instead of lugging a portable power bank and slowly charging your phone. This is great news for outdoorsy types, travel, long bicycle rides, hiking, and so on.

but they require you to have a special charger, or typically you have to charge them one by one from your phone. Swapping batteries also requires downtime (not easy mid-flight, cycle, or whatever you're doing). A portable battery charger is much better imo. Plugging in a cord is always going to be easier and require less hands and focus than replacing a battery and keeping any kind of dust-and waterproofness.

Some people are just too stubborn, especially if they come from a place of authority and seniority. I'm doing house repair work right now with an older relative. He learned how to do repairs and renovations by himself, things like working laminate floors, mortar, laying tiles etc. The things is, he has his own reasoning and rhythym of doing things and doesn't like to be challenged, but I feel his ways don't always make sense, esp when I feel he is rushing and improvising (a programmer can tell). I haven't done much handy work myself in the past, but I'm a millennial, so I google things, watch youtube videos, and I read instructions. I also know that it isn't rocket science, my parents built our own home brick by brick. And now, every step of the way I have to be pushy to get my way, and make it sound like I'm not imposing or too nitpicky or challenging his "expertise", it's very taxing, I made a big scene once already and the whole relationship is now strained.

That's kind of it though, isn't it? If you're going to convince him there has to be a reasonable chance that the opposite will happen and that he'll convince you that he's too old to learn new tricks or whatever and he's going to have to do it his way because he isn't up to the challenge of doing a better job.

If your range of outcomes is [He'll do things my way, There'll be a scene and a strained relationship] then sometimes there'll be a scene and a strained relationship. If the range of outcomes is [we do things my way and he hates it, we do things his way and I hate it] then that's at least softer on the relationship. If you're lucky maybe you don't even care and you can just live with some parts of the work being bad.

One of those awkward things is that being good at negotiating means that other people are more likely to get what they want. It is actually a bit counter-intuitive.


I was the yielding type, not speaking up, letting others take charge. In my experience, it's not always worth it, especially if you care about the thing you are working on. I went so far as to just dissociate from everything and distance myself from others. The problem is that people deserve your honest opinion if you care about them, even if it's not what they want to hear. But it's so hard to spend mental energy to listen, correct, try to prove your point... even if you succeed, they will resent you for it.

They'll resent you insofar as it was confrontational vs. collaborative. If you can incept your conclusion into others they will not resent you. It's the whole raison d'etre of the Socratic method.

I had someone tell me, earnestly, that they hated me because it turned out that I was alright right. Not in the stubborn sense either.


It's not just react query, you can make a quick useFetch and useMutation hooks (or claude can), it's not that complex. If you don't need more advanced features (eg caching), you can easily cut down on 3rd party dependencies.

    import { useState, useEffect } from "react";

    function useFetch(url) {
      const [data, setData] = useState(null);
      const [loading, setLoading] = useState(true);
      const [error, setError] = useState(null);

      useEffect(() => {
        const controller = new AbortController();

        fetch(url, { signal: controller.signal })
          .then((res) => res.json())
          .then((json) => {
            console.log("Data:", json);
            setData(json);
          })
          .catch((err) => {
            if (err.name !== "AbortError") {
              console.error("Fetch error:", err);
              setError(err);
            }
          })
          .finally(() => setLoading(false));

        return () => controller.abort();
      }, [url]);

      return { data, loading, error };
    }







    function App() {
      const { data, loading, error } = useFetch("https://jsonplaceholder.typicode.com/todos/1");

      if (loading) return <p>Loading...</p>;
      if (error) return <p>Error</p>;
      return <pre>{JSON.stringify(data, null, 2)}</pre>;
    }


Sorry for being pedantic, but the first example could be rewritten to extract the pattern into a higher level hook, eg useNotifications. One way to simplify components before reaching for store libraries. The reusable hook now contains all the state and effects and logic, and the component is more tidy.

    function Dashboard() {
      const { user } = useAuth();
      const {loading, error, notifications, undreadCount, markAsRead} = useNotifications(user);

      if (loading) return <Skeleton />;
      if (error) return <p>Failed to load: {error}</p>;

      return (
        <div>
          <h1>Dashboard ({unreadCount} unread)</h1>
          <StatsCards stats={stats} />
          <NotificationList items={notifications} onRead={markAsRead} />
        </div>
      );
    }


Working with multiple teams in a large project, hooks can be a nightmare to maintain.

I see 7x layers deep of hooks, with no test cases to support them. Some of the side effects are not properly tested, and mocks that abstract away the whole implementation means the test case only works for certain scenarios.

FWIW this scenario might be an outlier in large projects, considering how some developers prefer to "just wrap the hook in another hook, and not worry about its internals".


That's a valid concern. I've seen some hard to grok hooks with polling, async stuff, hard to follow logic, etc. Like with anything, need to have taste, it's easy to dump too much into one hook and like you mention, it gets hard to follow what gets triggered when.


I was wondering if I was crazy for thinking "how is what he's suggesting different than just putting that 'class' into a hook function?" I'm glad to see someone already wrote it up, kudos.

@OP: PEBKAC, respectfully.


Far cleaner, how is testability though?


Very easy - mock the useNotifications and you can easily see all the behaviour by changing three properties.


I found this out when I tried running an old app I compiled on MacOS several years ago, it still has the old title bar gradient and traffic light.


It's not just that you need to get used to gestures, it's that they are not discoverable at all, and that they can be awkward to perform with mobility issues, old hands, short fingers, etc. It's easy to make the wrong gesture, eg. the phone detects a swipe down instead of left to right, more so if you are holding it in one hand, so it's finicky and frustrating to have to rely on it as the only way of doing a common action. Why is it so wrong to have a simple navigation bar, it doesn't take up any more space than the hideous notch at the top?


> Surely our camera gear is exponentially better now

They are better, but not exponentially. You can't beat physics, film cameras can still compete in terms of dynamic range and resolution, the optical elements haven't changed that much. The 1972 photo was taken on medium format film, which is twice the size of the sensor area in the modern one, which means more photons and less noise. The recent image was take at a really high ISO, which adds to the noisiness.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: