博客与个人写作2014news.ycombinator.com
Ask HN:程序员有哪些好用的博客平台?
Ask HN: What are good blogging platforms for programmers?
导读
这篇 HN 问答讨论程序员写学习博客该选什么平台,核心建议是静态站点加 Markdown/Git 工作流:免费、快、抗流量,维护成本低。对写作者的价值在于别把精力耗在搭平台和折腾工具上,选低摩擦方案,把时间留给持续写作和代码示例。
可以直接用的写作要点
- 01
优先选静态站点(如 Jekyll + GitHub Pages)或 Markdown + Git 流程,发布快、免费、抗流量,减少写作之外的摩擦。
- 02
平台稳定性和安全性会影响写作:共享主机可能因流量被终止,WordPress 若长期不维护可能被植入广告或恶意软件。
- 03
把博客当作学习记录,用代码片段和简短笔记降低单篇门槛,先持续写,再优化主题和工具。
- 04
不要为了博客自己造轮子或过度折腾主题,工具够用即可,内容才是核心。
HN 评论精选
静态托管免费且抗流量,适合把精力放在内容而非运维。
用 Jekyll(配个好主题)+ GitHub Pages 完全够用。更重要的是免费、快,能承受大流量,比如 Hacker News 首页。一年前我用共享主机上的 WordPress,一上 HN 首页(约 300 并发用户)服务就被终止了。此后一直用 Jekyll + GitHub Pages,除了偶尔 GitHub 宕机,没出过问题。
minimaxir查看英文原文
Using Jekyll (w/ a good theme) + GitHub Pages is more than sufficient. More importantly, it's free, fast, and can handle large amounts of traffic, such as the front page of Hacker News. A 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.
低频维护的博客要重视安全,否则可能被入侵且长期不自知。
大家避开 WordPress 是出于安全考虑吗?我喜欢 WordPress 的简单,但总担心哪天访问站点发现满屏伟哥广告。如果我每天写博客可能还好,但我很少去看,它可能已经托管恶意软件、让我显得很蠢,而我要很久才发现。
billmalarky查看英文原文
Is everyone shying away from wordpress for security reasons? I like the simplicity of wordpress, but in the back of my mind I am concerned that one day I'll visit my site and it will have viagra ads all over it. It would be less of a concern if I blogged daily, but I go to it rarely enough that it could be hosting malware (and making me look like an idiot) for quite a while before I realized it.
Markdown + Git 的发布流程让写作更简单,主题可复用,内容要自己写。
我用 Pelican(大致是 Python 版的 Jekyll,Hyde 的后继)。我只在 Emacs 里写 Markdown,发布即可,所有内容存在 git 里。这里有 Pelican 文件夹的代码示例——主题随便拿去用,只要写自己的内容。
yummyfajitas查看英文原文
I use Pelican (roughly the Python version of Jekyll, a successor to Hyde). I just write markdown in emacs, publish and it's good to go. Everything is stored in git. See the pelican folder here for code examples - feel free to steal the theme, just write your own content. https://github.com/stucchio/Homepage
同类还值得读
我坚持每天写一条 TIL,已经写了一年
Show HN: I've been writing daily TILs for a year
这篇展示作者一年每天写 TIL(Today I Learned)并整理到 GitHub 仓库的做法。
博客与个人写作2016 · 819 分 · 150 评4 条写作要点编辑精选如何写出开发者愿意读的博客文章
How to write blog posts that developers read
这篇(正文与评论未提供,仅从标题判断)讨论面向开发者写技术博客的方法:怎样让忙碌的工程读者愿意点开、读下去并读到结尾。
博客与个人写作2025 · 603 分 · 154 评4 条写作要点编辑精选博客写作风格指南
A blogging style guide
这是程序员兼博主 Robert Heaton 的博客写作风格指南,用几十条简短规则讲如何让技术文章更清晰、更好读。
博客与个人写作2018 · 495 分 · 188 评4 条写作要点编辑精选十年职业博客写作,我学到了什么
Ten years of professional blogging – what I’ve learned
这是作者回顾十年专业博客写作经验的总结,评论补充了写作作为深度学习、聚焦主题、保护写作习惯和选择发布平台等实践。
博客与个人写作2017 · 362 分 · 126 评4 条写作要点编辑精选十年博客写作教给我的事
What I learned in ten years of blogging
这是一篇博客作者十年写作经验总结,核心观点是写作的价值在于持续积累而非单篇爆款。
博客与个人写作2018 · 356 分 · 162 评4 条写作要点编辑精选