All Questions

2
answers

What are promises in javascript?

I was searching about callback in JavaScript when I found this question:    How to really learn how to use promises in> (promises) in javascript? But after all: What are promises? What are they for?
asked on 24.03.2016 / 17:29
7
answers

How do I know if today's date is Saturday or Sunday (weekend) in PHP?

I want to know what is the simplest possible way to find out if today's date is Saturday or Sunday in PHP. What are the possible ways to do this?     
asked on 23.06.2016 / 19:55
2
answers

Is there any problem in using Unicode characters for identifiers in code?

Today, it is common for compilers of programming languages to allow the code file of their programs to accept code with Unicode characters. This is useful, especially for those who use Portuguese and other languages that run away from ASCII t...
asked on 21.05.2014 / 16:04
2
answers

What is the difference between a class and an object?

I was reading a book on object orientation and these two entities are treated differently. What's the difference between the two?     
asked on 28.11.2015 / 00:49
1
answer

Why and when to use enum in Java?

Someone learning the language, novice or experienced, may never have come across Java enumerations. I have read on several occasions that they are useful, for example, to implement singleton standards with more guarantees of visibility between...
asked on 25.02.2014 / 23:17
2
answers

What defines a clean code?

I saw this term being used several times, many people and companies want their codes to be "clean" ... I also saw the book Clean Code Practical Skills of Agile Software . But I wanted to know what defines a code to be clean or not? What poin...
asked on 24.09.2014 / 14:09
1
answer

How to transform numeric digits into full numbers?

Question: I'd like to know how to turn numeric digits into numbers in extensions , as the example below demonstrates. Example: 0 -> retorna "zero" 5 -> retorna "cinco" 2014 -> retorna "dois mil e quat...
asked on 15.02.2014 / 01:37
1
answer

Arduino I2C sends unexpected NACK

I am using a development board of microchip (explorer 16) with pic24f128ga010 as Master and Arduino as Slave . The PIC is sending everything right, but for some reason arduino sends NACK to all date , only sends ACK...
asked on 29.03.2015 / 18:43
3
answers

How to implement google reCAPTCHA on my site?

I'm trying to implement the reCAPTCHA of Google on my site, and I can not do the integration Server-Side (I use the PHP language). How can I make reCAPTCHA work, and do the validation before submitting my form data?...
asked on 24.04.2015 / 16:19
4
answers

Getters and setters are an illusion of encapsulation?

It is common to teach that it is right to leave class attributes private and to create getters and setters for them, all because of encapsulation. Is not this the same thing as leaving everything public, since you can change and...
asked on 21.07.2014 / 12:57