What features should a programming language have to say it has good reusability? [closed]

What should a programming language have so that it can be said to promote good reusability? Only generics and functions come to my mind when I hear the word reusability. What else make a programming language good for writing easily reusable code?

3

The first and foremost item would be a well defined unit of reuse and philosophy behind their implementation. When you look at the most successful reuse implementations you essentially have components or plugins. What makes those work are:

  • A well defined interface separating implementation and use
  • Well defined contracts for that interface
  • Consistent packaging (i.e. a way for the consumer of the component to discover what is available)

C# and Java provide the programming concept of an interface for just this purpose. Interfaces don’t require all implementations to share an object hierarchy which helps protect proprietary code from changing a base class to provide more visibility into subclass composition. Many of the dependency injection frameworks from Spring(.Net) to MEF also define packaging requirements which complete the picture.

All of this can be done without an object oriented programming language as well. For example, C uses the extern keyword to define the functions that are exposed for applications to use, as well as structs to package data.

Namespaces are important to facilitate the ability for code to work together. When you have generic class or function names, you can very quickly run into collisions without namespaces.

If you are using an OO language, supporting interfaces and traits is superior to just supporting inheritance – it’s easier to compose an object of other objects than it is to try and extend an object about which you know very little.

The first thing that comes to my mind is a good module system. To support re-use, the module system should:

  • be lightweight – a heavyweight module system will discourage use, which discourages re-use.
  • support versioning – if a client can ask for a specific version of another module, that will make it easier to independently evolve the different modules without breaking clients.
  • control namespace pollution – you don’t want the module’s internally-defined symbols to compete with those of your client code, so some for of controlled symbol export / import, or namespace definition, will be necessary.

A good module system is important. Go’s interfaces (Java’s are similar, I hear) are pretty great.

I would add objects and inheritance. This will allow code to be reused by a child type.

3

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

What features should a programming language have to say it has good reusability? [closed]

What should a programming language have so that it can be said to promote good reusability? Only generics and functions come to my mind when I hear the word reusability. What else make a programming language good for writing easily reusable code?

3

The first and foremost item would be a well defined unit of reuse and philosophy behind their implementation. When you look at the most successful reuse implementations you essentially have components or plugins. What makes those work are:

  • A well defined interface separating implementation and use
  • Well defined contracts for that interface
  • Consistent packaging (i.e. a way for the consumer of the component to discover what is available)

C# and Java provide the programming concept of an interface for just this purpose. Interfaces don’t require all implementations to share an object hierarchy which helps protect proprietary code from changing a base class to provide more visibility into subclass composition. Many of the dependency injection frameworks from Spring(.Net) to MEF also define packaging requirements which complete the picture.

All of this can be done without an object oriented programming language as well. For example, C uses the extern keyword to define the functions that are exposed for applications to use, as well as structs to package data.

Namespaces are important to facilitate the ability for code to work together. When you have generic class or function names, you can very quickly run into collisions without namespaces.

If you are using an OO language, supporting interfaces and traits is superior to just supporting inheritance – it’s easier to compose an object of other objects than it is to try and extend an object about which you know very little.

The first thing that comes to my mind is a good module system. To support re-use, the module system should:

  • be lightweight – a heavyweight module system will discourage use, which discourages re-use.
  • support versioning – if a client can ask for a specific version of another module, that will make it easier to independently evolve the different modules without breaking clients.
  • control namespace pollution – you don’t want the module’s internally-defined symbols to compete with those of your client code, so some for of controlled symbol export / import, or namespace definition, will be necessary.

A good module system is important. Go’s interfaces (Java’s are similar, I hear) are pretty great.

I would add objects and inheritance. This will allow code to be reused by a child type.

3

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

What features should a programming language have to say it has good reusability? [closed]

What should a programming language have so that it can be said to promote good reusability? Only generics and functions come to my mind when I hear the word reusability. What else make a programming language good for writing easily reusable code?

3

The first and foremost item would be a well defined unit of reuse and philosophy behind their implementation. When you look at the most successful reuse implementations you essentially have components or plugins. What makes those work are:

  • A well defined interface separating implementation and use
  • Well defined contracts for that interface
  • Consistent packaging (i.e. a way for the consumer of the component to discover what is available)

C# and Java provide the programming concept of an interface for just this purpose. Interfaces don’t require all implementations to share an object hierarchy which helps protect proprietary code from changing a base class to provide more visibility into subclass composition. Many of the dependency injection frameworks from Spring(.Net) to MEF also define packaging requirements which complete the picture.

All of this can be done without an object oriented programming language as well. For example, C uses the extern keyword to define the functions that are exposed for applications to use, as well as structs to package data.

Namespaces are important to facilitate the ability for code to work together. When you have generic class or function names, you can very quickly run into collisions without namespaces.

If you are using an OO language, supporting interfaces and traits is superior to just supporting inheritance – it’s easier to compose an object of other objects than it is to try and extend an object about which you know very little.

The first thing that comes to my mind is a good module system. To support re-use, the module system should:

  • be lightweight – a heavyweight module system will discourage use, which discourages re-use.
  • support versioning – if a client can ask for a specific version of another module, that will make it easier to independently evolve the different modules without breaking clients.
  • control namespace pollution – you don’t want the module’s internally-defined symbols to compete with those of your client code, so some for of controlled symbol export / import, or namespace definition, will be necessary.

A good module system is important. Go’s interfaces (Java’s are similar, I hear) are pretty great.

I would add objects and inheritance. This will allow code to be reused by a child type.

3

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật