All Questions

2
answers

What is the right approach to get the click / position in RecyclerView?

What is the right approach to get the click on RecyclerView? 1 - Within the onBindViewHolder use the position, even within the setOnClickListener methods, which turns the variable position into FINAL; 2 - Within the onBindViewHolder use the h...
asked on 19.10.2016 / 15:22
1
answer

Is it possible to create a website with HTML and C # without ASP.NET?

Is it possible to create a site only with HTML and C # without ASP.NET? In general terms, how?     
asked on 20.09.2017 / 14:34
1
answer

PHP 7 - Why does a method that returns the primitive type String, does not generate error when returning a Boolean value?

PHP 7 - Why does a method that returns the String primitive does not generate an error returning a Boolean value? <?php class Foo { public function bar() : string { return true; } } $Foo = new Foo(); echo $Foo->b...
asked on 08.08.2018 / 18:42
2
answers

What is the best way to implement a loading-bar?

I have a project SPA on each screen transition will be fired a loading-bar ( progress bar ) to improve the user experience ( this UX will include more interactivity than performance ). But when searching, I'm coming to the concl...
asked on 02.08.2017 / 15:31
1
answer

What is unrolling?

In this question I asked about the optimization and performance that the compiler performs. Among the highlighted items, users commented that the compiler does an unrolling loop optimization or unrolling . What is this unrolling ?...
asked on 23.02.2017 / 14:33
1
answer

Why should a struct be at most 16 bytes?

I saw in a question about classes and structures that the latter should have a maximum of 16 bytes. Why do you have this limitation?     
asked on 08.05.2017 / 13:27
2
answers

Use timestamp with or without timezone in postgresql?

Use timestamp with or without timezone in Postgres? The Web application will be used in different countries, so I will have to deal with different time zones. The system has data entry of several different objects that have the day and time t...
asked on 24.08.2017 / 20:54
1
answer

How to avoid repetition when listening for changes in properties of a component?

When I need to react to changes in N properties for the same callback I give myself to use something like this: watch: { propriedadeA(){ this.reagir(); }, propriedadeB(){ this.reagir(); }, propriedadeC(){...
asked on 13.09.2017 / 12:53
1
answer

Why use VAR in PHP?

Why use VAR in php if we can declare variables without VAR? We can do this: $teste so why do that? var $teste For example, is it the same thing I do this? class Caneta { var $modelo; var $cor; } And this: clas...
asked on 09.06.2017 / 15:42
1
answer

Project has more than 65536 methods

Adding the Analytics Package to the project resulted in an error in the project. As explained in this blog , the error occurs when the project has more than 65536 methods ( only the added Google Play Services package has about 30,000 methods)....
asked on 28.04.2017 / 20:08