Pair programming - (also known as the slayer Adventures partner demon) with a high UI little early math learning software

First met pair programming, which is really on the bit can be completely unaware. Pair programming? How to do it? How to do it? What have the results? Everything, from the unknown. In pair programming project to convert the initial individual projects, they begin to realize the benefits of colorectal subtle programming of the project. The first is the mutual understanding between the code, in this process, we began to understand each other's ideas, he began to identify each other's ideas and problem-solving methods. In some places, we coincide, in some places, he was even better in some places, and I may be some features, in some places, we have mutual flawed code ...... no one is perfect, and no one the code is a good, we all have advantages and disadvantages of each other, we all need each other and learn where we can be learned ......, mutual learning and discussion in growth. Partner understand the code of procedure, has a very good on their own to enhance the role. It is to me, to understand his own shortcomings in understanding the process, understand their need for understanding is not thorough, but also understand different people different understanding ...... and all this for the same demand, but a pair early start programming. We have only just begun.

Open the project, from a word - multiplex. From the functional implementation, interpretation Partner C code for the function of individual project implementation is really a great inspiration for me. Before the exam interpretation of blog mentions his idea is amazing, so we chose his code as the basis and framework for reuse. In the process of reuse, we also recognize the importance and necessity of sub-modules written in code, and a simple function contains content. Code reuse, is simply, you write a function to a module, so that when needed again when the same function can be used directly, without re-develop. Function, inheritance, etc., probably is the use of this idea. And code reuse, a projecting portion is object-oriented programming, of course, also be different where two kinds of process-oriented and object-oriented programming.

 

The following from the junction of the main difficulties encountered in the process of programming thinking:

1. Exam

Exam thinking very much in line with the requirements of the complex, from which the exam and then generates the appropriate papers drawn subject composition, when compared to the total run of the program is generated when the time thinking subject, it saves a lot of resources, speed up the operating efficiency, as a complete module is also very easy call.

But the original exam code is not perfect, and we spent a great deal of effort to improve the exam code that allows it to better meet the needs. Topic generated code are summarized and consolidated on the basis of my personal projects, the main use of the data structure stack. First string of formula rewritten, all the operators of char rewritable type, attempts Switch (char), number of the corresponding operation, and binary operators to pay attention to the difference in unary. Read and store a digital expression stack with the stack and a symbol, a symbol for prioritizing operation, when the low priority level is :()> sin = cos = tan = √ = ^ 2> /> * > -> +, originally we are the multiplication and division are given the same priority, ignoring the stack backward out of the characteristics, a distinction dividend and the divisor division, after several debugging discovered the vulnerability has been modified, it is plus or minus in this way. Stack need a top of the stack can only be controlled operations, the most important thing is to follow the stack pointer and the clear reality, I can only say that practice makes perfect.

2.UI

We chose the QT development, since the main code C ++ so QT platform can provide a better UI implementations. It is also a QT inspirational story of the crash.

QT provides a more quite humane method of cross-platform development, but a short time to get started let's lost a lot of hair. After the introductory tutorial, we began to try first self-built project. The main project is a three-part header files .h, function calls .cpp, UI interface. Because QT has its own programming logic, so we took a big effort to differentiate into our code interface mode. UI interface and the first frame assembly is substantially constructed using a graphical interface, you will require subsequent assembly operations to the slot, then the appropriate function to improve. This particular exercise period is really object-oriented thinking, oop brave fly, program ape (Yuan) forever hand in hand. With some experience and also to close the connection between function calls and other exploration interface. UI interface to explore the background, fonts, buttons, labels, input boxes, passwords, whether visual, etc., is also very interesting process.

3. SMS

After the first two parts substantially completed, we have entered a new field, registered to send text messages. Among the many before and did not think the interface provided is not C ++, searching for a lot of cloud services, really can not find, we had to think of other ways. Java interface is still relatively easy to implement, but also improve the jdk, we decided to use the help system by calling C ++ jar, jar to complete the connection to the server. Different languages, different environments, such calls really long knowledge.

4. Package

There is an error on the operating environment, the computer obviously has a corresponding dll file but can not identify at the time of the first run QT project. After the perfect environment, we packed the tangled problem for a long time. Although the dll files in the folder where the file in the project, but later packed into a QT is not installed on your computer, you can not run, missing dll file is not displayed or unrecognized problem. In fact, this process I have been to each console version QT32-bit 64-bit doubtful, but did not think that way, after several check QT version is found tacitly qt 5.13.1 MSVC 2017 32bit version when the original construction project, it will We need to use this console project to improve the operating environment when the project package. 24M 800M from before and after the compressed packet, can be imagined rough.

 

That mentality of:

We learned a lot in the process of pair programming in supplement a lot of knowledge. I also took the opportunity to partner and learn more, so as to equip some thoughts about the project. Interpretation of the requirements document, the exam using, to the CPP transition to the QT; from process-oriented coding, the object-oriented thinking, we went through a lot, from and online great gods, and his partner learned a lot. Programming process, we start from scratch in the end, everything expanded and reconstruction based on individual projects, or their, or rewriting it, and even rewrite our understanding of the functions of several research and development positions which, based on practice to deepen understanding and impression, so they were "doing", laid the foundation stone for their future development. Cooperation between the two, mutual help, learning to each other, in the process of completion of the project constantly improve themselves. Attitude is very important, I really early anxiety, hope a lot of experience and grow it, to enrich their own toolbox, also have a more calm state of mind at ease.

Guess you like

Origin www.cnblogs.com/doudoudoujiang/p/11605065.html