Skip to main content

Questions tagged [fail-fast]

2 votes
8 answers
1k views

I am creating a CSV consumer (with Java). There is one field / column that should contain one of the values "Rename" or "Move". I implemented this by allowing mixed case of letters,...
NimChimpsky's user avatar
  • 4,670
0 votes
1 answer
158 views

I'm working on a library of C++ wrappers/bindings, for another, C-ish, API. The C'ish API has a "launch" function, which, among other things, takes a launch configuration structure (well, ...
einpoklum's user avatar
  • 2,808
5 votes
7 answers
982 views

In any programming task, my preference is to write fail-fast code. That doesn't seem to be too controversial. However, I've also seen many developers say that constructors should do as little as ...
Alan Shearer's user avatar
32 votes
7 answers
13k views

What is best practice when a unhandled exceptions occurs in a desktop application? I was thinking about to show a message to the user, so that he can contact support. I would recommend to the user to ...
Jonas Benz's user avatar
4 votes
1 answer
260 views

We have a piece of code that looks something like that: std::vector<int> computeGlobalResult() { auto globalResult = std::vector<int>{}; while (myCollection.size() < 100) ...
Renaud M.'s user avatar
  • 382
1 vote
3 answers
492 views

Someone told me that speed is most important for them, so they deploy whatever (to production I assume), fix, redeploy/continuous release and so on. I can't remember exactly, but my takeaway ...
user127379's user avatar
0 votes
2 answers
846 views

I know you can configure NServiceBus to automatically retry to send messages (FLR: First Level Retries) and wait before retrying again (SLR: Second Level Retries), but, using the default configuration ...
Machado's user avatar
  • 4,140