Reboot 2003

Chapter 321 102: Defensive Programming

Chapter 321 102: Defensive Programming (-in-)

Temporarily freed from these restrictions, the previous plan can continue to be implemented.

In October, the general election next door officially began. According to the previous plan, I had planned not to get involved in these inexplicable things, but now it seems I have no choice.

Of course, at least judging from the current situation, this is not a bad thing——

The so-called political speculation, in layman's terms, means 'responding to the country's call'. Although Chen Qin did not do this in response to the call, since asking foreign investors to rescue the situation has become the current policy direction, even if he does not want to buy the bottom, there will always be others who do. So I asked him to buy the bottom.

In short, starting from that day, Chen Aotian was talking nonsense on Waibo.com for three days. While chatting with the start-up team about what their chips were used for, he was randomly forwarding news about the Dishui Party. He also said, 'Because I posted it to The financial lawyer I introduced is very powerful, so I want to support the Banzuo Party.' It seems that he is also trying to lure the audience to speculate on his relationship with the other party.

Those who are knowledgeable can naturally tell what he is planning at a glance, but what can they do... Meilican was also very closed during its heyday in the last century, and the general election is the largest democratic event in the world. How can a group of foreigners be tolerated? I'm making irresponsible remarks here.

Especially since the person speaking is not an ordinary person, an ordinary businessman, he can naturally be admiring Wang Hua. It doesn't matter if he wants to say a few words, but Chen Aotian himself is obviously from the Chinese dynasty, and he likes the unseemly photos of celebrities every day. It's really disgraceful.

In traditional media, he wouldn't even be qualified to appear on current affairs programs.

But after all, times have changed. Not only are traditional media now prohibited from participating in presidential elections, they can only watch from the sidelines.

The Internet gold diggers on the West Coast also have their own rules. The Democratic Party itself is rushing to ride on the popularity of the Internet. What is there to say if others say a few words on their own territory?

What's more, they still paid for it... Ever since I posted a reply, Chen Aotian seemed to have become particularly concerned about this matter. He said every now and then that he wanted to invest in Meilijian's technology company, and even asked interested companies to do so. When I came to look for him on Weibo, he looked like a clown in his behavior, but then many start-up teams actually went with him.

"Follow the Democratic Party, meow. Follow the Democratic Party, thank you, meow."

The geography class that day was too boring, so Chen Qin went to Weibo and posted a support Weibo, and notified the administrator to ban a few 4chan rednecks who scolded him. He felt refreshed.

Just as she was about to put away her phone, A-Yue's little head came over: "What are you looking at?"

"I'm posting on Weibo." Chen Qin quickly put away his phone, "What are you looking at?"

"You are looking at that kind of very exposed woman again, huh." Ah Yue wrinkled her nose, "By the way, do you want to look at ours?"

"What's yours?"

Ah Yue poked her face with her hand and said deliberately: "It's the big breasts you mentioned."

Chen Qin glanced at her baggy school uniform top in shock: "Huh? You?"

Ah Yue said disdainfully: "You just think about these nonsense every day. Fortunately, I thought what you said last time was quite reliable."

Then he didn’t show off, but opened the photo album on his phone: “Here, it’s the vertical painting of Dota 2. Because they listened to you, their community repaired it urgently. Since it was you who said it, you should come and take a look. "

As he spoke, he opened the photo album, which already contained the modified Dota 2 hero design draft.

Because Chen Qin said last time that their characters were too ugly, and asked Ah Yue to have a talk with them.

But she didn't use her status as an investor to put pressure, and A Yue had no business dealings with them.

However, this kind of community game itself has some quackery in it. Ayue is a friend and a senior in commercialization. Bingwa listened to her opinions carefully. The ones that have been modified this time are already in the third edition. Finished product.

Chen Qin took the phone and opened the design draft of Ice Girl.

"How about it?"

"Okay."

"Then I'll tell you to go over there, but even though I asked you to come and advise me, Ice Frog has said it anyway, and you can't change it anymore."

