Happy Commenting



Happy Commenting


Blog posts now contain a comment section! Just scroll to the bottom to check it out!

The comment section uses the Happy Coding forum to store and display comments. To leave a comment, just click the Start Discussion or Continue Discussion at the bottom of a blog post (like this one!). This will take you to the corresponding forum post, and any replies you post there will automagically show up in the comment section of the blog post. Neat!

This does require registering for a (free) forum account, or you can use Twitter or GitHub to login.

This is thanks to Discourse’s nifty embedding feature. I love Discourse (from the philosophy of please read the comments to the idea of incentivizing reading), and they made it easy (and a little fun) to make this work.

The only hiccup I encountered was caused by the fact that Discourse treats domains as case sensitive. I tend to CamelCase :camel: :dromedary_camel: the domain, writing it as HappyCoding.io instead of happycoding.io. For the most part this doesn’t matter because domains aren’t case sensitive, but it turns out that this caused a problem in Discourse. (Which they just fixed!)

One great thing about this feature is that I didn’t have to write any code. That might sound a little counterintuitive coming from me (I love coding!), but I think this is a sign of me growing (or at least evolving) as a developer. Back in the Static Void Games days, I wanted to do everything myself: from user accounts to comments to uploads to notifications. Part of my motivation was a general curiosity about how that stuff worked. But on the other hand, that meant I spent a lot of time working on things that weren’t a core part of my vision. In other words, I was frustrated or bored pretty often! :sleeping: :zzz:

So when I started Happy Coding, I took the opposite approach and tried to do as little as possible myself. I didn’t want to keep reinventing the wheel. That’s why I use GitHub Pages and Jekyll to create the site, Discourse for the forum (and now comments), CodePen for the embedded code, etc. I’m trying to do as little of the boring stuff as possible, so I can focus on implementing fun new features and writing tutorials and examples.

I don’t want to get too rambly, but now is a pretty exciting time to be a developer (or to start learning how to code, hint hint). Not too long ago, stuff like implementing a comment system was hard and kinda boring. Now it’s getting easier and easier to build your own thing by piggy-backing on top of stuff that does the hard and boring stuff for you.

Anyway, my real vision for Happy Coding is to build a community of people who love coding. The tutorials and examples are the heart of that, but the forum is where that community actually becomes, well, a community. And I’m hoping that this new comment feature is a bit of a gateway into that community.

So, don’t be a stranger! Say hello in the comments! :wave:

Comments

Happy Coding is a community of folks just like you learning about coding.
Do you have a comment or question? Post it here!

Comments are powered by the Happy Coding forum. This page has a corresponding forum post, and replies to that post show up as comments here. Click the button above to go to the forum to post a comment!