Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation of basic-data-structure.md #14

Merged
merged 10 commits into from Jun 5, 2019

Conversation

StoneLyu
Copy link
Contributor

update basic-data-structure.md

update the differences between HTTP/1.0 and HTTP/1.1 & the differences between HTTP/1.1 and HTTP/2.

create basic-data-structure-en.md

translate most parts of basic-data-structure.md into English.
with leaving two parts related to React untranslated because no idea about operations of react.

Copy link
Owner

@azl397985856 azl397985856 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我简单看了下,这几个地方还有点疑虑。

@@ -0,0 +1,328 @@
# Fundamental data structure
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请添加一个WIP的标示, 标示正在翻译中。

但是,`http1.1规定,服务器端的响应的发送要根据请求被接收的顺序排队`,也就是说,
先接收到的请求的响应也要先发送。这样造成的问题是,如果最先收到的请求的处理时间长的话,响应生成也慢,就会阻塞已经生成了的响应的发送。也会造成队头阻塞。
`HTTP/1.0` 和 `HTTP/1.1`:
在`HTTP/1.0` 中每一次请求都需要建立一个TCP连接,请求结束后立即断开连接。而且下一个包必须在收到前一个包的ACK之后才能发送。
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下一个包必须在收到前一个包的ACK之后才能发送的原因是什么


Array is the simplest data structure and is used in so many places. For example, array is perfectly appropriate to store a data list. And in fact, you can find array behind many other data structures.

The stack and queue structures which will be mentioned later can be regarded as a kind of BLOCKED array. You can find the detials in the corresponding sections.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“blocked” 这个翻译是不是改为 LIMITED 更加合适


### Queue

Queue is a confining sequence. The elements in queue can only be removed from the head and only be added from the tail.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confining 是不是改为 LIMITED 更合适

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同意,查了一下confining多指动作上的限制,limited可以用作状态的限制,这里limited更合适。


> accoding to FIFO(fisrt-in-first-out) principle

Queue is also a very common data structure with widely using. Like message queue.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

widely using 是不是应该改为 used widely

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以改为with widespread application, 或者用被动语态with being widely used.
widely是副词,确实不该直接拿来修饰名词。


### Stack

Stack is a kind of blocked sequence. It only supports to add or remove element at the **top** of stack.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blocked 翻译

@azl397985856
Copy link
Owner

那就辛苦你再看看

@azl397985856 azl397985856 merged commit 5d88fe5 into azl397985856:master Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants