The beauty of programming: How is it beautiful?

Source: Internet
Author: User

Recently, I read the beauty of programming-Microsoft's technical interview experience published by the liberal arts viewpoint. After two consecutive nights, I put down my books and closed them in bed, but couldn't fall asleep: what is programming, What is beauty, and what programming can be considered beautiful?

When I got this book, I was probably thinking about how to program it. After reading some of the books, I found that the book is about algorithm problems, but I will think about it later, you will understand that the book is not intended to talk about programming or algorithms. After reading this book, you may not have to implement every program. Every algorithm understands it, but you must know that this book is about ideas and solutions to problems.

No matter which company you are going to interview, you may have some questions about the issue. What is important in the interview is not to give the interviewer an answer, but to tell him a way of thinking and a way of solving the problem. The beauty of programming is to tell everyone how to find ideas, how to optimize ideas, and finally find ways to solve problems, and constantly pursue excellence on this road, this is the beauty of programming.

In general, I have summarized the following:

  1. Space and time are replaced by each other to achieve matching and balance, solving the problem of time or space complexity.
  2. The idea of divide governance is typically like binary search, which makes complex questions simple and simple questions simpler.
  3. Mathematical Reasoning, seemingly cumbersome things, must also follow the rules. We can use special circumstances to calculate general conditions, obtain general formulas, and find a simple solution to the problem.
  4. Recursive calling, although inefficient, can make some complex ideas easy to implement, especially for the calculation process.
  5. To solve complicated problems, extract a single simple problem from the problem, and then abstract a single simple problem into a specific implementation.

But in fact, when we solve problems in our respective fields, we can use them without that method. We can work hard to understand and integrate various ideas, continuous training of your ability to discover and solve problems in order to remain unchanged. This book tells the truth that programming is more important than thinking. Only thinking is beautiful, and programming is beautiful only when thinking is superior.

Author: FU Qiang, original article link: http://blog.csdn.net/threewall/archive/2009/05/12/4171019.aspx
The beauty of programming-Microsoft technical interview experience:Douban Discussion│ Purchase through Internet │ purchase through zhuoyue network │ purchase through Dangdang

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.