Hacker Newsnew | past | comments | ask | show | jobs | submit | MathMonkeyMan's commentslogin

My Pixel does this too.

Holding the power button down used to open "the power menu," which means I need to look at my phone and tap a button to do the thing that I intended for it to do anyway.

More recently, the gesture instead opens an app "Let's get started: Your personal AI assistant [...]".

I had to go into settings (System -> Gestures -> hold power button) to get rid of the AI nonsense and make the power button do power things.

I'd like for it to just shut the thing off, but that's not in the cards.


Yeah I feel like slides are a scapegoat for "autopilot low effort terrible presentation." But if it's not powerpoint then it will be something else. Can't fix "not giving a shit."

Stigma, or maybe heuristic. "We don't want to hire somebody nobody else would hire." It's silly, since you could just evaluate for yourself, but a lot of judgements are silly.

Features are deprecated and removed. It's uncommon but it happens when a new feature makes all use of the old feature unnecessary. Usually it's deprecated for a few versions and then removed some years later. You can always compile old code against an old standard.

C++ does have many ways to do anything. Most of that is historical, or due to features and library facilities with overlapping capabilities, or inherent to multi-paradigm programming languages.

Every C++ project is written in its own language. Its own "house flavor." This is true of all languages, but is particularly stark for a language as old, complicated, and powerful as C++.


There is std::valarray, but a google search said that only Intel's implementation uses SIMD. See [cppreference][1].

[1]: https://en.cppreference.com/cpp/numeric/valarray#Notes


It's shear complexity because it's about cross-cutting concerns, or because it's a difficult yak to shave.


You returned a pointer to a temporary. It's nasty but easy to spot.

Would you return `input.c_str()`? You might think twice about that, but it's the same thing. My favorite fix is to take a `std::string_view` as the parameter.

    string_view remove_leading_spaces(string_view input) {
        auto new_start = find_if(input.begin(), input.end(), [](char ch) { return ch != ' '; });
        return string_view(new_start, input.end());
    }
The result of the undefined behavior in your program is surprising, though. As it usually is.


I remember reading a blog post or something about VPN providers complying with law enforcement requests. The author said "Those companies can't afford a lawyer. They can't afford a lawyer's _coffee_." I don't know if that's the case here, but I don't expect any network-tech-as-a-service company to put up a fight for anything.


Passing allocator pointers around has the advantage of allowing you to customize the allocator when you want, and to ignore it when you want (which is most of the time), i.e. just use the allocator you were given and pass it around like some piece of syntax or ctx in Go.

The trouble comes when you have data structures that manage memory, and you want to associate the allocation strategy with the particular instance of the data structure. Or, worse, you don't store the allocator pointer with the data and you require that all functions operating on the data structure happen to use compatible allocators.

At its simplest, though, passing allocators around is just removing an implicit global variable that is sometimes helpful to customize locally, but nearly impossible to customize locally if left as a global.


Cars are different nowadays (hopefully even more reliable), but the '95 Toyota Camry that my parents bought new in 1995 or 1996 lasted until I was done using it in college in 2011. Then my dad sold it for a chunk of cash. The only thing wrong with it was that the roof paint was gone to shit from the Florida sun. You could probably paint it, redo the ceiling fabric, and run it for another 10 years. They sunk a fair amount into it over the years, but nothing catastrophic -- no powertrain issues, no "fixing this AC will cost more than the car" issues. In the six years I drove it I think it needed about $300 of work (something about the steering or suspension).


There are lots of Camry from 2008 to 2017 which has paint delamination issue. Ours is from 2012 but it only started getting noticeably worse near the end of the warranty period and I never heard about it because it was during the pandemic and our dealer went out of business. Toyota didn't publicize the issue till the end.


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

Search: