Write the code into art and realize the idea of object-oriented programming

Source: Internet
Author: User

See a stern post, make yourself afraid of the momentary tremble ....

Http://www.cnblogs.com/menglin2010/archive/2012/02/08/2342029.html

We are learning object-oriented programming languages such as: java,c#, we are in the banner of object-oriented programming, but do the work of process-oriented programming

Now we basically go to a company, go up to write code, the boss let us new features, we began to write a novel method, to do process-oriented programming, everyone constantly to the original net field to add their own code, the original code block like a public toilet, everyone in the inside of the poop, And no one to maintain clean, finally smelly, imagine we have no real use of object-oriented language of the three major features, encapsulation, inheritance, polymorphism, I think most people use the most is the entity class, the entity class just embodies the characteristics of encapsulation, inheritance does not manifest, a dragon, nine of different, The polymorphic nature of the mouse's son's hole-punching is even less evident.

I think when we leave one day from a company, we have to transfer all the documents of the project to the new colleague, he can work, it must be to modify your code, and scold you, I think we all know that the code to modify others far more painful than the code they wrote, see your countless files countless lines of code are painful to die , in fact, a good architecture, just tell you the interface, you just have to implement the details inside, no need to control other files or code

If you're still doing process-oriented programming, you'll never get to the architect's path and never grow

Write the code into art and realize the idea of object-oriented programming

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.