Questions tagged [reusability]

Reusability is the likelihood and potential for a piece of source code to be reused in other projects

In computer science and software engineering, reusability is the likelihood a segment of source code that can be used again to add new functionalities with slight or no modification. Reusable modules and classes reduce implementation time, increase the likelihood that prior testing and use has eliminated bugs and localizes code modifications when a change in implementation is required.

See: http://en.wikipedia.org/wiki/Reusability

974 questions
0
votes
4 answers

disabling re-use of deleted records in Mysql

I have a web application where I interact with a MySql database. When I delete a record, it seems that its slot is reused the next time I create a new record. Since each record has a sequential primary key, the next record will have a new key say 5,…
denchr
  • 4,142
  • 13
  • 48
  • 51
0
votes
1 answer

Connection Reuse with Curl, Apache and mod_wsgi

I am deploying a mod_wsgi application on top of Apache, and have a client program that uses Curl. On the CURL api on the user side, I have it attempt to reuse connection, but looking at the connections from wireshark, I see that for every HTTP…
The Unknown
  • 19,224
  • 29
  • 77
  • 93
0
votes
1 answer

Continue using app instance started at boot time

I have an app that automatically starts a few seconds delayed after boot. BTW: This is nothing evil! The user must enable it by himself! When I now tap on the app's icon I would like to have the same instance being opened that was already started at…
Bernd
  • 675
  • 2
  • 8
  • 30
0
votes
1 answer

Reusable component in SpringMVC

I'm coming to SpringMVC from the world of PHP, precisely I was working with Symfony for several years. For your information, in Symfony, there are plugins and bundles that are created by other developers so that you could use them in your project.…
passkey1510
  • 142
  • 1
  • 7
0
votes
2 answers

Sharing DataContracts between java web services (or reuse types) for WCF Client

How to provide common data contracts in the multiple java web services (hosted e.g. on the jboss), so they will be generates one time by adding a ServiceReference in the VS2010 and reused in a WCF client. For the WCF services to wcf client the…
Alexander Zwitbaum
  • 4,776
  • 4
  • 48
  • 55
0
votes
2 answers

SQL Server 2008 in C#: Connections and Command Objects

There's a lot of non-detailed questions on this one, so here goes. What is the best practice for connection handling in C# with SQL Server 2008? We have an assembly (which in our case is used by a WCF Service) that makes calls to an SQL Server. In…
user1086498
0
votes
1 answer

How can i Reuse one screen for Multiple Activities?

I have one XML with 20 fields in my case based on type we want show the form but every type need not all fields how can i hide the fields and show the corresponding fields for a particular type .I want reuse the same screen for All types but we…
Venkat
  • 343
  • 1
  • 7
  • 17
-1
votes
1 answer

How can I make this function reusable " foreach loop" in selenium c#?

foreach (Residency residency in test.Residencies) { if (residency.TestGuid == testGuid) { if (requiredResidency == null) requiredResidency = residency; else if…
-1
votes
1 answer

Why is my generic map function returning undefined?

I have an array of car objects: [ { id: 1, make: "Honda", model: "Civic", style: "Coupe" }, { id: 2, make: "Toyota", model: "Corolla", style: "Sedan" }, { id: 3, make: "Subaru", model:…
Mitchell
  • 111
  • 15
-1
votes
1 answer

How to Make a Reusable Function that Removes Duplicates

I am trying to make a function as re-usable as possible. I have a JSON file containing "products" for now. export let productList = [ { id: 0, productName: "Men's Merrel Hiking Boots", price: 65.00, brand:…
Mitchell
  • 111
  • 15
-1
votes
1 answer

ReUse of class component in react

Im new to react and in the application im working im using a class component Summary class SummaryList extends React.Component { //code for the summarylist component here } class Summary extends React.Component { render() { …
sruthi_ys
  • 15
  • 5
-1
votes
1 answer

Reactjs Component Reusability

I am working on a project in react. Where most of the data on different tabs have a table. So I design the "TableItems" component and passed the data according to the component. Right now based on params I toggle the table data. Is this the correct…
Hamid Shah
  • 31
  • 6
-1
votes
1 answer

Is there a synthesizable way in verilog to bind IP internal pins to top

I have a IP subsys in my SoC project, there are many sram macro inside it. Based on the sram library, there are some extra pins for sram speed config. I need connect these pins to top of the IP. Is there a synthesizable way to do this in verilog,…
jacobi
  • 13
  • 3
-1
votes
1 answer

Reuse function with return type always equal to the struct that is calling that function in golang

I'm trying to do in Golang something that would be easily done in Java with Type. For example: public class MyClass> { public Type myMethod() { // Do something return (Type) this; } } public class…
Ocimar
  • 53
  • 1
  • 6
-1
votes
1 answer

PDO How to make a reusable code structure for return/echo commands?

I'm new for PDO so I would be glad if you help. For example I have this table: | id | text | | ---- | -------------- | | 1 | Hello. | | 2 | Welcome to my | | 3 | website. | I use PDO to…