Questions tagged [code-reuse]

The use of existing software, or software knowledge, to build new software

875 questions
-2
votes
1 answer

How to reuse Activity content in another one?

I haven't found a way to have it so an activity exists and the activity would load into another activity. The reason I want to do this is I am attempting to have it so an activity can be loaded from an external file(if this is possible). Is there a…
user3864563
  • 365
  • 1
  • 7
  • 22
-3
votes
1 answer

Reuse Codes In Laravel

I've some if() { } else { } condition, which is used in several times. I want to reuse them rather typing them over and over again. here is my controller source code: MyController.php
Delowar Hossain
  • 375
  • 1
  • 3
  • 19
-3
votes
1 answer

Using a class in two projects

I have a class ProductKeyLib that is part of project MyProgram-Web, which itself is a part of solution MyProgram. As of now, this lib only checks whether the key is valid, but does not generate one. The interface for key generation will be in…
Alexander
  • 19,906
  • 19
  • 75
  • 162
-4
votes
2 answers

How to include the same JPanel on every Swing Page

How to include a standard panel of buttons (like on top of every page 'Print', 'New' etc) on every Java Swing page using Java?
-5
votes
1 answer

Reuse existing Python project in another project

I have two Python projects, A and B. A was developed before B, and it has its own main function. Then B was developed, and I'd like to call project A from B, that is, A is a part of B. May I know how can I archive my goal? Many thanks.
ChangeMyName
  • 7,018
  • 14
  • 56
  • 93
1 2 3
58
59