Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Baidu unmanned car more than 3,000 scenes, there are more than 10,000 if, who dares to sit?


Jun 02, 2021 Article blog



Referring to Baidu unmanned car, I believe we all know it! Earlier, Baidu unmanned car in Wuzhen test ride, in order to test the unmanned car brake function, Li Yanhong asked the engineer who wrote the unmanned car code to stop the car, some people say this is simply a proposition.

 Baidu unmanned car more than 3,000 scenes, there are more than 10,000 if, who dares to sit?1

Today we do not talk about this, talking about Baidu unmanned car more than 3,000 scenes, there are more than 10,000 if.

 Baidu unmanned car more than 3,000 scenes, there are more than 10,000 if, who dares to sit?2

Some netizens posted on the network that, according to Baidu unmanned car internal staff, there are more than 3000 scenes inside the unmanned car, there are more than 10,000 if, it is simply a pit. T he netizen also said that if is still increasing. U nmanned cars are expert systems, can such unmanned cars get on the road? How dare you sit down?

The poster said he just wanted to see how other gods were driving autonomously, with no black Baidu meaning at all. So how do other netizens comment?

 Baidu unmanned car more than 3,000 scenes, there are more than 10,000 if, who dares to sit?3

Netizen one: more than 3,000 scenes only more than 10,000 if, on average, a scene is only 4, not much!

Netizen 2: I think only more than 10,000 if, quite a small number.

Netizen 3: Statistics Linux kernel code, there are actually more than 30,000 if, and increasing. Is such a system, we dare not use, then we dare to surf the Internet?

Netizens four: more than three thousand scenes only more than 10,000 if, really not much, because to consider a lot of circumstances. If there were fewer ifs, people wouldn't believe it.

Netizen five: a scene only use 3 if, the technical level of the technical staff is simply too high.

 Baidu unmanned car more than 3,000 scenes, there are more than 10,000 if, who dares to sit?4

Netizens six: so many scenes are so little if, Baidu is really bullshit!

Netizen 7: Why not use switch?

From the comments of these netizens, Baidu unmanned car if not only will not be too much, but also can reflect Baidu technical personnel super high level. I n fact, in the code, if to be appropriate, like Baidu unmanned car if, in fact, just good. So if you write a lot of ifs in your code, doesn't it affect efficiency?

 Baidu unmanned car more than 3,000 scenes, there are more than 10,000 if, who dares to sit?5

On this issue, some people think that too much if in the code, will affect the efficiency of reading, because too many if nested, look at the code is simply hot eyes. T here are also netizens feel that if more difficult to debug, difficult to read, difficult to modify. What do you think about how much if needs in the code?