• 0 Posts
  • 79 Comments
Joined 1 year ago
cake
Cake day: July 22nd, 2023

help-circle


  • I gave up on Google over a decade ago - maybe two decades by now. Way back when I was using Yahoo, Ask Jeeves, Astalavista, and others. When Google came, it somehow beat them all at finding exactly what I was looking for.

    Later they stopped searching for the exact words you typed, but it was okay because adding a plus in front of terms, or quotes around phrases, still let you search exact things. The combination of both systems was very powerful.

    And then plus and quotes stopped working. Boolean operators stopped working. Their documentation still says they work, but they don’t.

    Now, it seems like your input is used only as a general guideline to pick whatever popular search is closest to what it thinks you meant. Exact words you typed are often nowhere in the page, not even in the source.

    I only search Google maps now, and occasionally Google translate.











  • You should be aware that “maintaining” that PC may be more than you expect. Just this weekend I had to help my aunt because the bank’s website had a “big thing in front of it” that she couldn’t get rid of. It turned out to be a cookie banner that was just a bit too big for her laptop screen, and the buttons to close it were out of the frame.

    That’s just an example of course, but depending on the person(s) using it, there may need to be someone at hand to help at all times.








  • I think of std::any as a void* that retains type info.

    A typical use case for void* is user data in callback functions. If you’re writing a library that offers callbacks to client code, you may want to provide a way for the user to pass along their own data when registering a callback. Then when calling it, you return that data unmodified*. The library doesn’t know nor care what this user data is. Since the days of K&R C, this has been done with void*.

    But void* erases the type. The library may not care about the type, but the client code does. The only way to get the original type from a void* is an unsafe cast. std::any mitigate this.

    *edit: unmodified, not modified!