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

nesting openmdao "assemblies"/drivers - working from a 0.13 analogy, is this possible to implement in 1.X?

I am using NREL's DAKOTA_driver openmdao plugin for parallelized Monte Carlo sampling of a model. In 0.X, I was able to nest assemblies, allowing an outer optimization driver to direct the DAKOTA_driver sampling evaluations. Is it possible for me to…
kilojoules
  • 9,768
  • 18
  • 77
  • 149
0
votes
1 answer

Jenkins handle node disruptions

How can I get Jenkins to handle node connection failures? Right now, if a slave drops the connection to the master, all the builds running on that node fail. Ideally, these would just be rescheduled. Has someone already addressed this issue? Do I…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
0
votes
2 answers

C++ most robust way to copy a file

Okay, so I know that disk writing errors are very rare, so please just look past that because the data I am working with is very incredibly important (like SSIDs kind of important). So, I want to copy a file in the absolute most robust way using the…
Jack G
  • 4,553
  • 2
  • 41
  • 50
0
votes
1 answer

Fail early vs. robust methods

I'm constantly (since years) wondering the most senseful way to implement the following (it's kind of paradoxic for me): Imagine a function: DoSomethingWith(value) { if (value == null) { // Robust: Check parameter(s) first throw new…
0
votes
3 answers

VBA optimization robust code

So I'm completely new to VBA. I have a java-fetish so I'm not new to programming, however manipulating office documents just seemed easier with VBA. Anyway, on topic: I'm currently automating things in the company (This example is creating a…
0
votes
0 answers

Is it possible that keep SQLite in normal locking mode and wal journal mode without mmap?

I am using SQLite on iOS developing. Now I need the better performance of multithread-reading-and-writing and the robust of WAL journal mode without mmap. As I know, WAL journal mode without mmap requires EXCLUSIVE locking mode, which may…
Ringo_D
  • 784
  • 5
  • 18
0
votes
0 answers

FTP vs SFTP, this time- stability

I have read a great post regarding the FTP/SFTP speeds: Why when I transfer a file through SFTP, it takes longer than FTP? But did anyone check, or have a proof or documents,tests showing which of these two is more 'stable' when transferring files…
meso_2600
  • 1,940
  • 5
  • 25
  • 50
0
votes
1 answer

Making Matlab Code more robust by taking out some for loops (2D Discrete Fourier Transform)

Here is my code for the 2D Discrete Fourier transform. I know, it is a bit brute force-ish, but I did not have much programming experience before taking Mathematical Physics this semester. I am wondering why my program is so slow, and if there are…
0
votes
2 answers

How to read impure text in Python?

Python is very picky about its text codecs. Unfortunately, anything can and will happen in text, foreign words and line noise being prime examples. When that happens, I can't have my production system display an error and stop. What's a good…
theTrickster
  • 99
  • 1
  • 8
0
votes
1 answer

How do I name/save a model in R after adding robust standard errors?

How do I name a model after correcting for heteroskedasticity in R? Basically, how do I save a model so that it includes the robust standard errors? I am using the plm package if that makes a difference. So let's say I have these two models…
0
votes
1 answer

When and how might the operating system store a file under a different name than I gave it?

I found this statement under another SO question concerning Unicode and I'd like to ask for further elaboration of this rather surprising fact. Code that believes once you successfully create a file by a given name, that when you run ls or readdir…
user7610
  • 25,267
  • 15
  • 124
  • 150
0
votes
2 answers

Robust LINQ to XML query for sibling key-value pairs

I am just learning about LINQ to XML in all its glory and frailty, trying to hack it to do what I want to do: Given an XML file like this - FIRST_WANTED_KEY
awshepard
  • 2,627
  • 1
  • 19
  • 24
0
votes
1 answer

How will jbpm handle concurrent workflows in memory

I wanted to use jbpm as a library in my web service. Wanted to know the implementation details of how jbpm handles concurrent workflows in memory. I want details with respect to scale , robustness thanks in advance.
Karthik Avjs
  • 77
  • 2
  • 7
0
votes
0 answers

Diagnozing opaque errors and stabilizing / robustifying a Simulation in R

Apologies, since this question is somewhat vague and general, and is certainly not reproducible since the code is too complex. However, I suspect it could be answered by equally vague strategies of approaching these issues that are instructive and…
Ixxie
  • 1,393
  • 1
  • 9
  • 17
0
votes
2 answers

returning dictionary of generator the most efficient way

I have written this function that returns a dictionary, I think either by itertools or by just using yeild i can return dictionary but I have never done that in case of a dictionary def configDb(): """ Reads git global config file …
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
1 2 3
8
9