cover

Hi ~ everyone is good, I am a zhuang, a programmer in the Internet, today and everyone talk about programmers in the work of the real state. Is it really just as the net said that will only add delete change check? Do programmers move bricks every day?

Write effective CRUD

When we studied in school, we started from the most basic, the amount of data is not very large, and most of them are operating MySQL and other databases. The most important thing in practical work is to solve problems efficiently. If software development is compared to mathematics, addition, deletion, change and check is addition, subtraction, multiplication and division. The computational relationship between numbers is ultimately addition, subtraction, multiplication and division, and the operational relationship between data is ultimately addition, deletion, change and check. In the work usually do the most is to add, delete, change and check set of business. Now the framework has been very mature, ordinary add, delete, change and check a line of code can be done, the purpose is to let programmers pay more attention to the business logic, rather than code implementation. On the other hand, you can add, delete, change, search business, add, delete, change the search algorithm, add, delete, change the search design pattern, but everyone’s point of concern is different. In the case of large data volume, the thread pool will be used appropriately. It is not possible to simply connect to the database. A SINGLE SQL sentence can be done. For high concurrency scenarios, more attention is paid to solutions. Therefore, no programmer will discuss how to write the addition, subtraction, change and check together. The basic focus is on the business, and the addition, deletion, change and check are just basic skills, like the addition, subtraction, multiplication and division between numbers.

However, in a specific scenario, add, delete, change and check are difficult to achieve. For example, the data of zhuang’s company is stored in this way. The frequently changing data is stored in Redis (based on high efficiency of memory operation), and the commonly changing data is stored in the database (such as MySQL, which is more flexible for logical business). Data that doesn’t change often is placed in Elasticsearch (big data search engine, very efficient). Since the data of an object is stored in different locations, sorting and aggregating operations are not so simple, while ensuring execution efficiency.

Shift focus and focus and refuse to just do CRUD

Every programmer’s focus is not the same as understanding. Some focus on algorithms, writing efficient programs that allow users to squander performance. Some people focus on services, sorting out the relationships between modules, services on the cloud, service choreography. Some people focus on architecture, the selection of technical frameworks, the infrastructure. Some focus on designing, encapsulating methods, reducing coupling, and making code easier to maintain. Some focus on solutions and have their own responses to unexpected situations. At the same time, programmers should pay attention to the latest technologies and tools, and establish the concept of lifelong learning.

I am A Zhuang, a programmer in the Internet, wechat search: science and technology cat, get the first information, we will see you next time