All Questions

2
answers

What is the difference between mock & stub?

In which situations should be used? What's the difference between them?
asked on 13.10.2014 / 19:56
2
answers

What is the View in the MVC standard?

I started in 2016 to use MVC standard, the concept of Model and Controller perfectly understand, / em> intrigues me. What is the View in an MVC template? I know what the client sees (data representation) , but what can be understoo...
asked on 28.11.2016 / 12:42
2
answers

When should I use Inheritance, Abstract Class, Interface or a Trait?

Since PHP 5.4 we have Trait , which "are mechanisms that help (and much) reuse code, and serve perfectly to solve the problem of lack of multiple inheritance." Example of Abastrata Class abstract class AbstractUser { abstract publ...
asked on 08.07.2015 / 18:07
4
answers

Is it necessary to add prefixes in some CSS properties?

In many browsers, browser compatibility prefixes are added to CSS attributes. Example: .exemplo { -webkit-background-size: 50% 50%; -moz-background-size: 50% 50%; -o-background-size: 50% 50%; background-size: 50% 50%; } But if you l...
asked on 01.02.2014 / 00:59
2
answers

What's the difference between $ (document) .ready () and window.onload?

Is there a difference between $(document).ready() e window.onload plus one being JavaScript and the other being jQuery? I see that both events are triggered as soon as DOM Document Objects) is loaded. In practice as written:...
asked on 08.02.2017 / 13:17
5
answers

What is the / datalist tag for?

When I was using Sublime Text to edit a html file, I noticed that it suggested a tag with the name of datalist . I've never seen this tag before, but it does seem that really exists . As I did not see any explanation in Portu...
asked on 11.04.2017 / 18:39
5
answers

What is the best way to iterate objects in a HashMap?

What is the best way to iterate the objects in a HashMap in Java in order to have access to the key and value of each entry?     
asked on 11.12.2013 / 17:01
3
answers

How does git rebase work?

What happens when you override the following situation: Branch master with 3 commits (A, B and C). After commit C, I created a new branch named design. I made a commit (D) in the branch design and went back to the master branch. I mad...
asked on 18.08.2015 / 13:14
6
answers

What is Design Pattern?

I'm starting my studies in the area of Software Engineering, I heard a lot about the term Design Patterns and their applicability and importance in software projects. Here is a definition:    In software engineering, a design pattern or des...
asked on 05.11.2015 / 14:36
6
answers

How to read a text file in Java?

I have the file named dados.txt and I want to put it in String . For example: String texto = lerArquivo("conteudo.txt"); Question How to write this method lerArquivo() ?     
asked on 10.01.2014 / 02:55