• 2 Posts
  • 1 Comment
Joined 8 months ago
cake
Cake day: August 11th, 2024

help-circle

  • Oh hi, I forgot to reply to this!

    My reasoning was mostly “I read it somewhere when I started coding and then didn’t do much with threads” to be honest. Not great reasoning there. But modeling the interactions between a user, UI thread, and work thread made it a lot easier to organize my code and create a good separation of concerns; the UI thread handles interface updates and dispatching events, and the worker thread works. Honestly that code organization was the biggest advantage I got out of doing things this way, and I wish I’d emphasized that more in the blog post.