All Questions

2
answers

Differences between If and ternary operator?:

Is there a performance difference between using an if and a ternary operator in C #? I use Resharper (Productivity Tool for VS) , he insists that ternary operator is better but you do not explain why. Code, before Refactoring: if (i...
asked on 28.05.2014 / 16:01
1
answer

How do prototypes work in JavaScript?

It seems to me that the concept of prototype is fundamental in JavaScript and even in several places I have read that it is one of its strengths. However, this does not seem like a simple concept to understand for those who come from other langu...
asked on 08.05.2014 / 22:02
7
answers

In object orientation, why are interfaces useful?

Can anyone give a practical explanation on why interfaces are used and why they are useful to us developers?     
asked on 29.01.2014 / 21:13
1
answer

What does the "$" symbol mean before a string?

Viewing a code here in SOpt, I noticed the use of the "$" symbol and I was not sure how to use it. What is the "$" symbol before a string ? What is it for? Why use it? Example using static System.Console; public class Program {...
asked on 07.10.2015 / 14:35
5
answers

Java Library for Brazilian Electronic Nota Fiscal (NFe)

I have been developing a business management system for some time. I need to add to it the functionality of electronic invoice issuance in the Brazilian standard. Is there a well-tested and preferably free and open source Java library that wi...
asked on 12.12.2013 / 18:13
5
answers

How to print content inside an HTML div?

I have a page and in it the content I want to print. I created a command in JavaScript, but this command makes the whole page print. Is there any way to print only the contents of a div ?     
asked on 21.12.2013 / 04:20
2
answers

How to count the objects in the image with PHP?

The original photo of the beans is this: Decreasetheresolutionofthephoto,Ialreadyappliedafiltertobeingrayscaleandincreasedthecontrasttothemaximumtobecomeblackandwhite.ThenIexaminedthecolorofeachpixelandmountedanarrayarray.IfIloopoverthisarra...
asked on 11.02.2017 / 01:53
2
answers

What is PHP Injection? What's the difference between it and SQL Injection? And how to avoid it?

What is PHP Injection? What's the difference between it and SQL Injection? How to avoid PHP Injection in my application? What are the main forms of PHP Injection type attack? Update Note : Remembering that SQL injection is not th...
asked on 13.08.2015 / 23:00
5
answers

What is the difference between a branch and a tag?

No git , what is the difference between branch and tag ?     
asked on 13.08.2015 / 16:48
4
answers

What is the purpose of @Override?

I have some doubts about @override , I read somewhere and I vaguely remember the rewriting issue, but what is it? And what's the use? As it applies to a JAVA code. Is there any other language?     
asked on 30.06.2014 / 16:37