All Questions

1
answer

Guid.Parse () or new Guid ()?

What is the main difference between using the options Guid.Parse() or new Guid() to convert a string into a Guid ? And which of the two approaches would be best to use? var usuarioId = new Guid(User.Identity.GetUse...
asked on 12.04.2018 / 15:03
1
answer

Compensates to migrate from Swing to JavaFX?

Currently most of my applications are made with Swing. I've done 2 small web projects with JSF + Primefaces + Hibernate. My question is this: Is it worthwhile to go out of Swing and study JavaFX, or is it better to study the Web part more a...
asked on 13.05.2015 / 16:40
1
answer

Is the "row ID" the same as the primary key?

The insert of Android returns a row ID according to the documentation,    the row ID of the newly inserted row, or -1 if an error occurred The row ID corresponds to the primary key, ID , if it exists?     
asked on 23.11.2017 / 12:40
2
answers

Apply immutability effect on objects of an ECMA6 JavaScript class

For example, I have the following class: class LavarCarro { constructor(cor, placa, data_entrada) { this._cor = cor; this._placa = placa; this._data_entrada = data_entrada; Object.freeze(this); // congela a...
asked on 10.07.2017 / 13:56
1
answer

Operator "and" for assignment in classes

Looking at some repositories of GitHub I found this repository for generation of tickets with php and within the class Cedente caught my attention the use of the word and within the function construct in this file . Th...
asked on 05.05.2017 / 19:02
2
answers

How to save and exit in VIM?

I have a problem (I think it's a problem) in the vim text editor. When I create a file readme.md and then I make the command vim readme.md , it opens the editor and then the problem starts. When I type something in there, I do...
asked on 10.11.2017 / 16:27
2
answers

What is the purpose of the WeakMap object?

How does the WeakMap object work? What's the difference between it and a Object (which is the most common in Javascript)? What is the difference between WeakMap and Map ? Which browsers can I use?
asked on 13.07.2018 / 18:38
2
answers

Why does the linear search return for element not found have to be -1?

Why should I return -1 at the end of a linear search if the element was not found? int linearSearch(int[] list, int size, int key){ for(int index=0; index<size; index++) if(list[index]==key) return index;...
asked on 23.11.2017 / 01:54
2
answers

What is the difference of use between mouseClicked and actionPerformed?

What's the difference between these two events: mouseClicked () and actionPerformed ()? What differs in your execution and when will they run?     
asked on 13.06.2017 / 21:16
2
answers

What are the differences between client-side and server-side "rendering"?

Lately I've seen a lot of the term server-side rendering , mainly with the popularization of some frameworks and libraries, but I still can not understand what improvements this can bring to a system. I would like to know the difference...
asked on 05.06.2017 / 18:48