In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The second phase of development (28 April-20 May 2017):
Development content: ① project framework design, directory tree structure, database design ② write Web Apps installer, detect the running environment, create data sources and database user information and generate PDO configuration files (interface constants, abstract methods, arrays, functions), import system raw data table ③ encapsulates project application class library lib including initialization system configuration class Initialization automatically loads PDO database operation class static singleton mode or factory mode, background frame paging class, picture upload class and other ④ home page index.php and admin initialization, default includes search path setting and custom error handling function configuration file, single entry file related mechanism ⑤ home page and inner page, navigation menu function module subdivision
Development idea: according to the planning layout and development sequence of "personnel and salary query system", starting from database design, system initialization, encapsulation class, static singleton model instantiation are used as the main line, object-oriented development mechanism is used to optimize the code, and the overall framework UI interface is friendly, functional modules are stable and reliable, dynamic cool, intuitive and simple, easy to use and easy to operate to complete all development tasks.
Method and skill: ① haste makes waste. Do not rush to succeed, busy developing the project framework, learn relevant knowledge before starting to develop each functional module, use the W3CSchool manual to guide the experiment of a single functional module source code, and then in-depth secondary development of the integrated project functional module after the functional test has passed. A beard well lathered is half shaved. Learning "charging" while developing is the only way for ② to pay attention to black and white box testing. The newly compiled source code or collected data must first be "black box testing", the function is feasible and achieve the desired goal, and then integrate large functional modules, in the process of continuous "white box testing" to find bug in time and kill quickly to ensure the safe, stable and reliable operation of the system. In short, the source code or modules that are to be integrated in the development platform must be grasped and mastered to ensure stable and reliable performance, and then optimized and streamlined before integrating the organic part of the integration project, the ③ free state law management function module. The functional modules to be integrated in the learning platform must store their files or subdirectories separately in a folder, so as to facilitate the appropriate merging of similar files in the development platform.
Enlighten experience: ① specification naming rules. Chinese and other special characters are not ASCII (American Standard Code for Information Interchange, American Standard Code for Information Exchange), and cannot be directly used as file names, directory names, field names, keywords, etc., otherwise, big mistakes will be made in the development process because of these common sense problems, which will bring inexplicable series of problems to system debugging and reduce development efficiency. ② specializes in making full use of off-the-shelf resources. Background development learning to focus on PHP operation MySQL content should be more, do not spend too much energy and time for the front-end UI design, "borrowlism" prevails at the moment, directly learn to use the good things of TA people, as long as it does not affect the overall framework style of the system, there is no need to repeatedly build wheels, collecting strengths is also the best way to integrate resources, which greatly saves time for system development and improves the overall development efficiency. Reduce development costs ③ configuration error handling. Shielding error prompts and using @ shielding will reduce the running efficiency of PHP, customize the fault-tolerant technology of error handling functions, and provide users with a friendly interface ④ based on the PDO database abstraction layer to encapsulate and operate MySQL application classes is a top priority once and for all. It is necessary to develop proficiency in PDO-related syntax and operation methods from the beginning of encapsulating Pdo_MySQL classes. Now the developed PHP Web Apps must keep up with the new trend of HTML5+CSS3+PHP7. This will certainly have a great impact on the direct use of the early source code resources such as the original stable running MySQLi wrapper class, and it will also waste the original system resources to rewrite the code based on the Pdo_MySQL engine, but the new trend of PHP7 development, which arises at the historic moment, needs a high starting point since it starts late, not to mention that the new system and new projects developed by PDO programming can at least run stably in the PHP5.3 environment without increasing the running cost of ISP. It does not affect the company's normal investment in the use of ⑤ to learn and use clear and stable static methods. From the installation to automatically generate custom constants or front-end static page display, relative to the background interactive dynamic processing, static methods are usually tools, static constants serve abstract variables, constants do not know who they are acting on, so they need to pass a parameter of "who to act on", whether it is an array or an object (there are multiple properties and methods with relatively static functions). Then pass the processing function, only then know who is calling, and there is no need to pass it. To complete the static task, ⑥ adheres to the law of modular structure. As long as the functional module of the project is stable, reliable, easy to maintain, clear and readable and lovely, it is necessary for a function to do only one thing, a module to complete only one task, to fulfill its responsibilities, to share its responsibilities, to jointly show the characteristics of the project, and to achieve the set goals. Put what you have learned into practice and make great progress. Efficient development, easy programming.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.