HackerTrans
TopNewTrendsCommentsPastAskShowJobs

atfzl

no profile record

Submissions

Are web apps really slower than native?

atfzl.com
2 points·by atfzl·3 เดือนที่ผ่านมา·0 comments

Stop Using Lovable for Prototyping – Use Storybook and Claude Instead

atfzl.com
1 points·by atfzl·5 เดือนที่ผ่านมา·0 comments

JavaScript Event Loop: Much more than you wanted to know

atfzl.com
2 points·by atfzl·3 ปีที่แล้ว·0 comments

Resident Evil Village is launching on Mac with Apple Silicon support

residentevil.com
3 points·by atfzl·4 ปีที่แล้ว·1 comments

comments

atfzl
·5 เดือนที่ผ่านมา·discuss
[flagged]
atfzl
·5 เดือนที่ผ่านมา·discuss
npmjs.com search input doesn't even have proper throttling/debounce. If you type fast, there is a high chance that you get result of the partial input that you entered than the complete one. Ideally they should discard the response for the old partial search if there is a new one.
atfzl
·4 ปีที่แล้ว·discuss
Reminds me of the danish movie "Another Round".

> Four high-school teachers consume alcohol on a daily basis to see how it affects their social and professional lives.
atfzl
·4 ปีที่แล้ว·discuss
Hey, I wanted to try this out but I am seeing a lot of performance issues. There are forced reflows of >1s on normal interactions. I ran it on my MacBook Air M1.
atfzl
·4 ปีที่แล้ว·discuss
Vite uses esbuild for transpiling and rollup for bundling. esbuild (written in go) is already pretty fast for transpiling but there might be a lot of possibilities to optimize in rollup as rollup is written in JavaScript.
atfzl
·4 ปีที่แล้ว·discuss
All the devices with Apple silicon are supported, even the first MacBook Air 2020 with M1.
atfzl
·4 ปีที่แล้ว·discuss
Resident Evil Village is launching on 28 Oct with Apple Silicon support!
atfzl
·4 ปีที่แล้ว·discuss
Try https://fasterthanli.me/articles/a-half-hour-to-learn-rust which is also written by the same author.
atfzl
·4 ปีที่แล้ว·discuss
Wait a bit, it takes some time.

This tool needs better UX:

- A loading bar, or some feedback that it is "analyzing data"

- clicking on "Reddit" or "Hacker News" doesn't select the radio buttons
atfzl
·4 ปีที่แล้ว·discuss
I don't have a lot of comments on hn but the result is still super accurate. FML.
atfzl
·4 ปีที่แล้ว·discuss
The person who posted the link says they were the one who broke into Uber recently.

> My previous work: https://www.nytimes.com/2022/09/15/technology/uber-hacking-b...
atfzl
·4 ปีที่แล้ว·discuss
The code with this method looks a lot ugly for the basic binary search where you return -1 when an element isn't found.

https://leetcode.com/problems/binary-search/

JavaScript code:

  function binarySearch(arr, target) {
    let left = 0;
    let right = arr.length - 1;
  
    // empty arr, so we won't find anything
    if (!arr.length) {
      return -1;
    }
  
    // the target is less than the smallest number in arr
    if (target < arr[left]) {
      return -1;
    }
  
    // the target is greater then the smallest number in arr
    if (arr[right] < target) {
      return -1;
    }
  
    // These two `if` are needed for the case when there are only 2 elements
    // in the array.
    if (arr[left] === target) {
      return left;
    }
    if (arr[right] === target) {
      return right;
    }
  
    while (left + 1 !== right) {
      const middle = left + Math.floor((right - left) / 2);
      if (arr[middle] < target) {
        left = middle;
      } else {
        right = middle;
      }
    }
  
    if (arr[right] === target) {
      return right;
    }
    
    return -1;
  }
atfzl
·4 ปีที่แล้ว·discuss
How does it compare with https://httptoolkit.tech/