Skip to main content

Questions tagged [errors]

Filter by
Sorted by
Tagged with
-5 votes
1 answer
109 views

Web browsers are imperfect machines. So let's say you came across an error. You might search your code to find the problem, and then failing that, you turn to online research that indicates the error ...
moonman239's user avatar
  • 2,063
4 votes
3 answers
5k views

C#'s primary error handling mechanism are exceptions and try pattern. We don't have access to discriminated unions yet like in case of F# and Rust Option<T> and Result<T, E> types. The ...
Konrad's user avatar
  • 1,569
55 votes
11 answers
11k views

Let me explain what I mean. I have made a complex, highly polished over years PHP framework/library for my own use. I very aggressively log the smallest notice and immediately deal with it as soon as ...
user379490's user avatar
0 votes
2 answers
220 views

var file_extension = 'txt'; if (file_extension === 'txt') alert('plain text'); else if (file_extension === 'md') alert('markdown'); var file_extension = 'txt'; if (file_extension === 'txt') ...
user90726's user avatar
  • 205
4 votes
1 answer
262 views

Consider a poorly-designed interface in which there are two functions (say foo() and bar()) that can be called independently, but in order to get some expected behavior (or in order to keep the object ...
melfnt's user avatar
  • 151
4 votes
2 answers
182 views

I work as a developer on a few different APIs that make calls to each other. Let's take two and call them API-USER and API-BUSINESS. A user application makes calls to API-USER, which in turn makes ...
Rolan's user avatar
  • 273
4 votes
5 answers
284 views

I am writing a function that I would not like to get called given a certain context and am wondering how best to convey that to possible users of the function. Assume, for exemplification, I am ...
Ganea Dan Andrei's user avatar
4 votes
5 answers
1k views

I've been assigned to a code base responsible for millions of dollars of transactions, per quarter, and has been in use for over a decade. Sifting through the solution, I see doubles used everywhere ...
8protons's user avatar
  • 1,389
2 votes
2 answers
719 views

I'm about to implement Error codes for my company API, so, based on rfc7807 I will include a type which is an error type which is basically an error category, and inside those categories we have a ...
Ricardo's user avatar
  • 29
0 votes
1 answer
191 views

When a major data structure has been changed in an app, what is the best way to handle such kind of errors in the front-end side so that the app doesn’t break? For example, we have a list of users ...
catandmouse's user avatar
-4 votes
1 answer
419 views

(Probably my question is somehow similar to this, but I'm interested from the point of program engineers.) What are chances and under what circumstances, a computer program could ever made a mistake ...
T.Todua's user avatar
  • 165
1 vote
2 answers
209 views

I'm developing JS and PHP scripts and selling them on various marketplaces. But I need to track/monitor errors on my scripts. Usually, I use Sentry for own web apps, but I'm not sure if it's okay to ...
Eray's user avatar
  • 336
169 votes
9 answers
30k views

I started a new job recently where I am working on a very large application (15M loc). In my previous job we had a similarly large application but (for better or for worse) we used OSGi, which meant ...
user788497's user avatar
  • 1,321
4 votes
0 answers
462 views

Is there a universally accepted classification of error handling strategies? What is a general term to refer to those strategies, which can be used while searching for books and articles that compare ...
michau's user avatar
  • 149
30 votes
6 answers
8k views

I was assigned to a new project recently. Well, an old project actually, written in classic ASP. Now a new version of the application is being written in the latest ASP.NET, but it's not expected to ...
Mr Lister's user avatar
  • 1,599
1 vote
4 answers
266 views

In the following link, the author states that We have already reasoned that ‘out’ is a static variable belonging to the class System. But now we can see that ‘out’ must be an instance of a class, ...
Jossie Calderon's user avatar
2 votes
2 answers
4k views

So, in the recent weeks I delved into C++ programming, and I programmed some things in SDL. Doing so, you always have to deal with a lot of (ugly) C++ code, which looks more like C than C++. One thing ...
hgiesel's user avatar
  • 831
50 votes
5 answers
12k views

I am trying to explain segmentation faults to someone, and I was thinking about the level 256 kill-screen in Pacman, and how it's triggered by integer overflow, and how similar the behavior is to the "...
Braden Best's user avatar
3 votes
2 answers
532 views

Some developers work on code hardening. (protecting against errors, you can build with a stack protector for example). However, if you're trying to redo a strange someone else reports, or find ...
ParityLentil's user avatar
-2 votes
1 answer
190 views

I'm new to programming with Delphi. I have the latest version. I'm trying to display my emails using POP3 but I have a problem. At one point I was wrong and did a loop with POP3.Retrieve() method ...
Lucas Amalfitani's user avatar
5 votes
4 answers
542 views

To put this in context, I have the following scenario. I am writing a Common Lisp program that works with strings and lists of characters. In a certain function foo, the value of a variable suff is a ...
Giorgio's user avatar
  • 19.8k
0 votes
2 answers
191 views

For comparison, for a runtime fatal error, it is often that the cause of the error is way before the error crashes a program. For a logic error, it doesn't crash a program. It happens when the state ...
Tim's user avatar
  • 5,565
3 votes
4 answers
257 views

Producing predictable output for each possible input is the responsibility of each module. For example (in C#): class Logger { public ITextWriter Writer { get; set; } private uint counter; ...
astef's user avatar
  • 338
6 votes
2 answers
10k views

We are designing an error-handling framework for a cryptographic library written in C. The approach we are taking is that relatively few errors are propagated back to the user since on most occasions ...
malenkiy_scot's user avatar
5 votes
3 answers
1k views

The question is how to cope with absence of variable declaration in Python, PHP, and the like. In most languages there is a way to let the compiler know whether I introduce a new variable or refer to ...
Alexander Gelbukh's user avatar
20 votes
10 answers
3k views

To give you a little background: I work for a company with roughly twelve Ruby on Rails developers (+/- interns). Remote work is common. Our product is made out of two parts: a rather fat core, and ...
SDD64's user avatar
  • 311
5 votes
3 answers
4k views

I ran into an unusual error while working on my project. To better learn from and remember it, I'd like to know if this type of error has a name or some definition. (The error itself OutOfMemoryError ...
Aviv Cohn's user avatar
  • 21.6k
3 votes
2 answers
129 views

We have software that, for certain clients, fails to download a file. The software is developed in Python and compiled into a Windows Executable. The cause of the error is still unknown but we have ...
user3163629's user avatar
0 votes
7 answers
689 views

I have a problem that is more serious than it might seem. I've been programming for about three years , and I have learned and improved a lot , I read the code easily to others, understand the ...
Aitor Gonzalez's user avatar
1 vote
4 answers
2k views

I am beginner in algorithms. Last year I participated in Google Code Jam. One of the major issues I faced during the competition was my code was working fine on my test cases, but when I submitted on ...
user avatar
15 votes
2 answers
8k views

Systems / programs / distributed algorithms / ... are often described with the predicate robust or fault-tolerant. What is the difference? Details: When I google for +robust +"fault-tolerant", I ...
DaveFar's user avatar
  • 1,466
1 vote
1 answer
166 views

I presently have a clock app that calculates from scratch at every iteration. This means O(1) corrupt bits in my doubles and heavy object creation and deletion as well. I am wary of running ...
Christos Hayward's user avatar
3 votes
1 answer
212 views

I've written an API which can be configured to signal errors in different ways (return values, debugging messages, or exceptions). I've got a check in place when the API is first initialized to see ...
Jonathan Rich's user avatar
36 votes
1 answer
3k views

There has been a story in the news about a man whose Paypal account was accidentally credited with $92,233,720,368,547,800. Where does this number come from? What sort of programming bug is likely to ...
shamp00's user avatar
  • 2,759
7 votes
2 answers
14k views

I have multiple functions and a lot of code inside $(document).ready(function()). I am using jasmine to test the functions inside the ready function as well as the code inside ready() but when the ...
makmak's user avatar
  • 71
2 votes
2 answers
223 views

I'm using iPage as my cloud based server provider. I haven't had any problems with them yet. They hold the scripts for my RESTful services for the mobile app I'm developing. My problem however is ...
Curtis Sumpter's user avatar
3 votes
2 answers
352 views

The very simple piece of C++ code below is incorrect, it's easy to see why and tools like Valgrind will tell you. In running several C++ codes containing this kind of error, I noticed that each time, ...
SebGR's user avatar
  • 381
3 votes
3 answers
206 views

Consider someone is writing a message (or a question at StackOverflow). The context is following: In my code, I have the following line: int foo = Bar(); However, the compiler returns an error: line ...
Be Brave Be Like Ukraine's user avatar
2 votes
2 answers
405 views

I have just started learning Android App Development a few days ago, with prior knowledge of C/C++, HTML and CSS. This is the situation I am facing Repeatedly: I am learning from a Video Tutorial ...
user avatar
1 vote
5 answers
402 views

First off I have seen this post which is slightly similar to my question. : What can you do to decrease the number of deployment bugs of a live website? Let me layout the situation for you. The ...
User Smith's user avatar
4 votes
1 answer
361 views

Why is nesting or piggybacking errors within errors bad in general? To me it seems bad intuitively, but I'm suspicious in that I cannot adequately articulate why it is bad. This may be because it is ...
iteratingself's user avatar
5 votes
8 answers
4k views

For the first time I have been coding for an open-source software where all my work gets reviewed before being commited. I understand reviewing work isn't an easy task, so I don't like to waste ...
nischayn22's user avatar
0 votes
2 answers
249 views

Lately I've been working a lot in PHP and have run into an abnormally large number of parsing errors. I realize these are my own fault and a result of sloppy initial coding on my part, but it's ...
ryan.riverside's user avatar
2 votes
5 answers
497 views

Is catching an error with try ... catch a better practice than catching an error with proper analysis/error check? For instance, removing from an empty list: Does surround with a try catch clause ...
fabricemarcelin's user avatar
3 votes
2 answers
240 views

It is one thing to log something that happened in code, a process, or procedure. It is another thing to log something that didn't happen. For example, if your ETL system is supposed to receive a ...
Brent Arias's user avatar
15 votes
11 answers
819 views

I often have to deal with customers or users which are reporting errors in applications. Most of the time their content is something useless as ERROR!!! x does not work without much more information. ...
ccellar's user avatar
  • 253
2 votes
4 answers
4k views

I have an application built in WPF and VB.net. It works on several Windows XP computers that I've tested it on, however, my animator's computer doesn't seem to like it. At first, the program would ...
CodeMouse92's user avatar
37 votes
13 answers
33k views

After reading this famous rant by Linus Torvalds, I wondered what actually are all the pitfalls for programmers in C++. I'm explicitly not referring to typos or bad program flow as treated in this ...
Felix Dombek's user avatar
  • 2,139
16 votes
2 answers
4k views

I don't plan on writing a compiler in the near future; still, I'm quite interested with compiler technologies, and how this stuff could be made better. Starting with compiled languages, most ...
zneak's user avatar
  • 2,596
-3 votes
5 answers
985 views

I am novice developer. While development is going on, we come across different error issues. However for the novice of programming, it is always hard to directly understand them & solve them. I ...
user avatar