In this video i show how to implement rooms in socket.io. The frontend is using phaser.js talking through websockets to a Node.js backend. I showcase how you can use query parameters to pair players together into rooms so that they can play together.
Code - start of video: https://github.com/danba340/barely-amongjs/tree/p3-start
Code - end of video: https://github.com/danba340/barely-amongjs/tree/p3-end
Say hi in twitter: https://twitter.com/barelydaniel
0:00 Intro
0:30 Query Parameters
1:54 Reading/Change query parameters
4:06 Generating room ids
6:50 Passing room to Socket.io
7:30 Handle room on server
8:40 Validating server room functionality
9:45 Validating client room functionality
10:25 Update query parameter
11:20 Outro
...
https://www.youtube.com/watch?v=E5BsA17OVTs
In this video i show a cool example on how i use Webhooks. Webhooks allows me to connect my Alexa home assistant to the local traffic service provider to get push notifications on my phone with live data about the surrounding buses and trams.
Say hi in Twitter: https://twitter.com/BarelyDaniel
...
https://www.youtube.com/watch?v=9jFq2TU_02Y
In this video i dip my toes in the world of functional programming in Javascript by exploring composition.
I try to wrap my head around a compose() function that takes an array of functions and runs them after one another and passes on the accumulated value.
0:00 Intro
1:10 Small composable functions
2:50 The compose function
5:20 Composing the functions
8:15 Some words on composition
9:30 Outro
...
https://www.youtube.com/watch?v=xKFO9NCogLg
After coding in Typescript for many years i decided to pick up Rust and Go and i realized that i should have done this way sooner. Since Rust and Go has other patterns and paradigms than Typescript I felt rapid growth as a programmer which also made me a better Typescript developer. In this video I will tell you how I currently think about optimizing a programming career.
Twitter: https://twitter.com/BarelyDaniel
Github: https://github.com/danba340
Instagram: https://www.instagram.com/barelycoding
TikTok: https://www.tiktok.com/@barelycoding
LinkedIn: https://www.linkedin.com/in/daniel-bark
...
https://www.youtube.com/watch?v=Q_KTGiNKRDU
In this video I explore having code formatting as a Github action. Prettier is being run on push and formatting the code in an additional commit.
Code for this tutorial: https://github.com/danba340/gh-action-prettier-on-push
...
https://www.youtube.com/watch?v=7j8JzOMdIXA
Creating bots is a passion of mine. I've created bots for finding discounts, nft trading, online tetris, geolocated bus schedules to name a few. This time i wanted to see how many LinkedIn profiles i could visit in one single night. And then what would happen the next day with all those profiles getting notifications regarding my visit. Even though my bot was only visiting one profile every 5 seconds or so (not very aggressive for a bot) I had trouble sneaking under the radar.
I build the bot using the Javascript platform Node.js with a framework called Puppeteer built for remote controlling a Chrome browser. The bot would jump from profile page to profile page storing all found profile page links in a queue and keeping track of visited profile pages to prevent duplicate visits.
Twitter: https://twitter.com/BarelyDaniel
Github: https://github.com/danba340
...
https://www.youtube.com/watch?v=6Qxd3PLamMQ
I think this covers 99% of programmers!?
If this does not fit you let me know
Twitter: https://twitter.com/BarelyDaniel
Github: https://github.com/danba340
Instagram: https://www.instagram.com/barelycoding
TikTok: https://www.tiktok.com/@barelycoding
LinkedIn: https://www.linkedin.com/in/daniel-bark
...
https://www.youtube.com/watch?v=h8EI8sqVqoA
In this video we take a look at StackBlitz, an in browser IDE where you can run Node.js natively in a WebContainer. I show how you can debug both frontend and backend javascript projects inside the Chrome Dev Tools.
https://stackblitz.com
Twitter: https://twitter.com/BarelyDaniel
Github: https://github.com/danba340
0:00 Intro
0:50 StackBlitz functionality
1:38 Overview
2:40 Debugging Node.js
4:00 Debugging React.js
5:33 Outro
...
https://www.youtube.com/watch?v=_R2uls4s70s