All Questions

2
answers

Where should exception handling be performed to display to the system user?

What is the best place to handle an exception and send a message to the system user in a desktop application? In the controller, in the view or elsewhere?     
asked on 11.12.2015 / 00:34
2
answers

What is and what is YAML for?

Briefly, what is YAML? What are the advantages of using it?
asked on 14.08.2015 / 21:41
3
answers

Does Java have any class to work with command line arguments?

I need to create a Java desktop app, and with this pass several parameters of the type:    java myapp.jar -DB c: \ base.db -user admin -pass admin Is there an easy way to get these parameters? Something like this: public static void...
asked on 13.11.2015 / 18:32
4
answers

Extend x Overwritten, what's the difference?

Researching on Object Oriented concepts, I came across the following comparative, Extend (Inheritance) versus Overwritten. I found the following statement for this comparison: Extend: When we include new attributes, methods in a chil...
asked on 26.09.2015 / 22:55
2
answers

What is cyclomatic complexity?

Regarding the complexity of algorithms, I noticed that there are several quotes about cyclomatic complexity . What is cyclomatic complexity? In what situation is it important to analyze this complexity?     
asked on 29.03.2017 / 18:59
3
answers

Extend classes with private constructor

Why can not I extend classes with private constructor? Getting the A: classes public class A { private A(){} public static void limao(){} } and B: public class B extends A { private B(){} public static void banana()...
asked on 25.02.2014 / 00:23
4
answers

How to jump to the next field using jQuery?

How to move focus to the next field of a table using jQuery? I have a table with the Id , Name and Price fields, the price column is a text input. How to implement a feature for when the user presses the Enter key to jump to the next l...
asked on 20.11.2014 / 15:04
3
answers

Why does Visual Studio suggest simplifying the names? - IDE0001 Name can be simplified

Visual Studio 2013 suggests simplifying names, as you can see below: The suggestion is:    IDE0001 Name can be simplified translating: IDE0001 Name can be simplified Example: var obj = new Object(); //Sugere a simplic...
asked on 11.08.2015 / 15:48
1
answer

Is there any API that lists states and cities?

I've been looking for some json API that lists the states of a certain country, or cities of a certain state, I've looked for this functionality through various Google Maps APIs but I did not find anything that was exactly for that. I do not w...
asked on 25.07.2015 / 17:18
4
answers

How to prevent direct access to my PHP code?

I have a PHP application and I do not want the user to type in the address bar the name of a specific file, for example { example.com/enviar.php }, all my files are called by index.php, how could I avoid direct access to all of them except the i...
asked on 19.11.2015 / 00:53