Chen Qin was curious: "Is the construction schedule tight? Or is there no money?"

"He said it couldn't be any bigger." A Yue said with a straight face, "This is a bottom line issue, and he will not compromise anymore."

After hearing this, Chen Qin nodded seriously and then enlarged the picture to take a closer look.

"It's almost the same indeed." Then he said seriously, "This size is already very suitable, and it's not a matter of size in the first place. It has to be coordinated as a whole, so that it can be both large and beautiful at the same time..."

A Yue rolled her eyes at him and said, "That's it, right? Anyway, I'll go back and tell Ice Frog..."

"Wait a minute, although the breasts are almost there, there is still something missing. I need something a little cuter, like Teemo..."

"What is Teemo?"

"That's not important. What's important is the mascot-like character." Chen Qin said, "That is to say, since it is a cartoon style, there must be no less cute animals. This can enlarge the audience area, which is better than the abstract dark sage he made. good."

"adorable animal?……"

Regarding the female character, it has been changed twice before, and this time it is almost the same. It is said that there should be beautiful women. For today's online game industry, it is a common shortcut for commercialization. However, game design always blindly gives this thing If you give in, it will be a greasy senior sister, and players may not like it very much.

But since it is a cartoon style, it is also necessary to make something cute. Although there is a lot to be said about the early art taste of LOL compared with the early Dota2, picking a few points may not be enough, but now it is almost the same .

"Anyway, just tell him. By the way, what's the next class?"

"Computer, did you wear your anklets?"

"Ouch, I forgot..."

Chen Qin changed the subject, but at this moment someone shouted at the door: "Ah Yue, Chen Qin! The teacher is shouting!"

I don’t know what it is. Although this situation often happens, it is basically a matter of the student union. It is quite rare to ask Chen Qin to go with him.

Chen Qin thought he was going to help with the hard work, but when he followed him out, he saw a tall and thin man waiting outside.

"Principal Wen?"

"follow me."

The unsmiling new vice-principal nodded to A-Yue and looked at Chen Qin emphatically. Since Principal Lu left and he took over the position of Principal Lu, he has not had any contact with Chen Qin.

After going out, Principal Wen looked at Chen Qin's appearance, turned around and walked upstairs without saying anything.

Then he went upstairs and arrived at Principal Lu's office - of course, it was now his office.

Principal Wen entered the office, sat back behind his desk, and put his hands on the mahogany desk.

Two students were standing at the table, and he didn't let them sit down. Of course, this was a normal way for teachers and students to communicate. Chen Qin didn't think there was anything wrong.

"Chen Qin, right? Are you Chen Qin?"

Chen Qin replied: "Yes, teacher."

"You and Ayue are celebrities in our school. We even won an award together at the beginning of the year."

Chen Qin didn't reply, so he asked again: "I heard that your family and Lao Lu are old acquaintances?"

A-Yue probably noticed something at this time and looked back at Chen Qin, but Chen Qin still had no reaction: "Yes, it's a pity that Principal Lu committed a crime and was transferred away."

"There's nothing you can do about it. It's a normal job transfer. You two don't have to think too much and just study hard." Principal Wen added, "As for the game you two played, I don't understand it, but it's a game, not at your age. Regarding things that should be exposed, I suggest you correct your attitude and focus more on business. Although it is okay to have a career, you still need to have more purpose..."

Principal Wen seems to be the type who likes to preach, and Ah Yue is a little unhappy. It seems that she was a little dissatisfied with Principal Wen last time.

But Chen Qin just replied calmly: "I know."

Principal Wen pursed his lips and did not dwell on this issue: "I mainly heard that you two understand the Internet, and I have something to ask you."

He took out a folder, spread it out and said, "Recently, the city is engaged in educational informatization. We also have such a task at hand. I heard that you two can do it. Do you have anything to say about this?"

A Yue was curious: "What is informatization?"

