TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

NodeUp 15 - Bears, Wolves, and Poppins

13 点作者 spacesuit大约 13 年前

2 条评论

ISeemToBeAVerb大约 13 年前
First off, I really enjoy your podcast, so thanks for taking the time to put out good content. One small suggestion though- It would be really helpful if your episode names were more descriptive of their content. It's not a big deal, but it's a bit frustrating when browsing my podcast feeds and I have no idea what the podcast topics are. Anyhow, just my 2 cents. Again, thanks!
ilaksh大约 13 年前
I'm sure this Mikeal guy is a genius and everything, but is it really necessary for him to interrupt and contradict the other guy (was that Isaac?) every 3 seconds?<p>Anyway this Domains idea, is it something like:<p><pre><code> var domain = require('domain'); var http = require('http'); var fs = require('fs'); domain.handleError('fsdb', data, function(err) { console.log('There was an error updating thing #' + data); }); updateThing = function(id, data, callback) { domain.run('fsdb', id, function() { var options = { host: 'things.myserver.io', port: 80, path: '/update?id='+id+'&#38;v='+data.new}; http.get(options, function(res) { fs.writeFile(data.fname, data.file, function() { callback(); }); }); }); } </code></pre> So something in fs and http makes it call domain.handleError with the details if there is a problem with the request or file write?<p>Forgive me if I am completely misunderstanding or if this is a bad example.