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
-1
votes
1 answer

iPhone reusable cell does not show the changed data while scrolling

I have a table view. I have created a method that takes all the data it needs with a cell and returns the updated cell. In that method I have: my cell for row goes like this static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell =…
Panos
  • 7,227
  • 13
  • 60
  • 95
-1
votes
1 answer

How can I Hide XML Fields And Reuse that file for Another Activity?

I want hide some fields in existed XML and use that XML as Input for Another Activity Thanks in Advance.....
Venkat
  • 343
  • 1
  • 7
  • 17
-2
votes
1 answer

What is the correct way to reuse code in any team-based (work) project?

So while I was working, a colleague of mine (code-)reviewed my code (shown below). The code is edited a little bit so it doesn't show what it's about. //Types is a static class with static strings (because enums cant be strings) //id can be the id…
Codr
  • 1
  • 3
-2
votes
1 answer

Where to download Pylons reusable apps

I've learnt some basic in Django.. and there is lots of Django reusable apps available for use. But how about Pylons? Where to download Pylons reusable apps?
Captain
  • 4,797
  • 4
  • 16
  • 6
-2
votes
1 answer

Does it make sense that every HTML element has an id and/or a class attribute specified?

Is there a good practice or advice/requirement that every HTML element has an id or/and class specified (Including elements that wouldn't be accessed from JavaScript, for example)? I would say that it is not necessary for these attributes to be…
OpalApps
  • 149
  • 13
-2
votes
1 answer

Code Reuse ability VS program efficiency

I'm new to programming, and In very many cases, i find myself torn whether i should copy paste code to make the program run faster, or gather methods by forcing the program to go through additional loops. I'll give you an example a bit like my…
J. Doe
  • 55
  • 6
-2
votes
2 answers

UIbutton currentTitle in cell reused Swift

Currently i have an uitableview with a custom cell. It contains an uilabel and uibutton - data source for which is fetched from two separate arrays. The uibutton function is to append the corresponding array with lines for the uilabel and insert…
David Robertson
  • 1,561
  • 4
  • 19
  • 41
-3
votes
1 answer

Functions in Jquery

I have got many dropdowns in my site and i want to make a reusable function with jquery so i can save a lot of code just by a single function. Can any one help me out in this regard... For an example
Gaurav Mehra
  • 141
  • 6
-3
votes
2 answers

How can I make this code into a reuseble function by implementing DRY principle?

I'm trying to apply my code in one simple function with parameters and make it reusable due to the DRY principle. As you can see I use pretty the same code in both of my addEventListener Function. Here is the code that I want to make reusable in my…
Amiu
  • 21
  • 7
-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

How to create reusable code?

I have many instances that look like the code below. How can I abstract them and make them reusable? #json_generator() is a function that yields paginated json #Foo and Bar are sqlalchemy models def fetch_foo_data(): URL = BASE_URL +…
drum
  • 5,416
  • 7
  • 57
  • 91
-3
votes
1 answer

C++ assignment help on creating codes for reusability?

I've been having trouble doing this assignment. I'm just having a hard time understanding and I am not entirely sure what to do. I've researched and watched videos and havent been able to find the right, specific information. Its a bunch of…
Moe
  • 21
  • 1
  • 3
-4
votes
1 answer

Create similar iOS apps reusing almost everything (with Xcode)

I want to make multiple apps which share the same structure and code, but have different images, fonts, names and urls. I would like a simple way to make this apps without replicating the whole project, so that when I find a bug I'll have to…
David P
  • 1,023
  • 10
  • 17
-4
votes
2 answers

Libraries for Material Design

Where can I get list of libraries/resources which help for incorporating Material Design in pre-lollipop devices? A link for a single library you are familiar with could help. I am familiar with the…
makata
  • 2,188
  • 2
  • 28
  • 23
1 2 3
64
65