Category: Personal
-
Enqueueing using the from @wordpress/scripts generated .deps.json dependencies [UPDATED for .asset.php]
When using the @wordpress/scripts package, it will automatically create a .deps.json file for every JavaScript entrypoint. This file contains a list of all the WordPress JavaScript dependencies used in it and in all the file it imports. Therefore it really simplifies keeping track all of the dependencies of a script. But the question that quickly…
-
.map vs .forEach – what's the difference?
Another thing that I realised later than I probably should have was: Why do .map and .forEach even both exist ? In my mind they were both just useful when wanting to iterate over every single item inside an Array with no easy ability to stop in between 🛑. But one day while working with…
-
What are higher order functions?
When working on some filtering and sorting functionality, there is something wished I would have learned much earlier in my career. Before that point I didn’t really understand what higher order functions were or why it would be useful to return a function from another function. So I hope that this might help someone find…
-
Being MC for the JavaScript for WordPress Online Conference
After helping Zac out with a couple of things, like the Bootcamp he approached me and asked wether I wanted to be a MC for his JavaScript for WordPress Online Conference. Being super excited about the conference anyway I jumped on it right away and it was such a great experience. I got to host…
-
Learning JavaScript with a Study Group – JavaScript for WordPress Conference 2019
This post was compiled and written by my incredible partners in crime of the study group. Namely Karen and Rita were the once who wrote most of what is written down here. “By definition, study groups are a place to work on challenging concepts and learn from each other. Sometimes other students have questions you…