The use of existing software, or software knowledge, to build new software
Questions tagged [code-reuse]
875 questions
0
votes
1 answer
Reusable fieldsets PHP
I need to have about 60 different fieldsets within a form that all contain the same elements. The only difference is the ID being called by my query. The ID will be populating data for me from mysql.
Is there a way to do this more efficiently other…

acb_tld
- 75
- 1
- 5
0
votes
3 answers
How to reuse HTML page while using different jQuery/PHP code
A few days ago I started with web development and the idea is to write a guestbook with a login. A user with a valid user account can login/logout, create new entries and edit his own entries. He can also change his own password and create new…

swaechter
- 1,357
- 3
- 22
- 46
0
votes
1 answer
Code reuse in android
I have 2 layouts in named first_activity and second_activity...
the first_activity has a single button button1 on which i have applied onclick listener to make a simple toast and i have used this first_activity in the FirstActivity...
the…
0
votes
1 answer
Does haml give me the ability to reuse code in different haml files?
I looked at the documentation and couldn't find anything that suggested this is possible. Here's my use case: I'm making a game and I've got 3 html files that are 90% the same. One is used for the actual game, one is for manual testing, and one is…

Daniel Kaplan
- 62,768
- 50
- 234
- 356
0
votes
1 answer
_config.yml equivalent in Django
I recently started moving from Jekyll (rails-based framework) to Django and I am just starting.
I am trying to figure out what the equivalent to _config.yml (if there is any) would be in django. For those with no background in Jekyll, _config.yml…

iamricard
- 483
- 7
- 16
0
votes
2 answers
How to reuse a python test case class
I have what I hope to be a pretty general question. I am testing XML files and validating specific tags. I didn't want to re-write the code for each field so I am trying to reuse the tag checking code. However, when I try to do so
Here is the…

user2643864
- 641
- 3
- 11
- 24
0
votes
8 answers
Cross language development problem
I'm working on a project that involves a database (My SQL), website (PHP) and a custom high performance server application (C++). The C++ application (and its accompanying client application) make up the main bulk of the project, with the database…

Fire Lancer
- 29,364
- 31
- 116
- 182
0
votes
1 answer
Python: Inherit/reuse specific methods from classes
I want a python class that is composed partly of specific methods from other classes which operates on self in the "composed class". How do I do that?
E.g. if I want to include specific methods from classA and classB in my new class "theClass":
…

Jonas Lindeløv
- 5,442
- 6
- 31
- 54
0
votes
2 answers
WPF use Datagrid shared resources
I have in all my datagrids some styles to be applied for some types but specifically inside the datagrid so it looks like this: