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
2
votes
4 answers

binary file formats: need for error correction?

I need to serialize some data in a binary format for efficiency (datalog where 10-100MB files are typical), and I'm working out the formatting details. I'm wondering if realistically I need to worry about file corruption / error correction / etc.…
Jason S
  • 184,598
  • 164
  • 608
  • 970
2
votes
1 answer

How to correctly handle errors (string OR objects) in express.js using promises

I'm not at my first express.js application, although I have still to figure out the most robust way to handle errors. Since io.js is reality from a couple months I'm using native Promises to help myself with asyncronicity, the following code…
Valerio
  • 2,390
  • 3
  • 24
  • 34
2
votes
1 answer

Measuring reliability of tree/dendrogram (Traminer)

I did an analysis using TraMineR in order to measure the similarity among sequences of spatial use (for example Rural(R) vs Urban (U): sequence example -> RRRRRUUURRUUU) A requirement in my analysis is that states are compared at the same moment in…
jedgroev
  • 115
  • 5
2
votes
3 answers

How can I find out which version of emacs introduced a function?

I want to write a .emacs that uses as much of the mainline emacs functionality as possible, falling back gracefully when run under previous versions. I've found through trial and error some functions that didn't exist, for example, in emacs 22 but…
Chris R
  • 17,546
  • 23
  • 105
  • 172
2
votes
1 answer

How to handle hash collisions?

I am developing a game where every thing in the game world is represented by an global unique identifier. Those ids each measure 64 bits and are generated by hashing together the time of creation, the machines network address and a random number.…
danijar
  • 32,406
  • 45
  • 166
  • 297
2
votes
1 answer

Should we always eliminate calculated attributes, even when it is a critical and complicated calculation?

The "third normal form" of database design asks you to remove functional dependencies. It seeks to eliminate redundancy, removing from a table any attributes (fields) that can be calculated from the other fields. For instance, when you make a…
2
votes
2 answers

Are 'file data' and 'file size' committed to disk together or separately

Consider this example: FILE* stream = fopen("my_file", "w"); fputs("hello", stream); What can happen if power is lost during the execution of fputs()? Afterwards, could I ever find "my_file" with non-zero size but with the first byte not being…
Kristian Spangsege
  • 2,903
  • 1
  • 20
  • 43
2
votes
3 answers

Still need checksum in application protocol when tcp/ip already has it?

I am designing an application protocol, and i am wondering if i still need include checksum in the protocol since tcp/ip already has checksum. what's your opinion?
Benny
  • 8,547
  • 9
  • 60
  • 93
2
votes
4 answers

Strategies for encapsulating the differences between SQL platforms?

I'm working on accelerating some slow operations here, and one case is a tree of parent-child relations in a table. Currently the system is running on SQLServer, and after some research I found that with common table expressions multiple queries can…
Durandal
  • 19,919
  • 4
  • 36
  • 70
1
vote
3 answers

Closing System.Net.Sockets.TcpClient kills the connection for other TCPClients at the same IP Address

Just to be clear, all of the TCPClients I'm referring to here are not instances of my own class, they are all instances of System.Net.Sockets.TcpClient from Mono's implementation of .NET 4.0. I have a server that is listening for client connections,…
Excrubulent
  • 467
  • 7
  • 15
1
vote
0 answers

How to understand the operation causes non-robust results in CGAL?

For the performance concerns I am using exact predicates inexact constructions to compute and compare my distance-based operations. However, if the result causes inaccuracy, I want to repeat the same operations by using exact predicates exact…
Merve A
  • 31
  • 4
1
vote
1 answer

CGAL robust distance comparison with predicates

I want to compare the distances between some geometrical objects in a robust way. For instance, I want to measure perpendicular distance between a point and a plane. I want to do this measurement to many planes from the same point. In the end, I…
1
vote
1 answer

Robustness diagram and design class diagram

Currently, I'm creating a design class diagram from the domain class diagram. However, while searching for the examples I've found out Robustness diagram. They look similarly as both of them have entity, control and boundary classes. Are they the…
qrttttt
  • 93
  • 6
1
vote
1 answer

Why can't we solve the consensus problem by just enforcing a new leader?

I am going through this lecture series by Martin Kleppman. In this video at around 1:25, he says you can manually configure the distributed nodes to chose a leader. If that's the case can't we just automate the process by having a different process…
1
vote
0 answers

Add robustness to model with statsmodel

I am running a logistic regression with statsmodel and I am trying to add robustness to my model, similar to STATA's robust command, and I can't seem to find it on their documentation. Note that I am not looking for the Robust Linear Regression with…
Arthur Langlois
  • 137
  • 1
  • 9
1 2 3
8 9