Relative Content

Tag Archive for errors

How to avoid typo errors, etc?

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 reviewers’ time and effort. But many times I make silly typo errors and errors of other kind while making a change in the code.

What happens when using address before it’s allocated?

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, it ended up with a Segmentation fault at the line which tries to use the address.

How to be robust against webservice downtime caused by third parties

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 that tonight the service went down. I got a “This is a 500” error.

How to test functions or the code inside $(document).ready() using Jasmine?

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 test cases inside describe are executed it is not able to access the code inside the ready function.

How to test functions or the code inside $(document).ready() using Jasmine?

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 test cases inside describe are executed it is not able to access the code inside the ready function.

How do I output an error when I’m determining how to output an error?

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 what type of error handling the client is requesting – what should I do when they request an undefined error handling type?