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
13
votes
5 answers

Allow restarting Java application with JMX monitoring enabled immediately

I have a Java application with JMX monitoring enabled like this: -Dcom.sun.management.jmxremote.port=9999 \ // some other properties omitted But when I try to restart the application, sometime I got an error says the JMX port number is already in…
George
  • 4,029
  • 2
  • 22
  • 26
12
votes
3 answers

MVC 3, reuse of partial views and jquery, without conflicting the DOM

As i am still new to MVC 3 and jquery, i would like to know a best practice solution to how the following can be solved: I have a view, where I use jquery ajax to fetch and display a partial view with some product details for product A. The loaded…
Nima
  • 937
  • 1
  • 13
  • 20
12
votes
3 answers

Creating Reusable Django Apps?

I am somewhat of a Django beginner and have been trying to decouple my applications as much as possible and build it in as small re-usable pieces as possible. Trying to follow James Bennett's strategy of building re-usable apps. With that in mind, I…
Bruce Lee
  • 143
  • 1
  • 1
  • 5
12
votes
1 answer

Reusing SSL Sessions in Android with HttpClient

I'm having a lot of difficulty resuming an SSL session on Android using HttpClient. I'm polling a server every 90 seconds (it's for industrial devices with one function only), so I need to resume the session or else data use skyrockets from a few kB…
user705142
  • 461
  • 5
  • 18
11
votes
1 answer

TableView Cell reuse and unwanted checkmarks - this is killing me

Apple's iOS TableView and cell reuse is killing me. I searched and searched and studied, but can't find good docs or good answers. The problem is that when the TableView reuses cells things like Checkmarks (cell accessory) set on a selected Cell…
nick
  • 1,147
  • 1
  • 11
  • 12
11
votes
2 answers

Duplicate symbol: Include static lib A in static lib B, also include lib A and B in XCode Project

I've been trying to build up a set of reusable libraries for app development, but I'm starting to run into a problem. One of my static libs is a set of general use methods (categories on Objective-C Foundation classes to improve their usability)…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
11
votes
9 answers

How do I create and maintain a code reuse library?

I am trying to setup a repository of reusable code. I was thinking about having each reusable code module have a certain “Maturity Level” rating. The rating would be defined as the level at which a reusable code lies within a certain set of…
SwDevMan81
  • 48,814
  • 22
  • 151
  • 184
10
votes
3 answers

How to include a reusable widget in Symfony (Twig)?

So, I'm still fairly new to Symfony and Twig. I was wondering how to best include/create a snippet of reusable code in the templates. Say, for example, that you have a sidebar that you want to show on every page. {% extends…
Mvin
  • 385
  • 4
  • 12
10
votes
3 answers

Why does reusing arrays increase performance so significantly in c#?

In my code, I perform a large number of tasks, each requiring a large array of memory to temporarily store data. I have about 500 tasks. At the beginning of each task, I allocate memory for an array : double[] tempDoubleArray = new double[M]; M…
Willem
  • 211
  • 1
  • 3
  • 5
10
votes
1 answer

using iOS static library common view controller in storyboard?

We are in the process of creating a set of common components and common views that are reusable across several applications we have. In these libraries we have the .xib files and view controllers. We want to be able to use these in storyboards for…
jlgaustin
  • 253
  • 2
  • 10
9
votes
4 answers

Should I extend ArrayList to add attributes that isn't null?

I would like to add a collection of objects to an arrayList ,only if the particular attribute is not null. I am thinking of extending the ArrayList and implementing the check inside the child class. One alternate way is to check for the the…
Sudhakar
  • 4,823
  • 2
  • 35
  • 42
9
votes
2 answers

How to create an ASP.NET MVC 3 control/component that can be reused by other applications

I am required to deliver a component, inlcuding business logic and UI, to be used on a ASP.NET MVC 3 web site that is being developed by other company. I know my way around ASP.NET WebForms server controls and how to package and distribute them to…
famousgarkin
  • 13,687
  • 5
  • 58
  • 74
9
votes
1 answer

Reusing a JPanel in NetBeans GUI Designer

This is in NetBeans 6.5, Java 6. I have the following hierarchy in the NetBeans GUI Designer: JFrame JTabbedPane JPanel X <...> JPanel JButton JPanel Y <...> JButton Question: JPanel Y is identical to…
Andrew Coleson
  • 10,100
  • 8
  • 32
  • 30
9
votes
6 answers

how to Create and Use SnackBar for ReUse(Globally) in Flutter

i want create SnackBar for reusable(globally) i already created but its only for 1 page , i don't know how to create reusable. below code: import 'package:flutter/material.dart'; class SnackBarMain extends StatefulWidget { @override …
MohammedAli
  • 2,361
  • 2
  • 19
  • 36
9
votes
3 answers

Doxygen copydoc tag to reuse code examples

I want to reuse a block of example code using the \copydoc tag. To explain the problem. Let's say I have two documented functions: /** Aquires resource. */ Resource* AquireResource( int id ); /** Releases resource.*/ void ReleaseResource( Resource*…
sharkin
  • 12,162
  • 24
  • 86
  • 122
1 2
3
64 65