Tag Info

New answers tagged

0

So I have ran some simple tests myself. One that does something with the UI and one that calculates prime numbers in objective-c. After adding a swift file and calling a simple swift method from the objective-c code I measured the same tests again. There was no significant change in performance of the algorithms. I will conclude that there is no ...


2

Despite the other answers to this question, there is in fact a lot of behaviour in this method, and therefore a lot of things that could go wrong if we don't test them. Here are the cases I would check: When view is not empty and data is not empty, then both view and data are set in the Crashlytics object. This test is sufficient to get statement coverage. ...


4

The point of unit testing is testing your code's functionality in isolation. To the extent that your code is simply a wrapper around an external library, it doesn't really have any functionality to unit test. It may be useful to unit test the NULL and nil values, as you suggest. However, unit testing the call to the library doesn't seem worthwhile. ...


5

"Hardware is Cheap, Programmers are Expensive" The cost between a low end computer and a high end computer is generally a few hundred dollars. That investment will be amortized over a few years. If you save 10% on compilation time or the IDE responds more quickly when opening or code completion in the IDE works faster by investing in the higher performing ...


-2

Today is better to use cloud solutions like IBM Bluemix - http://www.ibm.com/cloud-computing/bluemix/ or https://appery.io/ etc. You do not need knowledge such as hardware and software configuration of servers, etc.


1

Database migrations between core data models is difficult. Setting up a core data model (or any sql-like database) is like getting a tattoo. The core data API is good but even seasoned veterans still struggle with it. I am in no way suggesting core data is bad and it shouldn't be used. I am just suggesting that in your case, you could easily avoid it, ...


0

The speed of downloading and uploading small files can easily be circumvented by putting several files into an archive (eventually with level 0 compression if files don't need to be compressed, which is the case for example for JPEG files). If the user uploads hundreds of files, this will result in two-three large files. If the user needs to upload only one ...


2

What strategy would one adopt to test such a form? You have to separate the GUI from the decision logic by adding a decision function that only depends on business attributes and not on GUI elements: bool isNativeLanguageInputVisible(RegistrationData currentRegistrationData) Your GUI would use this decision function to control visibility and your ...



Top 50 recent answers are included