1
Loserzhu 2020-10-10 17:28:11 +08:00
一种错觉,最近好多文章都在写 git 第一版源码。
第一个是看的阿里技术发的文,然后就铺天盖地的 git 第一版。 |
2
tao1991123 2020-10-10 17:31:11 +08:00
git 的第一行代码 怎么会使用 git 进行管理呢?
|
3
luassuns 2020-10-10 18:07:57 +08:00 via Android
@tao1991123 #2 写完第一版后,再一把 commit 就行了呀
|
5
codehz 2020-10-10 19:07:45 +08:00
然后这玩意被刷了几百条评论
|
6
littlewing 2020-10-10 19:19:40 +08:00 via iPhone
@tao1991123 你这个问题类似于怎么用 go 写 go
|
7
qwerthhusn 2020-10-10 19:53:28 +08:00
鸡与蛋
|
8
la2la 2020-10-10 20:12:38 +08:00 1
软件更重要是的思路吧,感觉应该把 70%以上的时间放在构建思路上面,而不是实现代码。hadoop 第一版的代码也没有什么高端的操作,但是 map-reduce 的思想有几个能够提出来
|
9
jdhao 2020-10-10 20:17:09 +08:00
事后诸葛亮,如果有人能写,早写出来了,不用等到 Linus 2005 写出来。
|
10
ChristopherWu 2020-10-10 20:25:03 +08:00
git 实现本来就不难,设计做的比较好。我之前就写过了: https://v2ex.com/t/674356#reply3
|
11
ChristopherWu 2020-10-10 20:25:23 +08:00
@littlewing 术语叫自举。
|
12
masker 2020-10-10 20:45:07 +08:00 via Android
马后炮 ,事后诸葛亮挺多的
|
13
BenX 2020-10-10 21:36:48 +08:00
呵呵呵,Linux kernel 0.01 也就那样哇
|
14
shm7 2020-10-11 12:10:09 +08:00
@ChristopherWu 流皮。
|
15
liangch 2020-10-11 20:28:44 +08:00
最早的编译器怎么来的。就是这么来的。
|
16
zjsxwc 2020-10-12 08:34:22 +08:00
This is a stupid (but extremely fast) directory content manager. It
doesn't do a whole lot, but what it _does_ do is track directory contents efficiently. There are two object abstractions: the "object database", and the "current directory cache". The Object Database (SHA1_FILE_DIRECTORY) The object database is literally just a content-addressable collection of objects. All objects are named by their content, which is approximated by the SHA1 hash of the object itself. Objects may refer to other objects (by referencing their SHA1 hash), and so you can build up a hierarchy of objects. |