Chapter 8 Next is his performance

Programming languages iterate very quickly, and each update encapsulates a set of simple code that is easy for programmers to call.

Moreover, there are many branches of the programming language, each with slightly different use cases and execution logic.

Fortunately, the programming logic can be expected, and the underlying execution principle is also similar, Roy has a high-level cross-era vision in this regard, so it is necessary to learn and sell now, find an experienced programmer to assist, and it is not impossible to make a simple search function of the algorithm.

However, this idea was ruined by Mark Randolph's sowing discord, which immediately put Roy in a dilemma.

"Mr. Randolph, I don't mind you stealing my skills from the sidelines, after all, you have the final say, but can I ask you to shut up and be quiet for a while, and give me some room to think?"

Mark glared at Roy and left with an unkind face.

"Good luck Roy, you can come to the next office for me if you have any needs. Reed Hastings said farewell.

"OK, thank you, sir. ”

After dealing with the two bosses, Roy didn't have time to pay attention to Ulysses, a confident baby who was eager to try, and he directly said to the two programmers in front of him: "As you know, the video search technology on the website is a great cross-generational change that helps our customers find what they are looking for quickly. The point is, this function can be implemented this afternoon, and you will be witnesses to this miracle, so ...... I need your help. Will you give me, and give yourselves, a chance?"

The skinny man with glasses and the chunky man were silent for a few seconds, then nodded.

Although they still have doubts in their minds, their curiosity about technology trumps the rest, and because in the field of technology, it is always easier for people who are capable to gain respect.

"Thank you very much. Roy said sincerely: "I believe that your future achievements are just like your character, worthy of a generation of masters." ”

After the is blown, the flatbread has been painted. Roy began to seriously communicate with the two of them about programming techniques, and after a short understanding, he thought that the skinny man with glasses was better at programming, while the short and fat man had unique insights in art and layout.

He explained the underlying logic and simple algorithm of the search function to the thin man with glasses, and asked the other party to write the code first according to this idea, while he did the debugging of the function later.

During the other party's programming, Roy was not idle at all, picked up the basic programming books on the bookshelf, and began to ask the short and fat man for the main points.

When the short and fat man heard Roy's godlike opinion just now, he naturally knew that the other party was by no means a rookie who was indiscriminate, so although he was very puzzled why he always asked some low-level questions, he still gave Roy a serious answer.

No matter how quickly the times change, the underlying execution logic of the computer is unchanged, Roy is just not familiar with the programming style used by computers in the current era, if he wants to learn, it is like a divine help, like a reborn childhood campus, as long as a little effort, he can achieve extraordinary legends.

Therefore, in less than two hours, he has figured out the theoretical concept, and if he is allowed to get started with programming now, it will be very slow because he is not proficient.

During this process, Roy communicated with the thin-eyed man a few more times to confirm that the programming logic was completed correctly, and then waited for half an hour to debug it.

And now, there is only one hour left before 5:30 a.m.

Humpty Dumpty was not idle, and under Roy's guidance, he made a temporary database, which added a large amount of virtual data for a later search test.

Time passes by minute and second, and the error rate of programming is inevitable, and no one can guarantee whether it will be able to run before leaving work.

Roy looked around and suddenly felt that something was missing, and after thinking about it, he realized that the "chirping" Ulysses was gone. He's not in the mood to know where the other person is wandering right now, he's racing against the clock to check the programmed code on another computer, and he's planning for a rainy day.

"NICE, the code has no errors, it's ready to be tested. The thin man with glasses yelled excitedly.

Roy said: "I just saw that there are some problems with the code logic of the third line of the second section, the ninth line of the fifth section, and the sixth line of the tenth section. ”

"Ah...... I'll take a look...... Sorry, I'll change it right away. "It's incredible that the skinny man with glasses simply worships Roy as a god, and he can find problems without using a workbench test.

After he changed it, he started to connect to the database for testing.

Enter the title in the virtual search box that pops up in the workbench, press the enter key, and wait for the return result.

Roy stared nervously at the screen, the number of errors in the first test was of special significance.

After a second, the display screen is written in red, and a rough count shows at least 7 errors.

There is still a long way to go before real success is achieved.

Roy looked at the time, there was only half an hour left, and if he didn't finish it, the day would be too big.

You have to fight hard.

Together with the other two, he went through the cause of the error line by line, made changes based on Roy's suggestions for changes, and then continued to test.

Then the three of them kept repeating the revision, testing, error, modification, testing, and error...... This reincarnation.

Writing code manually can sometimes be like scientific research, where you need to constantly change presets and do a lot of trial and error.

In other words, if you don't have a lot of time, if you want to succeed in a short period of time, you need a certain amount of luck more than your skill level.

The time points to 5:25.

The door opened, Mark Randolph and Reed Hastings were about to come in, and Roy had just failed their 6th commission.

When Mark saw the solemn look on Roy's face, he guessed that the result was unsatisfactory, and he tapped his finger on the table and reminded, "Mr. Fan, you still have 5 minutes." Good luck. ”

Roy was forgetting everything at the moment, his fingers were beating rapidly in front of the computer like butterflies through flowers, and the code that reported errors on the monitor was being refactored over and over again.

Reed walked over to Humpty Dumpty and whispered, "How's it going?"

The short and fat man put away his seriousness and said excitedly: "If there is enough time, I think I will be able to succeed." ”

"Is it certain?" Reed confirmed, unbelievable that this little guy who was talking wild was so talented that he was unexpected.

Mark said dismissively: "No, he only has 2 minutes." ”

Dissatisfaction and contempt flashed in the short and fat man's eyes, and after a few curses in his heart, he concentrated on returning to the computer screen that Roy had programmed.

"And the last minute, Mr. Fan, are you ready to surprise me?"

Roy typed down the last line of code and switched to the debugging interface.

He turned his head suddenly, and the low noise in the doorway drew everyone's attention.

At this time, Ulysses enthusiastically and proudly led five employees into the house and announced loudly: "Dear colleagues, let us witness the next miracle with Mr. Hastings and Mr. Randolph, a myth created by the omnipotent Roy, a significant change for the company, and a milestone in computer technology."

"Just today at noon, where we were standing, Mr. Randolph said it was simply impossible. However, Roy - born to work miracles, and he was invited to perform next. ”

Suddenly, everyone in the room was stunned.

Roy's eyes were full of 10,000 alpacas, and he thought that Ulysses knew that this matter was of great significance, so he settled down a lot, but he didn't expect that his whole moth would be innovative and unguardable.

Now this scene is like a big gamble, winning the glorious and unparalleled in the world, and losing the gray face and dove-faced.

There is no third case.

No matter how funny this scene is, now everyone's eyes are on Roy, and at this moment, he is the deserved protagonist.

Roy took a deep breath, typed a title into the search box, slowly raised his hand, and pressed enter with a sonorous and powerful press.

The text on the screen flashed, and the red error in the lower right corner was eye-catching and dazzling.