DEV Community

JavaScript Joel
JavaScript Joel

Posted on

4 2

Live Coding a refactoring of a Node.js (JavaScript) Bitcoin Twitter Bot on Twitch

Just in case you missed it, here's the recording from my Live Coding session on Twitch!

I refactored a large file down from 75 lines of code to about 25. I created a plugin system to dynamically load events and I complain about keyboards!

Screenshot of my Twitch Live Code session

watch: https://www.twitch.tv/videos/434707544

Before: https://github.com/joelnet/bitcoin-all-time-high/blob/342398b80996610072d998754f8df672007b6eaf/src/recipes/all-time-high/index.js

After: https://github.com/joelnet/bitcoin-all-time-high/blob/33e71f421eb679bfa99f8f28c2860e5be028cd01/src/recipes/all-time-high/index.js

Cheers!

🍻

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay