All Questions

4
answers

Should I initialize strings (or objects in general) with null?

I have noticed that a common practice among programmers is to initialize an attribute of a class with null . Is this a good practice or not? Is there any difference between initializing with null or not initializing "at all"? Exampl...
asked on 15.01.2016 / 14:28
5
answers

How do I know if a column exists in a SQL Server table?

I'm trying to add a new column to a SQL Server table, and I want to know if it already exists or not. I have tried something like this: IF EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'minhaTabela'...
asked on 02.02.2014 / 01:05
5
answers

Programs written in C # depend on the .NET Framework to run?

Since compiling a C # code depends on the .NET Framework installed on the machine to run, similar to Java?     
asked on 27.09.2017 / 02:03
3
answers

How to create a filter from the words / phrases of interest to filter a certain vacancy from a "List"?

In my example I have two classes that are SetorInteresse and Vaga , below follows the structure of the two: Sector Class Interests: public class SetorInteresse { private List<String> setores; public SetorInteres...
asked on 12.09.2016 / 03:09
2
answers

When should I use fields that are disabled, read-only, or hidden?

If I have a form where some fields are fixed, what is the best way to present these fields to the user, from UX's point of view? A common field, disabled : <label>Foo: <select name="foo" disabled> <option value="1...
asked on 13.08.2016 / 06:34
1
answer

Why do you use the history.pushState function?

I noticed that the history object has some relation to browser history manipulation. There are methods like go and back which are more understandable, but I do not quite understand what the pushState does. What is...
asked on 16.10.2017 / 15:33
2
answers

Choosing the method for hashing in PHP

My question began when I decided to re-examine the method I was using to obtain the user's password and store it in the database. After reading this , this and this question here on the net, plus many others on other networks, such as this...
asked on 08.08.2016 / 19:40
2
answers

Future of java in chrome - possible complications

According to this news from # I have many web programs that require java running, I wonder if it's possible even after chrome disables NPAPI, still make java applications work? Excerpt from the news    For the end user, the main change...
asked on 20.04.2015 / 15:35
1
answer

What makes Kotlin a faster language than Java?

I've read in some articles that Kotlin is faster than Java, but none of them exemplifies why. [...] As fast as Java ". Kotlin - Evolve your Java code (TDC-2016) Alex Magalhaes [...] Kotlin must compile quickly, coexist with Java and...
asked on 08.09.2017 / 14:13
1
answer

Java Interface 8

Java 8 allows you to implement methods in the interface itself. So I would like to know what an abstract class can do that an interface can not. Source: link     
asked on 01.10.2015 / 22:25