The cancer inside Ruby

Source: Internet
Author: User

Transfer from https://ruby-china.org/topics/26120

Because of the flexibility of Ruby, how good use, in fact, is more skillful, in fact, summed up, can be categorized as follows

regular business, not the last resort, do not use meta-programming, do not use obscure techniques to show their own caution with the monkey patch, otherwise it will bring some strange problems, and C+ + inside the operator with caution use the same as if the class library, in the case of need, you can use these techniques to achieve the requirements , specific social circumstances need, in fact, can refer to some Java design, Ruby's flexibility is actually to solve some strong-type language inflexible, rather than misuse

The code should be easy to read, and the excessive skill of the art brings a lot of obscure sentences, and many times an obscure technique is no better than a method that is wrapped in a function.

The cancer inside Ruby

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.