All Questions

5
answers

Abstract Class X Interface

What is the difference between an abstract class and an interface? I do not understand when I should use one or the other.     
asked on 31.01.2014 / 19:08
2
answers

How do antivirus programs scan my program?

I had a lesson in college that left me "puzzled", my teacher was talking about the differences of interpreted languages and compiled languages and stressed that interpreted languages could have their code stolen, when in compiled it does not hap...
asked on 19.10.2017 / 20:36
3
answers

Difference between the use of typeof and is

In C # when I need to check if a variable is of a certain type, I usually use the is : if(qualquerVariavel is int) Console.Write("A variável é int"); I know you can also check the type of a variable in other ways, one of them is u...
asked on 11.09.2015 / 21:14
5
answers

When to use self vs $ this in PHP?

I see it as a very frequent question: When we should use self:: , or $this in PHP. Which form is most suitable for use and what is the difference between the two situations?     
asked on 18.12.2013 / 12:10
1
answer

Which css selector has priority?

My question is very objective. Regarding css selectors. I have the following code HTML and CSS : #element p{color:blue;} .element p{color:red;} div p{color:pink;} div.element p{color:yellow;} div[name="ele...
asked on 01.08.2016 / 19:27
4
answers

What good practice when throwing exception within if?

What is the best practice in this case, to use else even though you know that if will throw an exception or not? option 1 (with else ): if (condicao){ throw new RuntimeException("Mensagem"); }else{ System.out.println("Não deu exce...
asked on 14.01.2014 / 11:28
1
answer

How does asynchronous programming work in JavaScript?

As far as I know, asynchronous programming in C #, for example, uses the idea of threads. The tasks to be executed can be divided into threads and can then be executed in parallel. I've always thought that JavaScript is the same and that, for ex...
asked on 24.05.2014 / 16:55
3
answers

Routinely compute secure data

Random functions are not totally random in computation. I would like to know if there is a safe way to safely generate a salt, or any random string, without using external hardware. Can randomization be achieved without the use of external ha...
asked on 18.07.2014 / 14:04
3
answers

br is obsolete?

With the advent of responsive / adaptive / fluid layouts, it is becoming less common to use <br> to define layout spacing. Is not it recommended in these modern layouts or is it just a matter of programming practice to separate resp...
asked on 07.06.2018 / 16:11
2
answers

What does public static void main (String [] args) mean?

I want to understand what each item of public static void main(String[] args) means in Java and when it should be used.     
asked on 18.10.2015 / 02:10