"It's just a small website." A-Yue may have vaguely guessed what it is: "We have done it, but recently we just set up a special page for players to browse and release strategies. It is not a big project."

Principal Wen said: "Recently we are also planning to build a small website. It doesn't have to be too much trouble. Once it is done, it will be good for the next three best reviews and scholarships. Are you interested in giving it a try?"

A Yue's little brows were already wrinkled, but Chen Qin said: "Her small website is built on the framework of an encyclopedia page. Can this digital website you mentioned also be built on an encyclopedia page?"

Principal Wen asked: "Can't we just build a website? It needs to be more formal."

"It's okay," Chen Qin said, "I just need money. How much funding do you have?"

Principal Wen didn't want to tell the junior high school students this: "You don't have to worry about it, the funds must be enough. The main thing is to ask you whether this thing is difficult."

Chen Qin spread his hands: "That's not necessarily true. If you do it for us, we don't have to charge you, but you have to find someone yourself for subsequent maintenance, and you need someone else to deploy the server. Of course, I'm not saying we won't do it. Well, if something happens, we two middle school students can't be held responsible, so you'd better find a professional company to ask."

Principal Wen said quickly: "You don't have to worry about this. Anyway, please tell me how much each plan will cost."

"If you want all-inclusive services, just look for the kind of cloud service provider that has just been launched recently. A package costs about 500,000 yuan."

"Half a million?" Principal Wen shook his head when he heard this, "Just make a small website and get half a million?"

"It's already very cheap. If you think it's too expensive, you can bid for it yourself." Chen Qin said patiently, "This is a complete package, including design, development, and testing. You can make whatever requirements you want, and follow-up maintenance. You don’t have to do it yourself.”

Principal Wen's expression softened a little: "It doesn't have to be so complicated, just ordinary... just deploy a set of websites."

"That is to hire people yourself and cooperate with Telecom's data center. They are not responsible for web design and operation, but the domain name and network deployment expenses will cost about 50,000, and then you only need to pay the rent of the data center."

"Oh..." Principal Wen nodded, "What about another one? What if we do it ourselves."

"You have to find a network engineer to arrange things. We can only make a page for you. It's mainly about operation and maintenance and other chores..."

When Chen Qin tried to explain, Principal Wen asked, "Aren't there a lot of studios with you that come from telecom? Will they?"

A Yue finally couldn't stand it anymore: "Brother Gao and the others are opening a studio. They are very busy with work recently."

"Oh, you can't say that." Chen Qin pulled her sleeves and said to Principal Wen, "The main difficulty in this matter lies in the responsibility. We don't charge you any money. It's okay if we do it for free... "

Principal Wen said quickly: "Hey, I need to be paid, but this website is not big. I just deal with the work in the city. According to this standard, we can just pay the market price."

"As long as you don't mind." Chen Qin didn't seem to think there was any problem at all. "Principal Wen, you are the principal. Let's help you as if we were making friends. No money is needed."

Then he said: "How about this? You find a computer on site, and A-Yue and I will help you do it now."

Principal Wen felt a little uncomfortable. You, a student, have made friends with the principal. How can you be as young as you?

But building a website doesn't sound that simple. Principal Wen himself is afraid of spending money. These two students are so easy to control, so just make friends.

"Then who did you call for operations and maintenance?"

"This mainly requires someone to be responsible. If we don't charge money, you can find a computer and we will do it for you. It just so happens that our next class will be on microcomputers."

"Okay, you two can do it on my computer!"

Principal Wen had a computer in his own office. In this case, he moved aside with his hands behind his back. Chen Qin was not polite and sat in his seat. He immediately turned on the computer and looked at the document. At first glance, it turned out to be really not simple - I thought it was a small project for some school, but when I saw it, it turned out to be the official website of the Municipal Education Bureau. Fortunately, he dared to recruit two students and just do it directly.

Forget it.

Chen Qin skillfully went online and started downloading the production tools. Because the requirements were all written on the document, there was nothing he needed to ask.

