I've been consistently getting better ChatGPT answers for algorithmic questions by starting with "You're Donald Knuth"
2
3
275
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
That aside, it seems like if you're a beginner programmer and you need to do this exact task, you're much better off with leetcode solutions or StackOverflow, at least for now leetcode.com/problems/find-f…
1
262
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
A better browser address bar autocomplete is feasible to make, but it’s harder than I anticipated two weeks ago 🙃
1
7
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
How many tabs do you usually have open in your browser?
35%<10
31%10-20
35%>20
49 votes • Final results 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
Want to publish changes? `aws s3 sync` uploads what’s changed to S3, but then you need to feed those modified paths to Cloudfront to create an invalidation. AWS CLI doesn’t provide that! I ended up writing a script gist.github.com/NV/8d905ed2a…
1
1


