All Questions

3
answers

Difference between promise and callback

I would like to understand the benefits of using Promise a little better! Today I use callback function. Ex: function a(callback) { $.ajax({ ... }) .done(function(data){ callback(data) }) .fail(function(data){...
asked on 30.11.2016 / 19:40
3
answers

How does version naming work for private or public projects?

I'm developing a project that serves as bootstrap for future contributions via Git, and I would like to know which version scheme is most used, say "version" for the state of the software, example version 0.1.1 Following the basic guidel...
asked on 25.08.2015 / 01:32
4
answers

More important than important

My style sheets declare formatting for a class something like this: .foo div label { width: 100px !important; } This comes from a plugin. I would not like to change the style sheets of the plugin, but rather add my own sheets to overwri...
asked on 08.10.2014 / 21:18
2
answers

How can I get the results of the lotteries?

I looked for lottery APIs to get the results of the contests, unfortunately I could not find any. The answer from @fpg1503 can only read the result of the current game, I wonder if it is possible to get the results of the previous game...
asked on 20.01.2015 / 16:02
3
answers

What does the comment of 3 bars in C ++ mean?

I know that there are basically 2 types of comments, those of a line // and the multilines /* */ , but if I comment with 3 bars until the color of the comment changes, such as below Qt and Visual Studio : If the color chan...
asked on 13.12.2018 / 14:36
3
answers

How to convert a string to Listint

I have the following variable and would like to convert it to an integer list: string variavel = "1,2,3"; Is there a way to convert it to a list of integers?     
asked on 06.08.2015 / 14:16
3
answers

What is the difference between 'yield' and 'return' in PHP?

I've been trying to get that doubt out, but to no avail. At first glance they looked like similar commands or they would be the same thing. After seeing some explanations, I was a bit confused and did not take my doubts. If they are not the s...
asked on 13.01.2016 / 16:31
2
answers

What is the best practice of styling an Email body?

I'm in the development phase of a welcome email. I would like to know the most correct and used practice of adding the style in my email. My question is: should I use inline, embedded, or external CSS? I've noticed that many sites use the...
asked on 26.06.2017 / 16:31
3
answers

How to select all but one specific column?

You can select all columns in a table: SELECT * FROM wp_rw_programacao WHERE id = $id But I need to eliminate the id column from the result. Is it possible?     
asked on 19.10.2017 / 17:09
4
answers

Regarding object orientation, should queries have a class of their own or can they be in a specific class?

What I have is the following: a user class and a connection class with the bank. I need to insert a user into a database, the query " insert into usuarios values (..) " should be in my user class or in the database class? I think o...
asked on 11.12.2015 / 15:02