The mechanisms and specifications that you must know to get started with Windows programming

Source: Internet
Author: User

Learning programming language is not very small, the classroom learned c\c++ on the high-level programming of the process-oriented and object-oriented, basic grammar has a basic understanding of the data structure of the C version of the content, but also simply learned the Java development of Android applications. Now start reading research, the Institute of the Project for Windows program development, around the people are in C #, and then began to move to C # development and self-study.

Before, learning software development, practice programming, are from the language of the subject to consider, more is tangled specific knowledge points, a grammar, function how to write, and so on, this learning as the foundation, written code are a,b,c,a1,b1,m and other naming format, write down the two complete program also on hundreds of lines, Not enough to compete for a good company's many candidates; at this stage, need to improve their own vision and taste, for learning programming, need to consider how to write good code, excellent code, standardized procedures and from the overall grasp of the operating mechanism of the compiler program, from the business standards to demand their own. This is for your current stage of experience and the ability to improve. Now in a few ways to "see" What the rookie needs to know:

1. What is a good code?

What is the operating mechanism of the 2.windows architecture and programming design?

3. Did the master knock out or read a book?

4. What are the best book recommendations to help improve your programming skills and vision?

Here are one by one way to:

1. How to write good code?

Excellent code that needs to be considered is nothing more than a few points: Canonical naming, function encapsulation and interface, flexibility, algorithmic design efficiency. These rules, I will use a piece of code to specify.

What is the operating mechanism of 2.windows programming?

The relationship between Windows and program runs is to interact with the message mechanism, which is designed to take advantage of the interface of the operating system to implement functionality, so it is more important to fully tap the operating system's potential than to focus on how to implement it specifically, for example, to print strings using printf, The program is concerned about calling the system function printf, and the string into the printf parameters can be printed, as to how the string in memory is processed to the peripheral and displayed on the screen, the C language can not be done, to do is the operating system.

The important feature of the Windows operating system is preemptive real-time multitasking. If two programs are running at the same time, how can memory be allocated and managed? A very important function of the operating system is processor management, a program run is a process-unit, the process starts in the program is called, and ends with the program stops running. If multiple programs are running at the same time, how does the processor respond to different programs and stay productive? Each process is executed only if it occupies memory and is invoked by the processor, and the process execution usually requires a peripheral input; the operating system does not wait too long to fully make the processor busy. So the processor mechanism is to solve this problem, let the process in different states.

3. When learning Tai Chi, the light to see the master every recruit each style, see thousands of times will not be shot; only on the basis of the look on their own to play every punch, every action, will know where to make mistakes where the need to memorize, to understand each of the essentials. To see also to practiced hand.

4. A good reference book, the equivalent of a martial arts tips, guidance to master is a trace of the track, it is recommended that with "Microsoft technical Books" logo, are a good Windows development books. You also need to visit MSDN frequently to get network resources.

Here's a sample code to talk about programming specifications: Naming methods, code flexibility, function encapsulation and interfaces, algorithmic complexity.

Continuous update ...




The mechanisms and specifications that you must know to get started with Windows programming

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.