Most voted questions
150,413 questions
Sort by count of
-
38
votes4
answers2188
viewsTime spent developing tests
I’m afraid I’m worrying too much about testing, as I’m currently spending about 40% of my project’s time just creating them. I know that the more time I spend with tests, the less I will spend to…
-
38
votes3
answers2673
viewsHow to make "case-insensitive" comparisons in Sqlite?
Since there’s an obsession with accent questions, here goes mine :) Sqlite allows direct comparisons or through like with any encoding/charset as long as it’s done byte to byte. It only allows…
-
38
votes2
answers1727
viewsWhat is the function of the ~ (til) Javascript operator?
I tried to search for Google and SOEN, but I did not find any reference to the operator ~, I discovered that it exists because I was reading a book about Javascript and had an example using it, but…
-
38
votes3
answers5488
viewsHow to use the current value of a variable in a more internal function?
The following code "prints" 50 times the text "Message 50" in a textarea. for (var i = 0; i < 50; i++) { setTimeout(function() { textArea.value += 'Mensagem ' + i + '\n'; textArea.scrollTop =…
-
38
votes8
answers14487
viewsHow to create a copy of an object in Javascript?
I have an object called cachorro and would like to create and store a copy of that object. As objects, vectors, functions and regular expressions are considered objects I cannot make a copy just by…
-
38
votes4
answers66720
viewsWhat is the correct way to make a regular Javascript substitution for all occurrences found?
What is the correct way to make a regular Javascript substitution for all occurrences found? The way I do these days: var i = 0; while ((i = str.indexOf("_", i)) != -1) { str = str.replace("_", "…
-
37
votes3
answers2737
viewsHow to integrate microservices?
The idea of microservices is good. But I don’t really understand how to solve certain problems. Maybe the problem is how it is "sold". I don’t see much to say when to use it or when to avoid it. It…
database software-architecture transactions microservices acidasked 6 years, 11 months ago Maniero 444,682 -
37
votes3
answers10654
viewsHow to make a progress bar ranging from 0 to 100% with CSS only?
I am developing a page where there is a progress bar and I need to make it start from 0 and go to 100%. But I only need to do it with CSS and, in addition, I need that when it reaches 100%, start…
-
37
votes3
answers439
viewsHow to get a similar behavior between the Garbage Collection of a Single-Page Application and a Multiple-Page Application?
I’ve been doing a lot of research on the web and in stackoverflow communities, and I’m getting to the point of believing that Spas take almost no advantage of the GC algorithm of current browsers.…
javascript memory memory-management single-page-application memory-leaksasked 7 years, 9 months ago LeonanCarvalho 3,527 -
37
votes5
answers5647
viewsWhat is the orthogonality?
Within the context of software development what it means to be orthogonal? Why it’s important to follow him?
terminologyasked 7 years, 9 months ago Maniero 444,682 -
37
votes3
answers9049
viewsWhat is a Transpilation?
I started reading one article on Ecmascript 6 and I came across the term Transpilation, which in Portuguese would be Transpilation. In addition to this, I noticed that other articles use this term.…
-
37
votes1
answer3274
viewsWhich CSS selector has priority?
I have the following code HTML and CSS: #element p{color:blue;} .element p{color:red;} div p{color:pink;} div.element p{color:yellow;} div[name="element"] p{color:purple;} div…
-
37
votes5
answers7326
viewsIs Javascript an Object-Oriented language?
Many say that it is not an object-oriented language, because it is not possible to define classes in it, until its version Ecmascript 5, but with the use of constructing functions and prototyping it…
-
37
votes1
answer28542
viewsWhat are the most relevant differences between C# and Java?
I wanted to know the most relevant differences that I should know exist between these two languages. Why am I asking this here? Because normally in my day-to-day when I ask this question, my…
-
37
votes9
answers34793
viewsInput type="password" with password display eye
I need to put a <input type="password"> with that eye of the reveal password, but it has to work as follows: User clicks on the eye and when dropping hides the characters again. Follow an…
-
37
votes2
answers2324
viewsWhy do they say using arroba to suppress errors is bad practice?
In PHP, we can suppress errors using arroba before certain expressions. This can be seen in: What is the function of@at the beginning of PHP expressions I already watched some Hangouts on PHP and…
-
37
votes3
answers39504
viewsHow does the git rebase command work?
What happens when you rebase in the following situation: Branch master with 3 commits (A, B and C). After committing C, I created a new branch with the name design. I committed (D) to the design…
gitasked 9 years, 5 months ago Filipe Moraes 8,737 -
37
votes3
answers8360
viewsProperty x Attribute
One propriedade of a class is not the same thing as a atributo? What’s the real difference between them? Or propriedade is a synonym for atributo or vice versa? Or varies according to the…
oop terminology characteristic-language property attributesasked 9 years, 6 months ago MeuChapeu 5,875 -
37
votes5
answers409
viewsToday (06/30/2015) we will have a second more, what could be the consequences for our systems?
In case anyone doesn’t know, today 30/06/2015 We’ll have an extra second. That is, today after the 23h59m59s we shall have 23h59m60s! This to make the correction of International Atomic Time. I know…
-
37
votes2
answers10986
viewsWhat is JSONP and how does it work?
What is JSONP, how to use and why to use JSONP instead of AJAX?
-
37
votes4
answers14202
viewsHow are prime numbers important in cryptography?
How are prime numbers an important part of some encryption systems? How this process works and what part prime numbers come into?
cryptographyasked 9 years, 8 months ago Carlos Cinelli 16,826 -
37
votes7
answers1131
viewsToo many screens or a screen with too much information?
I see an increasing trend, although this has existed before, to create multiple screens, several steps to perform a single action. Of course, the advent of smaller screens encourages this. But I’m…
-
37
votes2
answers71704
viewsHow to make image responsive
I am working on a site with responsive feature and in it I have a promotions page and I would like the images to follow the browser size change, the maximum size of the image width is 1080px,…
cssasked 9 years, 11 months ago adventistapr 5,498 -
37
votes7
answers2649
viewsShould people’s names be stored in two or just one column?
In business systems, especially international Erps or even in websites we see that the register asks for the last name (last name) and the name (first name). In some cases there is even the middle…
-
37
votes4
answers37758
viewsWhat is the difference between "&&" and "||" and "and" and "or" in PHP? What to use?
I have that question, what’s the difference between && and || and between and and or? Which one should I use?
-
37
votes2
answers7574
viewsDoes Clipper still exist?
Clipper was a widely used language in the 80’s and even most of the 90’s. Especially in some countries like Brazil. In fact many administrative systems still used today were made in it. But it is…
-
37
votes2
answers20576
viewsWhat are the differences between Myisam and Innodb?
What are the main differences between Engines MyISAM and InnoDB and what is the most appropriate situation for the use of each? I know that MyISAM can’t stand it FOREIGN KEY but supports FULLTEXT,…
-
37
votes2
answers9287
viewsExample of ASP.NET Identity using SQL Server
I still only use the FormsAuthentication but I searched and did not find an example, even if minimal, in portuguese to talk about ASP.NET Identity for MVC. I’m using ASP.NET MVC 5 and…
-
37
votes3
answers8575
viewsWhy is it recommended to use the "in" unit instead of "px" for fonts?
I see some sites when defining the font-size use the unit em, in a brief survey I read that it is recommended to use em in sources for being better than unity px. After all, what would be the right…
-
37
votes4
answers1166
viewsWhat are the differences between Generic Types in C# and Java?
I have studied Java for quite some time and am well acquainted with the functioning of generic types in that language: I know that only exist at compile time, that suffer type Erasure at the end of…
-
37
votes8
answers3054
viewsWhen to use Waterfall and when to use Scrum?
There is a clear way to determine when a software development project should be conducted using a methodology Waterfall or use Scrum? What criteria should be observed to choose one or the other?…
-
37
votes4
answers13910
viewsWhat is the best way to represent an Address?
When modeling addresses in an application, naively followed the standard form when representing in the BD (i.e. separate tables for country, state, city, neighborhood etc. - joins everywhere), and…
-
37
votes5
answers22775
viewsWhat is the best way to iterate objects on a Hashmap?
What is the best way to iterate objects into one HashMap in Java to gain access to the key and value of each entry?
-
36
votes2
answers727
views"OMG! A heisenbug!" - Explaining to a layman what a heisenbug is
A Heisenbug is a bug that changes its behavior while being studied [1]. It has its name derived due to the principle that Heisenberg detected that simple "passive observation"* of quantum processes…
-
36
votes3
answers1249
viewsWhy can I create two functions with the same Javascript signature?
I’m having doubts about a certain issue in Javascript, suppose the following scenario below: function teste() { console.log("teste1"); } function teste() { console.log("teste2"); } teste(); In that…
javascriptasked 7 years, 10 months ago Jeferson Almeida 3,076 -
36
votes5
answers991
viewsWhat is UX (User Experience)?
I see some questions on the site with the UX tag about positioning controls, colors, etc. This usually seems to me to be part of the choices of designer (or even the user). What is UX? And how can…
-
36
votes4
answers4928
viewsHow to estimate development time?
I’m starting to try to use Kanban in practice. In this case, I work alone, so I’m trying to get this answer in a context in which there is no staff available, let alone more formal processes found…
software-engineeringasked 8 years, 7 months ago SomeDeveloper 18,074 -
36
votes4
answers39339
viewsHow to apply readonly in a select?
I believe most of you here know the difference between readonly and disabled. Select Readonly The readonly does not apply properly to the select <select name="field" readonly="readonly">…
-
36
votes5
answers4312
viewsWhat does Nan mean in Javascript?
When we have an error in the sum of a number with Javascript, it is returned NaN. Example: parseInt('a') + 3; //NaN What does it mean NaN?…
-
36
votes6
answers34111
viewsWhat is and what is an abstract class for?
In object orientation, what is the meaning of an abstract class? What is its purpose?
-
36
votes3
answers2113
viewsWhy use Git for individual development?
In 2008 I asked an OS question about version control for solo developer and received an excellent response from Jon Skeet indicating the use of SVN. Unfortunately it was recently closed and removed.…
-
36
votes4
answers58476
viewsIF, ELSE IF, ELSE or IF IF IF. When to use, what’s the difference?
It’s a very basic question, but it intrigues me a lot. See the code below: var bola = "redonda"; if(bola == "comestivel") return comer(); if(bola == "liquida") return beber(); if(bola == "redonda")…
-
36
votes2
answers25876
viewsWhat are the advantages and disadvantages of using indexes in databases?
What are the advantages and disadvantages of using indexes in databases?
-
36
votes8
answers309745
viewsReduce image size and maintain CSS aspect ratio
If I have a horizontal image (320x205), <div class="container"> <img src="imagem.jpg" width="320" height="205" /> </div> and I put the CSS rule .container img { max-width: 200px;…
-
36
votes3
answers1858
viewsHow to know the right measure of comments?
I went through PHP, C, C++, Javascript and now I’m working with C#. All this time I’ve always heard that it’s important to have well-commented codes, but I never knew the right measure of comments.…
-
36
votes4
answers10375
viewsDifference between Object, Dynamic and var
I’m running some tests and it seems to me Object and Dynamic perform the same task as opposed to var that once assigned it is impossible to change their type, what is the difference between them?…
-
36
votes8
answers7830
viewsIs giving a "SELECT" before an "INSERT" a safe way of not having duplicate records?
I have a table with a column codigo. I cannot set as primary key. In a system it receives many notifications before it checks with a SELECT to see if that code already exists in the table. If it…
-
35
votes8
answers4394
viewsHow to identify "Capicua" numbers that have 5 digits?
According to this definition of Priberam.pt, a Picua number is: Number also read from right to left or vice versa and to which good luck is attributed. Following this reasoning, Picua would be…
-
35
votes2
answers1065
viewsWhat problem do Microservices solve?
Okay, I read it What is an Microservices architecture? and articles on the subject, I know what it is and how it works. But I still don’t know what problem it tries to solve. What are the advantages…
-
35
votes6
answers24229
viewsWhat is the difference between padding and margin in CSS?
From what I understand I see a retreat from another element when defined the properties left, top, right e bottom. There is a difference between margin and padding in the CSS? An answer with…