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

JQuery $(document).ready() problems when external ad-script is slow to load

I have a site that contains several ad zones. Some are javascript includes, others are iframe includes. The javascript includes are placed right before our closing tag, and the iframes are scattered around the page. Today, I was developing locally…
Gattster
  • 4,613
  • 5
  • 27
  • 39
1
vote
1 answer

How to write robust test with puppeteer and jest?

This is the test I wrote and my problem is, that I tried to build it as robust as possible and still, it sometimes works and sometimes it fails for reasons like shown below. Maybe I am missing something I'd appreciate it if one of you could help me…
AMMA
  • 265
  • 2
  • 8
1
vote
1 answer

Failed to generate adversarial examples using trained NSGA-Net PyTorch models

I have used NSGA-Net neural architecture search to generate and train several architectures. I am trying to generate PGD adversarial examples using my trained PyTorch models. I tried using both Adversarial Robustness Toolbox 1.3 (ART) and…
1
vote
1 answer

How do I pull robust standard errors from logit in R?

I have conducted a logit regression in R using the code below (top). Now I am trying to obtain the robust standard errors for the exact same regression. I am using the code below (bottom) for that as well, but the significance varies considerably…
1
vote
3 answers

How to parse JSON and throw if loss of fidelity?

Some values in JSON cannot be represented in JavaScript with full fidelity. For example: 9999999999999999999999999 I am working on a protocol/application that requires interoperability and we use JSON as our data interchange format. In my…
William Entriken
  • 37,208
  • 23
  • 149
  • 195
1
vote
3 answers

How robust is make?

How robust is the make utility? For example, while "making" something, if the computer loses power, and make is resumed after the next computer start, is the output guaranteed to be correct (even if the file system is not robust)? Are there any…
apoorv020
  • 5,420
  • 11
  • 40
  • 63
1
vote
0 answers

Curve fitting Matlab performing poorly

I am currently trying to use the robust version of a smoothing spline fit as suggested in Matlabs robust fit page. But when I plot the results(see below) it doesn't seem like the line fits the trend. I am using smoothing splines to fit with a…
1
vote
4 answers

Why is Android app re-initializing when left running for long hours, even when the app is not doing anything?

I just starting learning Android app development and I'm doing an app for embedded devices. My app needs to keep running for long hours but it fails to do so. I cleaned up my code of possible memory leaks but still the issue occurs. So I tried…
Joey
  • 11
  • 3
1
vote
4 answers

Check if NFS share is up in PHP

I am working on a system that will store uploaded files. The metadata will go into a locally-accessible database, but the files themselves are going to be stored on a remote box via NFS so that PHP can interact with the server as if it was a…
GordonM
  • 31,179
  • 15
  • 87
  • 129
1
vote
2 answers

What is the most robust way to get the width/height of the browser window using JavaScript?

I am curently using the follownig conditions, but they aren't working across browsers or at all: if (typeof (window.innerHeight) == 'number') { //Non-IE: //Perform operation using window.innerWidth/Height } else if (document.documentElement…
Giffyguy
  • 20,378
  • 34
  • 97
  • 168
1
vote
0 answers

How should I design a robust listener object?

Suppose you have to classes A & B whose objects have unrelated lifetimes: class A { public: IStateChanger& GetStateChanger() { return mStateChanger; } private: StateChanger mStateChanger; }; class B { public: void…
badstoms
  • 227
  • 1
  • 7
1
vote
3 answers

Ubiquitous computing and magnetic interference

Imagine the radio of a car, does the electro magnetic fields through which the car goes through, have interference in the processing? It's easy to understand that a strong field can corrupt data. But what about the data under processment? Can it…
fmsf
  • 36,317
  • 49
  • 147
  • 195
1
vote
0 answers

ZXing and decoding warped codes

I am looking into the ZXing library source code. I would like as robust as possible scanning of codes that can be printed on bent surface. From my understanding, ZXing locates the three corners of the QR code, then guesses the position of the…
Roman Zenka
  • 3,514
  • 3
  • 31
  • 36
1
vote
1 answer

Executing separate, isolated operations with Hibernate, sharing objects between operations

I'm writing an application in Java, with Hibernate, and I'm trying to do the following: Query a list of objects from the database, then for each object: Remove it from the database. Perform an operation on it. If the operation fails, modify the…
Jason C
  • 38,729
  • 14
  • 126
  • 182
1
vote
1 answer

Powerful and fast hash function in python (Search algorithm)

Python has a default searching function which is: x in [x,y,z,] Where x,y,z can be any integers or characters, but this is a default sequential search and I want to know how I can use a manual hashing search in python.
1 2 3
8 9