HN user

tanduv

142 karma
Posts1
Comments54
View on HN

I never really liked the syntax of fetch and the need to await for the response.json, implementing additional error handling -

  async function fetchDataWithAxios() {
    try {
      const response = await axios.get('https://jsonplaceholder.typicode.com/posts/1');
      console.log('Axios Data:', response.data);
    } catch (error) {
      console.error('Axios Error:', error);
    }
  }



  async function fetchDataWithFetch() {
    try {
      const response = await fetch('https://jsonplaceholder.typicode.com/posts/1');

      if (!response.ok) { // Check if the HTTP status is in the 200-299 range
        throw new Error(`HTTP error! status: ${response.status}`);
      }

      const data = await response.json(); // Parse the JSON response
      console.log('Fetch Data:', data);
    } catch (error) {
      console.error('Fetch Error:', error);
    }
  }

If I understood MegaLag's video correctly, Honey was indeed overriding an affiliate session cookie with their own once the user the reached the checkout. The extension would silently open a tab in the background, which seems pretty scummy. I've observed the same background tab shenanigans with the Capital One extension as well.

Just tried that example screenshot of 'postgresql query analysis' and got the same results on Kagi vs Google with uBlock. What exactly is novel here?

Nexus products weren't _technically_ made by Google. 5 was LG's design and 7 was Asus'. During this era Google specifically stuck to working on the software while passing on the technical designs to other partners.

VR gaming has definitely cultivated a community in the genre of sim-racing and Half Life Alyx modding