All Questions

4
answers

What are the differences between Generic Types in C # and Java?

I've studied Java for a long time and I'm well acquainted with the working of generic types in this language: I know there are only compile-time, type type erasure end of it (so that at runtime this information is not available), and I have...
asked on 21.03.2014 / 10:57
3
answers

Why use Git for individual development?

In 2008 I asked a question in the SO about version control for solo developer and got an excellent response from Jon Skeet indicating the use of SVN. Unfortunately it has recently been closed and removed. Today Git is becoming ubiquitous. Thi...
asked on 13.12.2014 / 19:21
1
answer

DLL library access made in Delphi from Java

I am developing a tool for biometric recognition using the SDK provided in DLL format, developed in Delphi. For DLL access from Java, I'm using JNA. The digital template (the most important part) is an object that refers to this section (in D...
asked on 06.03.2015 / 17:09
2
answers

How does the G1 (Garbage First Collector) work?

In the JEP-248 discussion of the G1 definition ( Garbage First Collector as the default Garbage Collector on Java 9 . In this period, I've been hearing a lot of G1 quotes, but very little material has deeper details or comparisons, for examp...
asked on 25.07.2015 / 05:00
7
answers

How do I remove accents in a string?

I have a string áéíóú What I want to convert to aeiou How do I remove the accents? I need to save in the database as a URL.     
asked on 11.12.2013 / 16:51
1
answer

Why (! + [] + [] +! []). length returns 9 in JavaScript?

I just read this article and there is this expression: (!+[]+[]+![]).length Evaluating this in the interpreter: > (!+[]+[]+![]).length 9 Well, why?     
asked on 29.08.2014 / 22:36
8
answers

The right is br or br / or br /?

I see each using in a way, I even vario the form in a few moments and all work, but which one is right? Does it depend on the HTML version or the browser ?     
asked on 09.01.2015 / 17:16
4
answers

What is the difference between declaring variables using let and var?

Since the word let was introduced in ECMAScript I have only heard about it, so far I have not seen any practical examples and to be honest I do not know very well what a let variable is and how it behaves. The only thing I unders...
asked on 16.01.2015 / 13:56
3
answers

Why is it not recommended to use "_" (underscore) in HTML / CSS?

I've seen people recommend never using _ ( underscore ) in HTML and CSS. Instead, we should give preference to - . Example: // Errado <div id="minha_div" class="minha_classe"></div> // Certo <div id="minha-div"...
asked on 10.06.2014 / 15:54
3
answers

What's the point of using double negation in Javascript?

Recently, while studying some code in javascript, I came across the following code: return !!navigator.userAgent.match(/iPad/i); I know that: !true == false !false == true And consequently: !!true == true !!false == false So I was...
asked on 14.08.2014 / 17:22