保留旧代码以供参考的惯例是什么?(What is the convention for keeping old code for reference?)
我有一个相当新的小团队项目和一个新团队,我们尝试了一些不同的方法,并在设计中进行了一些重要的迭代。
我们有一些不应该使用的类和一些具有ClassStuff和ClassStuffImproved等混乱的类。 我们有SVN,但我认为没有把所有的垃圾拿到手上并且让人们在历史上手动挖掘是有效的。 有些事情可能需要重新正确实施,之前的不良实施将提供参考。 但是我想打破任何依赖于垃圾的东西。 即使这些垃圾文件被破坏,我也希望项目能够构建。
有文件夹约定吗? 我应该把所有的nuked内容都放在一个文本文件中,所以当有人想知道一个课程在哪里时,它至少可以轻松搜索到吗?
这里的典型惯例是什么?
I have a fairly new small team project with a new team and we have tried a few different approaches and had a few significant iterations in design.
We have some classes laying around that should not be used and a few classes that have such messes as ClassStuff and ClassStuffImproved. We have SVN but I don't think nuking all the junk and making people dig manually in the history is productive. Some things may need to be re implemented properly and the previous poor implementation would provide a reference. I do however want to break anything that depends on junk. I also want the project to build even if these junk files are broken.
Is there a folder convention? Should i put all nuked content in a textfile so at least its easily searchable when someone wonders where a class went?
What is the typical convention here?
原文:https://stackoverflow.com/questions/21121841
最满意答案
>>
是一个shell运算符。 您尚未调用shell。 如果你想使用shell操作符,你必须这样做。 给/bin/sh -c
一试。
>>
is a shell operator. You have not invoked a shell. You must do so if you want to use shell operators. Give/bin/sh -c
a try.
相关问答
更多-
什么是CAT[2024-02-13]
-
能够查看文本文件的linux命令[2022-02-05]
cat -
linux的find -exec命令的问题[2022-05-18]
find . -size +200M -exec /bin/cp /dev/null {} \; -
关于LINUX CAT命令[2023-03-05]
楼上的 f1.c清空的原理讲的正确 但是 $ cat < f1.c >> f1.c 会造成死循环 ,瞬间会造成巨大的文件 , 不要误导人了 呵呵 lz 要想明白这个 一定要了解<的到底是干什么的 对于你的命令 cat < f1.c > f1.c 表示 cat 命令以 f1.c 文件作为 stdin,同时以 f1.c 文件作为 stdout 一般的 ,linux中的文件都有一个标记叫做EOF ,End of File ,此标记表示为文本结束符 ,这样一来 f1.c的文件尾部就是EOF , 执行最后一步 ... -
Linux中cat 是什么意思?[2022-02-14]
cat是concatenate的简写,你试一下命令 cat /etc/passwd,就是把一个文件直接打印在屏幕上熟悉linux基础命令,尽请关注《linux就该这么学》官网 -
linux下c语言exec与pipe问题[2022-11-13]
可以用popen函数: FILE *fp = popen("ls", "r"); fgets(xxxxx); pclose(fp); 具体用法网上很多的 -
从源文档 1)将参数: execAgent.sources.e.type修改为exec 2)从配置中删除execAgent.sources.e.shell参数 From the source documentation 1) Modify the parameter : execAgent.sources.e.type to exec 2) Remove the execAgent.sources.e.shell parameter from your configuration
-
不它不是。 在JavaScript中,您无法声明变量的类型。 变量的类型是其当前值的类型,因此 var c = new animal(); //correct 但 cat c = new animal(); //parse error. No, it is not. In JavaScript you can't declare the type of a variable. The type of a variable is the type of its current value, so var ...
-
尝试sudo docker run -it raring /bin/bash -c cat /etc/lsb-release你需要分配一个终端 The issue was that I am using Ubuntu trusty release as my base operating system and trying to use Ubuntu raring release while creating a base image. Once I move from raring to trusty i ...
-
>>是一个shell运算符。 您尚未调用shell。 如果你想使用shell操作符,你必须这样做。 给/bin/sh -c一试。 >> is a shell operator. You have not invoked a shell. You must do so if you want to use shell operators. Give /bin/sh -c a try.