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...
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...
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:...
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?
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?...
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...
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...
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;...
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...