文档章节

罗塞塔代码PK栈溢出(RosettaCode vs Stack Overflow)

xyxzfj
 xyxzfj
发布于 2012/01/09 18:05
字数 805
阅读 60
收藏 0
引言:如果你是一名IT技术人员,在遇到问题时,最常访问哪个网站?百度,谷歌,官方网站(API),栈溢出,还是其他?文中,作者比较了 罗塞塔代码和 栈溢出两大知识库网站的异同点,突出了罗塞塔代码精准、高质量、富有激发价值等特点。“just in the past week i found three Tasks that were directly applicable to problems i am currently solving. and one of the Tasks motivated me to produce a generic solution to a problem that i had solved in an adhoc manner before.by using RosettaCode i am not just solving problems for myself, but i help generate solutions that are useful for other people too.”
如果你能看懂简单的英文(借助翻译工具也行),使用 罗塞塔代码说不定能带给你意想不到的惊喜。

rosettacode.org


Pages in category "C++" on http://rosettacode.org


转载请注明:Linux人社区> 英文资讯翻译专版.编译

英文原文:
RosettaCode vs Stack Overflow

RosettaCode


Stack Overflow is a great site. every time when a search on a problem takes me there i look forward to the helpful and insightful answers. in ways, posting a question on Stack Overflow is similar to creating a task on RosettaCode.
on Stack Overflow a problem gets posted in form of a question, and people attempt to solve the problem by answering it. question and answers can be discussed and updated. once the poster of the question is satisfied, an answer may be chosen as being accepted.
on RosettaCode a problem gets posted in form of a Draft Task and people attempt to solve the problem by creating an implementation in their favorite language. Task and implementations may be discussed and revised until a consensus is found. once discussion stabilizes and people focus on implementing, the task may be promoted from Draft Task to Task status
the key difference is that the questions and answers on Stack Overflow can be of various qualities. there are lots of duplicates, and not always are the answers useful. on RosettaCode on the other hand the poster is motivated to solve the Task her or himself. also the goal of all Tasks is to produce a usable implementation, and the discussion does not end when an answer is accepted by the poster but it continues until a consensus for an acceptable task definition is found. and then after that the Task stays active as long as new solutions in different languages get added. also RosettaCode gets referenced frequently in Stack Overflow discussions
on RosettaCode people are not motivated to answer by getting points but because the answer helps shape the Task and thus ultimately the quality of the whole site. they take ownership of the task by providing their implementation. they don't want to help a fellow with a question but produce something of lasting benefit for all future visitors of the site.
as Stack Overflow grows, it will be harder and harder to sift through all the questions to find the right answer, whereas the growth of RosettaCode will lead to a library of problems and solutions where one can find practical code examples that have a clear relationship to the question (the Task) with several complete implementations that allow for analysis and comparison.
when i have a problem to solve i try to see if it is generic and interesting enough for RosettaCode. then i formulate a Task, and make an attempt at solving it myself. the discussion often helps me to identify problems that i had not foreseen, edge cases, and different approaches. every new task includes a lot of learning and goes beyond just solving the immediate problem.
i don't know if the creator of RosettaCode had this kind of use in mind, but i hope he can see the value of this approach. and it is not only new Tasks that get created this way, but also solutions to existing Tasks too. just in the past week i found three Tasks that were directly applicable to problems i am currently solving. and one of the Tasks motivated me to produce a generic solution to a problem that i had solved in an adhoc manner before.
by using RosettaCode i am not just solving problems for myself, but i help generate solutions that are useful for other people too.   

© 著作权归作者所有

xyxzfj
粉丝 12
博文 506
码字总数 181899
作品 0
武汉
私信 提问
37. 尾递归

当编程中使用到递归的时候,由于栈的原因,超出一定的递归次数,经常会出现栈被用完的错误(栈溢出stack overflow)。在 kotlin 编码中,我们可以使用优化尾递归为迭代的方式,提升编译器运算...

厚土火焰山
2017/11/27
0
0
JVM 深入笔记(2)内存溢出场景模拟

JVM 深入笔记(2)各内存区溢出场景模拟 作者:柳大 · Poechant 电邮:zhongchao.ustc#gmail.com (#->@) 博客:blog.csdn.net/poechant 日期:Feb. 23st 2012 《JVM 深入笔记(1)内存区域是...

晨曦之光
2012/04/24
152
0
Stack OverFlow 栈溢出 - stack smashing detected

在改造一个otatsgenerator工具时,调试时,发生如下错误: ./app stack smashing detected **: ./app terminated======= Backtrace: =========/lib/tls/i686/cmov/libc.so.6(fortify_fail+0x......

地狱的烈火
2013/07/22
5.9K
0
java fatal error log

翻译于《Troubleshooting Guide for JavaSE6 with HotSpotVM》 1. 生成位置 -XX:ErrorFile=/fullpath/file,file里可以包含%p表示进程id。如果没声明,默认的名字是hserrpid.log,保存在进程...

yingtju
2018/06/29
0
0
java虚拟机运行时的内存分类以及出现异常分析(jvm之一)

java虚拟机所管理的内存包括以下几个运行时数据区域: 方法区(Method Area):线程共享的,存放已被虚拟机记载的类信息、常量、静态变量等数据。“永久代(Permanent Generation)” 虚拟机...

zhengDavid
2012/06/13
383
0

没有更多内容

加载失败,请刷新页面

加载更多

手写RPC框架指北另送贴心注释代码一套

Angular8正式发布了,Java13再过几个月也要发布了,技术迭代这么快,框架的复杂度越来越大,但是原理是基本不变的。所以沉下心看清代码本质很重要,这次给大家带来的是手写RPC框架。 完整代码...

全菜工程师小辉
12分钟前
2
0
【Java】开发收货

简介 谨以此篇,记载开发过程中的一些tips。 编译器 【Shift + F6】可实现变量的联动修改。

Areya
29分钟前
5
0
DOM官方定义

DOM Document Object Model 文档对象模型 DOM的官方定义:W3C的DOM,可以使程序或者脚本(JS或AS\JScript),动态的访问或者操作文档的内容、结构、样式。 DOM只是一个标准,操作网页的标准。...

前端老手
34分钟前
6
0
IT兄弟连 HTML5教程 HTML5的学习线路图 第一阶段学习网页制作

学习HTML5技术可并不是简单学会几个新增的标签而已,HTML5现在可以说是前端所有技术的代名词。需要学习的语言和工具不仅多,对于刚接触他们的新人会感觉很乱。另外,前端开发也会细分很多个开...

老码农的一亩三分地
36分钟前
6
0
可见性有序性,Happens-before来搞定

写在前面 上一篇文章并发 Bug 之源有三,请睁大眼睛看清它们 谈到了可见性/原子性/有序性三个问题,这些问题通常违背我们的直觉和思考模式,也就导致了很多并发 Bug 为了解决 CPU,内存,IO ...

tan日拱一兵
51分钟前
4
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部