It has been a while before I posted a post in the blog garden. I am always too lazy to write, although I have always wanted to write. In these days, I have played many exciting games during my undergraduate period. The gaming experience is no different from that in the past, but I am no longer young. It's really nice to be young. Even if a young girl is gloomy, it's just that when I was young, I didn't realize or pay attention to it. I just looked at the envy of others. The days have passed and the years have gradually become old. But these years are still lonely. I thought I could touch others, and finally found that all I could touch was myself.
You may be disappointed if you want to get something from my words. Write TechnologyArticleIt is not my advantage, because my understanding is not deep. I just want to tell a story here, which is not a success story. I have read many comments from the blog site. Most of the articles are not about any technology or are not highly technical. People always like to see that others are weaker than themselves, so do I. I always like to compare myself with others and rejoice in my superiority to others. At the same time, others also appreciate my failure, and I also like to tell others about my failure.
Whether a thing is superior is not about how advanced it is, but about how many people use it. People always like it and don't want to change it easily. People are the genie of all things. This article is to describe my understanding from the perspective of people, at least from my perspective, rather than from the technical perspective. Of course, my feelings are indispensable for the framework and model. I feel that my life has been ruined, and no substantial changes have been made. I am still a bad guy. I always indulge myself in this effort, and I am always afraid of opportunities. In this way, after ten years and the best years of my life, there will never be more.
The idle skills in my words cannot change the silence in my life. Go back to the topic and talk about the framework. People always want to do less and others do more.ProgramThe same is true. Therefore, the software replaces the hardware work, and the batch processing file replaces the logging machine, COM + Upgrade . Net . Even today, we still need to do a lot of redundant work, so the framework emerged and handed over the repetitive things we don't like to do to the framework. The framework is like the path built on the mountain. We may be more free without a framework, but excessive freedom may lead to lost directions. Before Windows Perhaps the most famous framework of the Times is MFC , Named together Owl If it is designed by only one person, it can be said that the person is a genius. When we look at it, it's always a maze.CodeDisrupt, the people who design it can only say that there is a lot in their hearts. The difference between a genius and an ordinary person is to change history with one's own strength. Current year, rating C # And Dephi The Creator is a saying: "He is simply a God." A genius has exceeded the range that can be imagined in his time. For example, Gaussian can be used to measure the field to discover the ground. The creation of heaven and earth, so most of them died early. For example, riman, who is less than fifty years old, died of poverty, Abel, not satisfied 30 He died of poverty and was not given a higher education. He rebuilt his four hundred-year history of mathematics on his own, and died early. I can interpret the program with my own thinking 100 History of the coming year (from ADA And satisfied. The fate of genius excludes some accidents. So I don't want to be a genius. I just want to be healthy and healthy. I have two more children. I am satisfied. Use MFC You still need to know some insider information, or you will be confused about the errors in compilation. MFC Only Win32s A thin layer, Win forms The encapsulation is a step more simple. After all New One Form Ratio Createwindowsex Simple and Easy to remember. But our Form Still Native window , So Win32s It is applicable.
Previous beginnersWindowsDuring programming, I still don't know what object orientation is. During each compilation, the system waits for an error. In process-oriented structured design, a function is the minimum unit of construction. The most important thing I remember is that if the function name cannot use a verb to describe all functions, it should be split into several functions. I will learn more about what isOOPHowever, thinking is always difficult to change. Do not know the currentC ++. netWhether to compile it.
the emergence of the framework has greatly liberated programmers. He gave us a choice that we only need to care about. "Programmers are male workers in the software IC factory. Once you rely on the framework, you have to learn. Therefore, we have to learn ISAPI Asp , go to Asp.net 1.1, 2.0, 3.5. Microsoft keeps following its footsteps for half a day. Sometimes it is not that we are willing to learn, but that companies have to learn. All recruitment information is not required, and the database must be proficient SQL Server, Oracle, DB2, information, server knowledge apache , JBoss , tomcat, Web Logic, websphere, master common frameworks stuts, spring, and webwork , of course, . net .
If we do not consider future maintenance and modification, we will be more efficient without the framework and mode. However, the framework is designed for general purposes, so the application model will naturally be used. Mode usually, the application introduces redundant classes to achieve the goal of coupling. For example, the factory model requires one more factory class. Currently, reflection factories and dependency injection modes are popular, and the previous abstract factories are gradually replaced. This is mainly because of the support of advanced languages for reflection,MFCThe implementation of reflection is to introduce static data for each typeCruntimeclass,. NetThe implementation is inPEIt is described in the file header.ComThe times have similar practices, but they were put in a separate file.JavaThe implementation of the reflection mechanism is still unclear. I hope Zhu junming will teach me. Maybe these details are of no use. I have also seen old programmers who do not understand what inheritance is, but cannot tell the line buffering and full buffering, but what can I do, details can never be learned. Just like popular technologies, we never know what will be popular next year.
I looked at the design pattern again these days. I just gave a general description of my understanding, the level is limited, please point out the error.
In general, interface-oriented programming is a constant principle, and we are pursuing the goal of not exposing details. Separating the components that may change is the main method of designing patterns. When the function of the changed object is similar, the factory mode can be considered when the method is the same, for exampleDatabase ConnectionUsing the factory model makes it unnecessary for usSqlconnectionOrOracleconnection. If the object differs too far but the methods are the same, we can construct the same interface and use the generator mode. When the object functions are similar but the methods are different, you can consider the visitor mode or intermediary mode. To change some interfaces to the same, you can consider the adapter or appearance mode, if you add a function to the original interface, you can use the decorator mode without adding the original interface. However, you can consider the proxy mode when you want to enhance control, for example, you may choose between testing and formal application. Of course it is not absolute. At this time, we can use the factory model to achieve the same purpose. The clever pattern is something with one mind, just like a break, and everyone has their own opinions on the ghost.
It's too messy to write, and it's hard to watch. It's just a long time. I don't know what to say. Let's do it first.