After a while, Principal Wen stood there with nothing to do, so he strolled out and said he wanted to say hello to your teacher.

At this time A Yue said: "Why should you agree to him? He just looks down on us and at the same time wants us to do things for him for free. Who cares about his recommendation!"

"It's not difficult. Let's show him how to do it by the way." Chen Qin said and moved his chair. "It just so happens that you have been learning code for so long, and it's time to practice it yourself. Come and give it a try."

"Why are you asking me to come!"

A Yue became more and more confused, but still sat in front of the computer.

But looking at the desktop, Chen Qin had already downloaded the tools he needed. In addition, now computers can also install OFFICE, and the tools for making web pages are directly available.

"You use this frontpage. As for the government website template, I have found it for you..."

Chen Qin guided her and asked her to try the ready-made template. It was indeed not that complicated. Not only were the materials ready-made, but the page was already ready and she could just input the text.

"But even so..."

Ah Yue was still a little unconvinced, but Chen Qin opened a web widget that he had downloaded before. It was an open source widget with JavaScript templates: "Just a hyperlink page is too simple. We have to add some ingredients to it."

A Yue's eyes lit up, but she didn't know how to add ingredients, so she gave the computer to Chen Qin. Chen Qin fiddled with it for a while, then opened the page: "Here, look."

It is a small drop-down menu and a Banner display board with folding and sliding animation effects. Not only does it work well, but it also seems to be compatible with old HTML standards.

"Great, right?"

Ah Yue suddenly realized: "Well... I thought it was that kind of addition."

"As a programmer, when working for others, quality is the most important thing first." Chen Qin said, but reopened the code, "But the materials haven't been added yet. Now you do it, and I will teach you how to do projects for Party A. "

Isn't this already done? Of course, the content in the file has not been entered yet, and it has not yet been deployed to the Internet.

But that’s not what Chen Qin was talking about. Ayue sat on the chair, and Chen Qin directed her to open the code of the open source gadget.

"Delete all the comments first."

"what?"

"Just delete it. Deleting the comment will not affect the running of the program."

"But if I delete the annotation, what should I do if others can't understand it in the future?"

"Aren't we there? I have backed up the original files, so don't worry about deleting them."

Ah Yue said "Oh" and started deleting comments - this open source tool is made by Chinese people, and it is really good. For example, this line is for calling materials, that function is for mouse judgment, and even the logic of the steps is specially designed with two The line notes were written out, and Ayue deleted all of them.

"Then you change the calling function of the external web page to this and insert it into the calling resource of this gadget."

A Yue thought thoughtfully: "In this case, if they delete this control, the webpage will be unusable... right?"

Chen Qin was noncommittal: "Let's make a friend! If he understands, he can change it himself, or ask individual programmers to come over. It's just a little more troublesome."

Is this called ‘a little troublesome’? A Yue understood his plan more and more, but Chen Qin's methods went beyond that: "Then look here, they even use pointers for programming. Do you know what pointers are?"

A Yue is a newbie who has just started Python, so of course she doesn’t understand: “I don’t know.”

"In fact, this pointer is not complicated. Let's change it into the form of If and Else..."

A Yue made two corrections before she fully understood: "I know, you just forced yourself to agree, and then deliberately made the code messy for him so that he can't live without you and be blackmailed by you in the future."

"This is not a threat, just making friends." Chen Qin said, "If I don't be so defensive, what if he doesn't want to be friends in the future? Besides, do you think I am someone who can blackmail others? Anyway, this It’s called ‘defensive programming’…”

It was obvious that Ah Yue was overreacting. But while Chen Qin was thinking this, Ah Yue thought of going elsewhere - she always remembered the concepts that Chen Qin had repeatedly instilled in her before, and now while changing the code, she immediately started to draw inferences:

"I understand, this is what you call an amateur commanding an expert. If you are not technically qualified, you will be fooled by the expert's subordinates, right?"

 There will be another update in the evening (

  

 

(End of this chapter)

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like