All Questions

1
answer

Why in PHP is it possible to access functions before the line they were declared?

Why in PHP is it possible to call a function before the line where it was declared? echo ah(); // 'Ah!' function ah() { return 'Ah!'; } Notice that I called ah() first, then declared. Even so, she was executed. But the function...
asked on 05.12.2016 / 16:59
1
answer

What exactly is a CLI?

From what I've noticed, there are several CLIs. Example: Ionic CLI Angular CLI Cordova CLI But what exactly is a CLI? Is it possible to use these frameworks without the use of these CLI's?     
asked on 30.09.2017 / 03:25
1
answer

Why do we use parentheses in a pointer declaration?

What's the difference between these two statements? int* array1[10]; int (*array2)[10]; Why are there parentheses in the second?     
asked on 10.01.2017 / 11:36
1
answer

Why are there two const variables in the variable declaration?

I can do this: const int* const objeto = &x; Why are there two const ? What is the function of each one?     
asked on 15.03.2017 / 12:25
1
answer

Why is the index of arrays and other sequences starting at zero?

Why array does not start with 1. Is there any technical reason to have adopted 0?     
asked on 13.02.2017 / 15:10
1
answer

Alternative to Observable and Observer in Java 9

For testing purposes, I'm porting an application from version 7 to version 9 of Java. This application has some features that use Observer and Observable . I noticed that both have become obsolete: @Deprecated(since="9") pub...
asked on 06.10.2017 / 16:04
2
answers

How to get the integer value of one of the constants of an enum?

I have an enum (enumeration) calling Notas and I need to get the integer corresponding to one of its constants. public enum Nota { Otimo = 5, MuitoBom = 4, Bom = 3, Regular = 2, Ruim = 1, Insuficiente = 0 } I...
asked on 15.12.2013 / 03:22
2
answers

Difference between AWT and Swing in component rendering

What are the main differences between the Swing and AWT interface building libraries, regarding the way components are rendered and performance rendered?     
asked on 09.01.2017 / 21:16
2
answers

How can I get the first element of each parent element?

I have a structure like this: <div class="container"> <span class="iconset"></span> <!-- primeiro elemento --> <span class="iconset"></span> </div> <div class="container"> <span cl...
asked on 24.12.2013 / 20:12
1
answer

What is the correct use of the "in" operator, in javascript?

This code does not return anything, why? I'm running in event "window.onload": if(innerHeight in window){ console.log('true'); } I had used the operator again and again, and it worked, but now it came to me ... And then, can anyone hel...
asked on 15.02.2017 / 07:35