Questions tagged [robustness]

Robustness is the ability of a system to continue to run after it detects an error (Steve McConnell, "Code Complete").

Robustness is the ability of a system to continue to run after it detects an error.
/Steve McConnell, "Code Complete"/

As per wikipedia:

In computer science, robustness is the ability of a computer system to cope with errors during execution or the ability of an algorithm to continue to operate despite abnormalities in input, calculations, etc.

The opposite of robust code is fragile code; an example of fragile code would be having a class with all its member variables marked as public.


The benefits of having robust code are many, some of the most important ones are:
1. Easy to change. Robust code is easier to change because external factors don’t affect its behaviour.
2. Less bugs. The more robust the code is, the less combinations that cause a bug in the code.
3. Better integration. Robust code is predictable, so from an integrator point view, is always going to have the same behavior. 4. Consistency. Robust code works fine no matter who, when or how it gets called.
/Robustness, the forgotten code quality/

Several links by theme:
Examples for Robustness Requirements
10 characteristics of a robust application or service

134 questions
0
votes
1 answer

Handling User Error with Sets

I'm pretty much done with this code and it runs almost correctly other than the fact that I need the user to enter numbers within the boundaries of the universe. I've made sure the user can't enter anything but an integer. But I'm not sure how to go…
a24
  • 7
  • 1
  • 6
0
votes
4 answers

Robust Code framework?

I hate writing code that makes my software more solid. This is something the framework should have done! So, is anybody aware of a code "enhancing" utility that solidifies the code? If I had to create something like this myself, it would work as…
Avi
  • 15,696
  • 9
  • 39
  • 54
0
votes
1 answer

Set up to simulate failures for a dozen of computers in a WAN

For testing reasons I need to simulate a set up with a few up to a dozen machines that can fail anytime in a LAN (or WAN) that may fail too. How would you do it using free/open software? Is there any virtualization solution that allows to…
Qualsiasi
  • 51
  • 2
  • 6
0
votes
1 answer

Robustness in my XML-RPC plugin

I have written a jQuery plugin that makes communicating with XML-RPC servers from client side JavaScript much easier than it would otherwise be. I have used it in an application of my own where is successfully communicates with an rtorrent client. I…
Tim Heap
  • 1,671
  • 12
  • 11
0
votes
1 answer

How can I increase the robustness of my Selenium scripts?

I'm running approx 30 scripted test cases (each test case is a script) in series and there are often failures that include: cannot identify specified element, element not present. I've already added a lot of different methods to wait for an element…
qwer1234
  • 407
  • 2
  • 7
  • 15
0
votes
1 answer

How do I disable a feature in my web application if a test breaks?

I have to write a scraper for class, and I wanted to put tests on it to make sure it actually works. In the event, the website I am scraping makes changes to their website, I want our website to fail and disable the feature until we update the…
Strawberry
  • 66,024
  • 56
  • 149
  • 197
0
votes
2 answers

Storing array list in memory on android app (in a robust manner)

I'm working on a android app (to work with old androids as well as new, so no 3.0 tricks), and I'd like to store submit data in an arrayList in my app, that can be shared across views. The data is first stored instantiated into an object, then it…
Jono
  • 3,393
  • 6
  • 33
  • 48
0
votes
2 answers

How to verify external resources are available

How do you verify the state of the environment for a system without drastically increasing the scope of the system? I'm working on a system which talks to some remote servers. For example, it connects to a server and grabs logs of MyApp that ran on…
Ryan
  • 15,016
  • 6
  • 48
  • 50
0
votes
4 answers

How do I make this regex more general, sometimes it works and sometimes it doesn't

I have the following regex that I am using in a java application. Sometimes it works correctly and sometimes it doesn't. (.*) Sometimes I will have whitespace before/after it, sometimes there…
Ankur
  • 50,282
  • 110
  • 242
  • 312
-1
votes
1 answer

Does using a "Try Catch" when adding new code to delivered code create a safety margin?

This is more of a conceptual question but specifically, I am programming (currently) into a javascript file that contains a massive amount of delivered code (IE the vendor supports their delivered code and not our customizations). Because it is…
Matthew Peters
  • 1,861
  • 2
  • 14
  • 16
-2
votes
1 answer

How to find mean absolute deviation (MAD) in r

I'm finding mean absolute deviation in r. when I run it, the r gives me the error that you should have numeric data. furthermore, when I convert the data into numeric, then it gives me the error that your x must be atomic. md <- mad(x, center =…
-3
votes
1 answer

What DB should i choose?

I have been making desktop applications for a while now but faced some issues with my current database (SQL Server 2008) and decided to switch to a new database. The problem i faced with SQL Server 2008 were:- takes about 30 min to install (Express…
-4
votes
1 answer

How can I make that robustness work using user input?

I have tried to do a robust code on java but it doesn't seem to work. What I am looking for is for a user to enter an input, the program will check the input if it is not a required input, then the user will be given an option to reenter the…
-5
votes
1 answer

What does this error mean "order(vertex_attr(g, measure), decreasing = TRUE) : argument 1 is not a vector" in R?

I am trying to calculate robustness, a graph theory measure using R (braingraph package). Robustness = robustness(my_networkgraph, type = c("vertex"), measure = ("btwn.cent")) I get the following error, when I use the above robustness function:…
Priya
  • 65
  • 7
1 2 3
8
9