All Questions

3
answers

What is the difference between & & & & &?

I was doing a simple code with if of two conditions. Everything worked fine and after I read it, I realized I had written condicao & condicao2 instead of using && . Even with this " typo " the code is fully func...
asked on 16.03.2017 / 18:01
4
answers

What is the difference between pre- and post-increment in Javascript?

The most common and known form of increment is the post: for (var i = 0; i < 10; i++){ console.log(i); } However, I then see the pre-decrement: for (var i = 0; i < 10; ++i){ console.log(i); } However, the results are the...
asked on 14.05.2014 / 18:23
4
answers

How does the current function work?

It's been a while since I've always used the current() function in PHP to get the first element of the array (which in fact is not its functionality since it returns the current pointer in array is) and I've been noticing something tha...
asked on 10.07.2014 / 13:57
4
answers

What are the risks of using 777 permission?

Always when I have folder permissions issue on my Ubuntu operating system, I usually give the 777 permission to the given folder. I usually do this in the development environment. In some situations, I've given this kind of permission...
asked on 06.12.2016 / 17:25
2
answers

What is the difference between px, dp, dip and sp?

What's the difference between px , dp , dip and sp on Android?     
asked on 13.12.2013 / 14:01
3
answers

Are there safer languages than others?

Are some languages safer than others? Or is this not dependent on the language but on the programmer? Does the language in which a program is programmed interfere with programmer-independent security?     
asked on 24.03.2016 / 13:48
2
answers

What is it and what are the advantages of Currying?

This is a very widespread concept in functional languages, but what exactly is it? Why is it advantageous? Bonus point : Is it possible to use it in non-functional languages? Or more generically, in languages that do not have specific fac...
asked on 12.06.2014 / 18:59
1
answer

How to program in Portuguese in Ruby on Rails?

I would like to know how I can program an application in Ruby on Rails instead of English. There are basically three issues to this: How to change the user interface in Portuguese? (ActiveRecord error messages, dates and times in extensi...
asked on 07.06.2014 / 20:38
1
answer

What does the asterisk in "* {}" mean in CSS?

Sometimes I get sites ready to edit and I notice that in the console it appears: * { /* código aqui */ } What does this asterisk mean?     
asked on 02.06.2017 / 14:08
2
answers

Meaning of "__"

In the Linux kernel implementation , I came across this statement on the line 89: #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) I know that in C , symbols starting with a _ followed by a ca...
asked on 28.09.2016 / 21:26