All Questions

2
answers

What is a pull request for?

I'm working as a team on bitbucket and would like to know what a pull request is for. At what times should we use this feature.     
asked on 26.04.2017 / 19:17
1
answer

Inheritance is a bad practice for all languages?

I did a Java project architecture course and the instructor told me that Java inheritance is considered a bad practice, which should always be avoided and it is preferable if possible to use composition instead. Is this valid for all other la...
asked on 23.12.2016 / 13:06
3
answers

Realization of floating-point accounts in JavaScript with absolute precision

I'm working with financial values and at the time of performing mathematical operations in JavaScript, values are not as expected. console.log(11.8-10.2) 1.6000000000000014 I would like to know how to solve this precision problem to alway...
asked on 04.05.2014 / 17:03
3
answers

How to add dynamically in ul with jQuery?

I'm bringing backend notifications and I need to dynamically add the path to them, how do I add a <li> to each response element? JavaScript $(document).ready(function () { $.ajax({ url: "/tasks/not-assign", dataType:...
asked on 20.09.2016 / 13:21
2
answers

What is checked in the C # code?

I saw a code: using (IEnumerator<TSource> e = source.GetEnumerator()) { checked { while (e.MoveNext()) count++; } } What is the purpose of the code checked {} in this C # code?     
asked on 07.10.2016 / 19:10
5
answers

Is it possible to change the type of the variable in Java?

Is it possible to change the type of my variable in Java? For example, I created a variable x , being a Double : double x; I want to continue using my variable x but it is now a int : int x; Is this possible?...
asked on 19.02.2015 / 22:02
3
answers

Calculate postal freight for various products

I am trying to calculate the freight of several products using the WebService of the mails , however I have doubts / difficulty to carry out the calculation when I have several products.    I'm using the PHP code to call the webservice and g...
asked on 17.10.2017 / 16:15
4
answers

Fill in leading zeros in JavaScript

I need to insert leading zeros in a input text field. Since this field can be up to 5 characters + a checker digit That is, I need to fill in the leading zeros according to what the user types, for example: 123451 = 12345-1 12341 = 01...
asked on 18.10.2014 / 00:20
3
answers

What are Decimal, Hexadecimal and Octal notation numbers?

What are Decimal (base 10), Hexadecimal (base 16), and Octal (base 8) notation numbers? In the book the code looks like this: <?php // numero decimal $a = 1234; // numero octal (equivalente a 83 em decimal) $a = 0123;...
asked on 22.01.2015 / 13:53
1
answer

What is the meaning of the word "cout" in C / C ++?

Well, it is very common in programming languages to have keywords responsible for printing output. Some are classic like echo , print , printf and write , etc. But in% w / o% we have% w / o%. For me, this word does...
asked on 15.02.2016 / 13:35