All Questions

3
answers

What are the main differences between Angular.js React.js and Vue.js?

In a SPA project that will soon be used in a mobile app as well, I need to know the key differences in deciding which framework to focus on.     
asked on 01.04.2017 / 04:42
4
answers

How to pass string by reference?

I passed a string as a parameter. From what I know it is passed by reference, so if I change anything in it within the method, when I leave it the value will continue to change. I did the test below and it did not happen what I expected. Am...
asked on 31.03.2017 / 13:21
5
answers

Function refactoring to remove punctuation, spaces, and special characters

I have this function too old to "clean" the contents of a variable: Function function sanitizeString($string) { // matriz de entrada $what = array( 'ä','ã','à','á','â','ê','ë','è','é','ï','ì','í','ö','õ','ò','ó','ô','ü','ù','ú','...
asked on 22.12.2013 / 17:08
4
answers

Clear cache of browsers with javascript

Is it possible to clear the cache of Firefox and Chrome browsers via Javascript? With Internet Explorer I can do it, but not the ones mentioned above. Dude, it did not work, I think the problem occurs because unless the user logged in remembe...
asked on 10.06.2014 / 14:27
3
answers

Write TimeSpan in full

I want to write a static class (can be Extension ) to represent the value of a structure TimeSpan " in full, in Portuguese. The idea is to always compare the current date ( Datetime.Now ) with the date that the event occurred....
asked on 24.08.2015 / 19:26
4
answers

Should I use GUID or int as a primary key?

I'm about to start a new project in MVC 4 with Entity Framework, searching I found several examples here in the SOpt of models that use GUID as ID and some doubts have arisen: What is the advantage of using GUID as a primary key? Is it feas...
asked on 19.06.2014 / 21:38
2
answers

What is a Thread? How does it work?

I was confused about what a thread is and what it represents. I found the following definition for it:    Thread is a small program that works as a subsystem, being   a way for a process to self-divide into two or more tasks. It's th...
asked on 28.10.2015 / 23:20
3
answers

foreach is a loop or iterator? Or could it be both?

In a video tutorial the instructor said not to fall into foolish to think that the foreach loop is one, and was vehement that he was an iterator. There are cases where we can scroll through the items in an array using foreach as a "compact fo...
asked on 05.03.2017 / 23:34
1
answer

Compiler Roslyn - What is it, and why was it created?

What is the Roslyn compiler? Is this the default Visual Studio compiler? Is it open source? Why did they do this? Only for C # or other languages as well?     
asked on 26.08.2015 / 22:08
4
answers

Should you use break in for?

I have a question about the ties of repetition. I had a class where my teacher said that you should never use for if you do not run it from start to finish. I've seen many, many codes using this repeat structure containing a break in the...
asked on 24.09.2015 / 16:38