PHPnews.io

Overview for 'remysharp'

Oh Mummy - 3-Jun 2020 [devlog/oh-mummy]

Written by Remy Sharp / Original link on Jun. 3, 2020

I've managed to solve a number picking algorithm that I'm happy with the performance of in NextBASIC. It's a Fisher Yates sort, then picking the first 4 items (actually I cut the sort at the fourth iteration).#autoline 10,10%N=20: ; select from 0-20 (excluding 20)%P=4: ; pick 4 numbers; init the 0-…


No undefsafe [til/javascript]

Written by Remy Sharp / Original link on Jun. 3, 2020

I wrote a small JavaScript library called undefsafe which I use in my work. I believe the _.get lodash package is very similar (though I added a few super powers to my own library).However, with frameworks like Next.js and Nuxt.js (and likely others), I've found that I don't need undefsafe due to …


Web Performance Recipes With Puppeteer [link]

Written by Remy Sharp / Original link on Jun. 3, 2020

A massive collection of recipes, with actual code 😱 written (or collected) by Addy Osmani.Having automated front end performance tracing is an exceptionally powerful tool, particularly to track regression.I'm in no doubt that there's a handful of quick grab recipes on this page that I can deploy in…


Oh Mummy - 3-Jun 2020 [devlog/oh-mummy]

Written by Remy Sharp / Original link on Jun. 3, 2020

After experiments in switching to using BANK memory instead of arrays proved only that there was no performance benefit - perhaps even a deficit. Thank god than that I'm writing my code on my Mac and am able to branch and commit into git.I was testing with 9 mummies, and even inlined the code (remo…


How is "nodemon" pronounced? [link]

Written by Remy Sharp / Original link on Jun. 2, 2020

I love making tools (that keep out of your way). Nodemon turns 10 years old this year and this thread on reddit was sent my way.It's been a long running question (and joke) as to how nodemon is actually pronounced:node mon, no demon or nodémon (like pokemon)I'm rather enjoying the replies :)Source: …


Oh Mummy - 1-Jun 2020 [devlog/oh-mummy]

Written by Remy Sharp / Original link on Jun. 1, 2020

Making some decent progress. NextBASIC is always going to be slower (much) than assembly, so I'm trying to look carefully at the code path to see what optimisations I can do.I did however manage to get the mummy's to bounce off each other, but good lord making that anywhere near usable was a massiv…