Ask HN: What are good blogging platforms for programmers?
I have been thinking to write blogs for what I learn during weekends.
I am looking for blogging platforms where I can share what I learn, share code snippets.
Please share your advices on what tools to use
Thank you
86 comments
[ 3.0 ms ] story [ 164 ms ] threadA year ago, I used Wordpress on shared hosting, then my service was terminated once I hit the front page of HN (~300 concurrent users). I've been using Jekyll + GitHub Pages since, and I've had no issues whatsoever, aside from the occasional GitHub outages.
For context, last month I had ~20,000 pageviews and my S3 + Data Transfer charges were $2.43.
[0] - https://github.com/prakhar1989/prakhar1989.github.com, http://getpoole.com/
Whether or not it was actually working as intended on the shared environment, I'm not sure.
The idea that your Markdown articles are definitive, that you can add custom grammar, and that your blog is strictly a view into your writing rather than a separate content platform, should be very appealing to programmers!
[1]: http://a-jekyll-blog.archagon.net/programming/2014/06/23/sec...
Rather than host your own, I prefer just going with tumblr or something slick. I do like tumblr for its social connectedness, easy sharing and liking. Whatever floats your boat, though.
It uses markdown, has lots of themes (some paid, some free, some OSS), you can host it yourself.
https://ghost.org/
http://ghost.org/ https://github.com/proudlygeek/hipstadeploy
And demo: http://www.oddevan.com/
(I'm the kind of weird person that actually likes using a database and fancy backend to write/organize my posts, so I didn't want to use Jekyll.)
See the pelican folder here for code examples - feel free to steal the theme, just write your own content.
https://github.com/stucchio/Homepage
I use S3 to host my blog. It's super cheap and it's really easy to push out changes with S3cmd [2]. Just a simple:
1. https://github.com/gjreda/gregreda.com/tree/master/theme2. http://s3tools.org/s3cmd
https://github.com/stucchio/Homepage/blob/master/pelican/dep...
[1]: http://kevinyap.ca/2014/06/deploying-pelican-sites-using-tra...
(and this makes me sad)
Alternatively: it's good to see what's out there so that when you do (inevitably) write your own, you know /what you want/.
Just as a counterpoint, I've realized recently that using other things before making your own changes what you'd make, and not necessarily in a positive way. You find yourself thinking in terms of the constraints and features of what you've used, rather than starting with a blank canvas and coming up with something you haven't seen before.
...although I might not've hit submit, since I'm not sure I'd want to participate in the argument that'd be sure to come next.
Jekyll is a great answer in this regard. You don't have to reinvent the wheel (pagination, RSS, categories, dates, etc.), but you can still customize it with great ease. (Kind of like the Backbone.js of blogging engines, I guess.)
The downside is that it's popular (thus a target), and left unpatched or unprotected it's easy to mess something up and become part of those Viagra ad rings ;) I've hosted, set up, or fixed dozens of WordPress blogs, and a few have been compromised for one reason or another (you find lots of PHP shells in upload directories).
Not to mention the fact that once you get outside the basic use case (blogging), and/or you start using plugins, things get convoluted FAST. There're a million plugins for WP, and if you're lucky the one you pick will do exactly what you want. But chances are it won't, and you'll spend hours digging through spaghetti code to get it to work for you.
* If you host yourself it is a lot of maintenance to keep wordpress patched, spam cleared, etc.
* It is dynamic, so each page needs to be built based on a query to the mysql database. For a handful of users this is no big deal. If you hit the HN front page your site will be overloaded.
On the other hand, Wordpress is good if you blog on the go and want to use the ipad app or whatever to post/maintain your blog. It might also be good if you have multiple contributors, or update your blog so frequently (minutes) that rebuilding the site to deploy it is an impediment.
Octopress / Jekyll is a good alternative:
* Content is pre-formatted HTML files, no database to get in the way or slow things down.
* Tons of people use it, so it is well known.
* Lots of publishing options -- github, heroku, s3 + cloudfront, etc.
* "Features" like discussion forums can be linked in from disqus or other purpose-built services.
* Publishing is easy via running a script, although that means lugging your laptop around or using an ssh client on your tablet.
* With static HTML the attack surface is substantially less compared to a PHP site with a back-end database, so security should be significantly better and easier to deal with.
* Wordpress now auto-updates, so you don't have to worry about patches.
* WPSuperCache is a Wordpress plugin that serves up static content. Only logged in users see a dynamic page.
Also I think the WP core is well secured. It's when you start adding plugins into the mix things can get dicey.
For spam, Akismet is pretty effective and comes with WP by default, just have to enable it. I consider WP very frictionless for publishing content so it's a good choice in my book.
Not a dealbreaker, just something to be aware of. (And if anyone knows of other embeddable comment systems that can be used on static sites, I'd love to hear about them!)
https://help.disqus.com/customer/portal/articles/665057-synt...
Other things missing from a static site generator though include being able to post from a multitude of devices. To post to a static site generator you generally need a full desktop. Or at least that's my experience.
I currently use piecrust[1] to statically generate my markdown through twig (templates) and push these to my site host nearlyfreespeech via ssh. It's pay as you go; I've not needed a dB or CGI, and those are not forced on me. Perhaps I'll be punished if I ever get front paged, but YNGNI.
I am trying out metalsmith[2] instead, as I'm more familiar with javascript than php and hence can make plugins for the various bits I need.
0. https://github.com/Raynes/laser
1. http://bolt80.com/piecrust/
2. https://news.ycombinator.com/item?id=7361824
And yeah, it feels good.
- Jekyll + GitHub Pages (https://help.github.com/articles/using-jekyll-with-pages)
- Octopress/Jekyll + GitHub Pages (http://octopress.org/)
- Svbtle (https://svbtle.com/)
- Medium (https://medium.com/)
- Ghost (https://ghost.org/)
Octopress / Jekyll are sort of annoying at times specifically if you don't use ruby. For example, on my mac, i've had to deal with weird ruby related issues when upgrading OS X.
(for more tips, see my kickstarter project: http://kck.st/1sYmezD )
It uses Sphinx markup which is great for embedding source code snippets and extending the blog with own extensions or pre-built ones.
Platform isn't important. You can do what you are trying to do on ANY platform.
Hosting Hugo blog on GitHub Pages ~ http://hugo.spf13.com/tutorials/github_pages_blog
Tech.pro is a blogging platform / professional network catered only to the tech world (primarily software development).
Our editor is markdown-based and handles code snippets etc. quite well in addition to having support for embedded frame sites such as jsfiddle/codepen/sqlfiddle/etc.
Although you're writing on the TP platform, you still retain full ownership of your data. You can even download a neatly organized archive of all your blogs (and revisions) in both Markdown and html format at any time.
My Blog: http://tech.pro/leland/blog My Profile: http://tech.pro/leland
Some hip ppl might try to use a makerbot or w/e but to get any kind of height on the platform u will need a LOT of plastic.