All Questions

2
answers

Recurring Doubt

I did table test but the result will never give 0 because it subtracts 1 from n but then it adds the result with n . The result of this question was 36 and I did not understand why. public class Recursivo{...
asked on 03.02.2016 / 17:58
2
answers

Enable and Disable Save Button

I am developing a Revenue / Expense launch system and this works according to what I initially need.    Processes. Revenue Posting, adds the amount of Revenue to the account table.   Example:   Initial Account Balance = 0.00   Revenue...
asked on 11.10.2016 / 16:55
3
answers

How to check if an item is contained in an array?

What am I doing wrong in this if ? if (angular.uppercase(nome[id]) in ['A', 'E','I', 'O', 'U']) { .... } If I only do this, it works. But I'll have to repeat it to others. if (angular.uppercase(nome[id]) == 'A'){ ..... }...
asked on 25.12.2015 / 20:57
2
answers

Partially update model with WebAPI2

I'm starting to develop a REST API using ASP.NET WebAPI2. In my controller , I'm using the PATCH method to apply partial changes to a model . I have a method that looks this way [HttpPatch] [ResponseType(typeof(void)...
asked on 12.02.2016 / 19:18
2
answers

What is a decision problem?

I started to read about computer theory and came across "decision problems". What are these problems? I do not want any highly elaborate scientific articles to answer the question, just a quick overview of what this is and how it can be re...
asked on 28.07.2017 / 14:34
3
answers

In PHP are all declared variables global?

In C # there is the concept of local variables, see the example below: if (true) { int valor = 10; } else { valor = 5; } Console.Write(valor); The above code will return an error saying that the valor variable does not exist...
asked on 26.12.2016 / 17:13
1
answer

What is the difference between virtual and abstract methods?

In which cases should I prefer to use one type instead of the other?     
asked on 13.10.2016 / 17:34
2
answers

What is embedded programming?

Reading a book about programming practices, a passage is sometimes quoted about embedded programming . It does not go into detail, but talk a little about programming in microcontrollers and microprocessors . What is embedded programming?...
asked on 05.02.2017 / 06:59
3
answers

What is map / reduce?

Map / Reduce is a very common concept in JavaScript and many other languages. What does it mean and how does it work in practice?     
asked on 05.04.2017 / 02:50
3
answers

What is a Label for Kotlin?

In an example of loops in Kotlin documentation , we have some code with following excerpt: loop@ for (i in 1..100) { for (j in 1..100) { if (...) break@loop } } As I read in the documentation, it seems to be a Label and...
asked on 08.08.2017 / 16:45