Nikita Vasilyev (@_n12v) header
Nikita Vasilyev (@_n12v) profile picture

Developer Tools developer. ex-Apple, I worked on WebKit Inspector for a decade. I do partner acrobatics in my free time.

San Francisco, CA
Joined April 2007
Photo by Nikita Vasilyev (@_n12v)Photo by Nikita Vasilyev (@_n12v)Photo by Nikita Vasilyev (@_n12v)Photo by Nikita Vasilyev (@_n12v)Photo by Nikita Vasilyev (@_n12v)Photo by Nikita Vasilyev (@_n12v)Photo by Nikita Vasilyev (@_n12v)Photo by Nikita Vasilyev (@_n12v)Photo by Nikita Vasilyev (@_n12v)Photo by Nikita Vasilyev (@_n12v)
I've been consistently getting better ChatGPT answers for algorithmic questions by starting with "You're Donald Knuth"
2
3
275
I find it also interesting that "You're Donald Knuth" generated an optimal leetcode answer but if you specifically ask "Answer leetcode" it comes up with a much worse solution.
1
193
Asked ChatGPT to write a JS function that, given a non case-sensitive prefix, returns all matches from a sorted array. Most of the time, it didn't even use binary search. sharegpt.com/c/E5EXm0S
1
638
I'll start every algorithmic question with "Pretend you're Donald Knuth." from now on 😂sharegpt.com/c/8T7sL3F
1
366
Object.keys(obj) in JS returns keys in insertion order but TIL: 1. When a key can be parsed to int and back to string, and stay the same, those keys move to the front
3
1
48
15,479
2. Chrome DevTools in some cases show keys in different order (sorted, not insertion order)
1
2
931
A better browser address bar autocomplete is feasible to make, but it’s harder than I anticipated two weeks ago 🙃
1
7
Day 1: `title.includes(query) || url.includes(query)` and we are good Day 5: allow multi-word search; words in queries don’t have to match the order in title/url Day 20: Allow inexact matches. In multi-word queries, deprioritize common words, such as “the”, “is”, “what”
In the browser address bar, do you more often type a query/URL fragment
83%Visited before
17%Entirely new query/URL
23 votes • Final results
3
1
I worked for bit on the address bar suggestions that prioritize your history more. None of the browsers provide extensions API to override the default suggestions, so I'm not sure how to ship it 😐
1
1
Today I leaned that in JS: NaN > Infinity // false, but Math.max(NaN, Infinity) // NaN 🫠
1
2
How many tabs do you usually have open in your browser?
35%<10
31%10-20
35%>20
49 votes • Final results
2
So far my take away is that I don't have enough active followers 🙃
2
AWS S3 & Cloudfront are really not that great for hosting static websites. Want /page/ to serve /page/index.html? Run some JS on the server 🥴 stackoverflow.com/questions/…
1
1
Vercel and Netlify don't have any of these issues.
1