Linux programming highlights

Source: Internet
Author: User
Linux programming essentials-general Linux technology-Linux programming and kernel information. The following is a detailed description. When the X system was designed in 1988, there were seven principles. I think it is very good to provide the writing system as a reference:

1 Do not add new functionality unless an implementation cannot completea real application without it.

Except for a real application that does not use a certain function, it cannot be completed. Otherwise, do not add new functions.
According to: too many functions are similar everywhere, so they are integrated into a function. Too many similar functions often lead to programming selection troubles, that is, to reveal the real practical value of the function.

2 It is as important to decide what a system is not as to decide what it is. do not serve all the world's needs, but make the system extensible so that additional needs can be met in an upwardly compatible fashion.

Deciding what a system is equally important as deciding what a system is. instead of meeting the needs of the world, the system should be extended and expanded so that additional requirements can be met in a previously compatible manner.

The following statement indicates that the function can be updated or expanded only after slight modifications are made.

3 The only thing worse than generalizing from one example is generalizing from no example at all.

The uniqueness is worse than the sum of conclusions from one example, but the sum of conclusions from the absence of examples.

Conclusion: that is to say, it is good to draw conclusions from many examples, which is better than just creating your own ideas.

4 If a problem is not completely understood, it is probably best to provide no solution at all.

If you cannot fully understand a problem, it is best not to provide any solution.

Suggestion: the possible solution does not conform to the original intention of the problem, and may go astray, wasting energy.

5 If you get 90 percent of the desired effect for 10 percent of the work required to get 100 percent, use the simpler solution.

If you get 100% of a job (90% of the job is required), you can use a simple solution.

Press: 10% work-> 90% effect (easy); the remaining 90% work is only 10% more effect (hard); 10% work is a better solution, simple and efficient, even if it cannot be perfect.

6 Isolate complexity as much as possible.

Try to separate complexity.

7 Provide mechanism rather than policy. In particle, place user interface policy in the client's hands.

Rather than providing implementation policies, it is better to provide processing mechanisms. In particular, the implementation policies of user interfaces should be handled by the customer.

According to: policy => outline, handling rules.

Mechanism => details, handling process.

The translation and editing of the above Chinese language are partially completed by me. If you have any mistakes, please send me a letter to correct me. (ee)
--
Well... here is my E-mail: daniel@rs560.ncu.edu.tw
--
◎ Origin: Central Songtao station □bbs.ee.ncu.edu.tw From: yang.dd.ncu.edu.tw

Recommended books for X-Windows Programming

* ** Four years of development of X Windows software, some bibliography is provided ,***
*** Hope to help anyone who wants to develop X Windows software ***

X Window User:

Vol 3. X Window System User's Guide (for X11R5) [O 'Reilly]

Xlib programming:

Intro. to The X Window System, oliver jones, [Prentice Hall]
Network transparency X Windows System (Chinese translation) [songgang]
Vol 2. X lib Reference Manual (X11R4/R5) [O 'Reilly]

Motif programming:

Vol 6A. Motif Programming Manual (for OSF/Motif 1.2) [O 'Reilly]
Vol 6B. Motif Reference Manual (for OSF/Motif 1.2) [O 'Reilly]
Vol 4. X Toolkit Intrinsics Programming Manual (X11R4/R5)
[O 'Reilly]
Vol 5. X Toolkit Intrinsics Reference Manual (X11R4/R5)
[O 'Reilly]

X Window Manager:

Vol 8. X Window System Administrator's Guide (for X11R4/R5)
[O 'Reilly]
O 'Reilly & Associates X Windows series manual:
Vol 0. X Protocol Reference Manual
Vol 1. X lib Programming Manual (X11R4/R5)
Vol 2. X lib Reference Manual (X11R4/R5)
Vol 3. X Window System User's Guide (for X11R5)
Vol 4. X Toolkit Intrinsics Programming Manual (X11R4/R5)
Vol 5. X Toolkit Intrinsics Reference Manual (X11R4/R5)
Vol 6A. Motif Programming Manual (for OSF/Motif 1.2)
Vol 6B. Motif Reference Manual (for OSF/Motif 1.2)
Vol 7. XView Programming Manual (Ver. 3.2)
Vol 7x XView Reference Manual (Ver. 3.2, Companion to Vol. 7)
Vol 8. X Window System Administrator's Guide (for X11R4/R5)

Title Abstract:

Vol 0. X Protocol Reference Manual
Vol 1. Xlib Programming
Vol 2. Xlib Reference Manual
Vol 3.x Windows User Manual
Vol 4.x Toolkit Programming
Vol 5.x Toolkit Reference Manual
Vol 6A. Motif programming
Vol 6B. Motif Reference Manual
Vol 7. XView Programming
Vol 7x XView Reference Manual
Vol 8. X Windows System Management Manual
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.