Most voted questions
150,413 questions
Sort by count of
-
15
votes4
answers15459
viewsWhat is the difference between LIKE, IN and BETWEEN in Mysql?
I’m having doubts about the difference and use of tags LIKE, IN and BETWEEN in Mysql. When to use tags and example?
-
15
votes1
answer5948
viewsWhat is Long Polling?
Whenever I search for "periodic updates" and "real-time notifications" for web applications, I come across the term long Polling. From what I understand, it seems to refer to periodic updates made…
-
15
votes2
answers1147
viewsWhat is Stencil JS?
Nowadays, much is said about the web Components and custom Elements, and along with big names like Angular, React, Vue and Polymer, the name has recently begun to appear Stencil JS. What is Stencil…
-
15
votes2
answers1034
viewsWhy does the absence of the suffix L cause the long variable to be interpreted as int?
When I use a short number for long, as long long1 = 9797;, the number is accepted even without using the suffix L. However, by placing a higher number - as its minimum and maximum values, for…
-
15
votes2
answers5966
viewsWhat are the differences between npm and Yarn?
I’m thinking of migrating from npm to the Yarn, can anyone tell me what the main differences? Is there any considerable benefit between the two?
-
15
votes2
answers2129
viewsWhat does the "|=" operator mean in Python?
I was analyzing a code and came across the operator |=, would like to know what this means, and what is its practical application. Example: x |= y…
-
15
votes2
answers5550
viewsWhat is the difference between website and web application?
It is said that they are different. What is the difference between a website and a web application (web application, web application)? P.S.: It has no Soen…
web-applicationasked 7 years, 4 months ago Piovezan 15,850 -
15
votes2
answers13776
viewsWhat’s the difference between Apache Cordova and Ionic?
I have some questions regarding Apache Cordova and Ionic. Both, to me, seem the same thing with the same purpose, allow the creation of hybrid applications for mobile devices. See that in the ionic…
-
15
votes1
answer27253
viewsDifferences @Onetomany, @Manytomany, @Manytoone, @Onetoone
I wanted to build a database with Java Hibernate as below: Doubts: What’s the difference between @OneToMany, @ManyToMany, @ManyToOne, @OneToOne? And what would your statement look like in Java?…
-
15
votes2
answers39989
viewsWhat are data-target and data-toggle attributes for?
I need to know what those two attributes are for data-target and data-toggle who stay in inputs, buttons and similar in HTML?
-
15
votes4
answers314
viewsHow do I know if I am programing procedurally in object orientation?
How to know if I am programming in a procedural style in an object-oriented language?
oop encoding-style software-project structured-programmingasked 7 years, 6 months ago Piovezan 15,850 -
15
votes3
answers2510
viewsWhen not to return Task in async methods?
Normally, in some time-consuming tasks, I use asynchronous methods: public async Task myLongRunningOperation(int i) { ... } However, in what situations I don’t necessarily need to return a Task?…
-
15
votes1
answer7529
viewsPrim and Kruskal algorithm
The two algorithms serve to generate a Minimum Generating Tree of a Graph. In the Prim Generates a single tree Throughout the algorithm, the set X is always a tree In the Kruskal Generates a forest,…
graphasked 7 years, 7 months ago Don't Panic 4,006 -
15
votes3
answers361
viewsIs it correct to call a method, and pass your null parameters?
For example, I have the event of click of a button calling the method below: //Evento this.serviçoToolStripMenuItem1.Click += new System.EventHandler(this.Nivel_Serv_Click); //Metodo private void…
-
15
votes3
answers2048
viewsWhat is the function of the toString() method?
What is the function of toString() in Java? Why do we do System.out.println(compObjeto) and in the main() (assuming there is an object for the class comp called compObjeto), he does print of…
-
15
votes2
answers410
viewsWhat is competition control?
About the studies I was doing at the time I asked What is a traffic light?, informed me that, in order to better understand this term, I should study about Control of Competition. Could someone…
-
15
votes2
answers1826
viewsHow is a program loaded into memory and then executed?
Imagine that I wrote a "hello world" in C. I compiled and generated an executable, then ran it. The result of the build is a binary, which is actually also a set of instructions that will be…
-
15
votes1
answer3432
viewsWhat is the purpose of Middleware in relation to Apis and Web Applications made in Slim?
I’m reading regarding Middleware no framework Slim, however, I could not understand the purpose of Middleware in relation to Rest Apis or Web Applications built in Slim. I was also talking to…
-
15
votes1
answer3438
viewsvar, const or Let? Which to use?
I recently discovered the existence of let and const but now I’m in doubt which one to use constantly? And why I never see codes with let or const?…
-
15
votes8
answers2223
viewsError: not all code paths Return a value
I would like to understand why my code is causing the error not all code paths Return a value using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using…
-
15
votes1
answer193
viewsWhat is the minimum size of an object in memory?
I received an answer in my question that talks about a overhead that the object has. Every object has this overhead? An object without data also has this overhead? Exists object of size 0?…
-
15
votes2
answers2880
viewsWhat is cyclomatic complexity?
Regarding the complexity of algorithms, I observed that there are several citations about cyclomatic complexity. What is cyclomatic complexity? In which situation is it important to analyze this…
-
15
votes1
answer637
viewsHow to find where is the circular reference in GSON?
Imagine that I have these classes: public class A { private B b; } public class B { private A a; } And then I have this: A a = new A(); B b = new B(); a.b = b; b.a = a; Gson gson = new Gson();…
-
15
votes2
answers286
viewsWhat is the use of the varchar(0) column type?
I saw a question about column length of type Varchar and went to consult a book I have and came across the following statement: The maximum length should be a number between 0 to 255. What is the…
mysqlasked 7 years, 10 months ago user60252 -
15
votes4
answers5515
viewsDockerize Java Web App: Maven + Tomcat + Docker
I have often seen several tutorials from Docker stop up "ready" services, but I see few related instructions on how to use it within the development flow. Mainly on compiled languages as an example…
-
15
votes2
answers1068
viewsIs there a reason for separating the java and javax packages?
In the java documentation, there are several packages organized within the package java and javax, for the most part. There are even some packages that seem to be duplicated, such as java.sql and…
javaasked 7 years, 10 months ago user28595 -
15
votes2
answers2209
viewsWhat is typing style?
On Wikipedia, on the page about C# says about the "typing style" of the language: static and dynamic, strong, safe and insecure, nominative, partially inferent What is typing style? What do the…
-
15
votes2
answers4859
viewsWhat is von Neumann’s architecture?
How it works and why it has become the dominant computer model?
memory computer-science architecture-computers computer-theoryasked 7 years, 10 months ago Marcell Alves 2,453 -
15
votes3
answers83000
viewsFormat currency with mile separator
I have the following code: function numberParaReal(numero){ var formatado = "R$ " + numero.toFixed(2).replace(".",","); return formatado; } function realParaNumber(texto){ var…
javascriptasked 7 years, 11 months ago Nicolas Guilherme 331 -
15
votes3
answers289
viewsCondition Yoda, good reason to use?
Question mainly in PHP, in the Wordpress documentation exists an excerpt which explicitly speaks that it is interesting to use the famous Yoda conditions, although it does not give a good and real…
encoding-styleasked 7 years, 11 months ago MarceloBoni 6,385 -
15
votes1
answer1419
viewsWhat is the advantage of semicolons in programming languages?
I know that in programming languages like Java and C#, the semicolon indicates the end of the instruction, as in the example below, in C#: System.Console.WriteLine("Hello, World!"); However, there…
-
15
votes2
answers1617
viewsWhat is LINQ technology?
Today reading some contest questions, appeared one in which it was LINQ technology. Without delving too much into the research I noticed a number of quotes as: LINQ to SQL LINQ to XML (C#) LINQ to…
-
15
votes2
answers221
viewsFull snippets of commented codes. Why?
I’m learning PHP and use scripts ready to study them, as a complement. However what I often see is whole snippets of commented code. Does anyone know why? Does it have any function? If the project…
-
15
votes4
answers6341
viewsWhat is the Assembler?
I always read things related to the Assembler and get confused. At first, I thought this was a mess and that Assembler was the same thing as Assembly. But it turns out that’s not it. What is…
-
15
votes1
answer311
viewsHow does the switch work behind the scenes?
Seeing those comments on the use of switch is the doubt how it really works and why it is different from the if when only buy for the equality of a single variable against a sequence of values. How…
-
15
votes2
answers5495
viewsWhat are Async methods?
I noticed that most methods in C# have an equal method but with a name async. What are these methods and how they work?
-
15
votes3
answers243
viewsDoes C# have native serialization?
In PHP there is a language proper data serialization feature. I mean: I’m not talking about using JSON or XML, but I speak of a serialization in a format that is proper to the language. For example,…
-
15
votes2
answers310
viewsGo with a ";" at the beginning of the loop, which means
I picked up a code with a code like this: for (; indField > 0 && indMask > 0; ) What does that mean ";" at the beginning and end of the command?…
-
15
votes3
answers7080
viewsIn a list, what is the difference between append and extend?
Num list in Python, there are the methods append and extend. What’s the difference between them and when to use each?
-
15
votes1
answer3299
viewsHow to compare two Arraylist and get the values shared by both?
I own two classes, they are: Filtrocity class: public class FiltroCidade { private int idCandidato; private List<String> cidades; public FiltroCidade(){ } public int getIdCandidato() { return…
-
15
votes1
answer470
viewsHow does the geolocation of a device work?
I’ve been doing some research on how to geolocate a device and I found, briefly, these four types: GPS is the most accurate way to determine positioning, but it is actually energy-efficient than…
asked 8 years, 3 months ago augustoppimenta 527 -
15
votes2
answers2517
viewsWhat are Web Components?
What are web components and how to use this technology ? I would like to understand a little more about this technology and visualize an example with its use.
-
15
votes4
answers8013
viewsSoftware to Create Class Diagram
I would like to know what software is used or if there is an online site to create class diagrams, could someone tell me?
-
15
votes0
answers176
viewsWhat are the microservices?
A lot has been said about these microsserviços, it seems that they have come to replace the architecture SOA. Companies such as Netflix, eBay, Paypal and Twitter migrated their architectures…
-
15
votes1
answer676
viewsWhat is the purpose of the with_jquery function?
I’m learning to write Userscripts (for Tampermonkey) and virtually every example I see makes use of a function with_jquery: function with_jquery(f) { if (!jQuery) return; var script =…
-
15
votes1
answer1287
viewsHow to generate sound in Matlab from a wave?
If I create a sine wave: x=0:0.1:6*pi; is the range of the wave y=sin(x); is the wave with amplitude 1 f=440; is the desired frequency How to generate a sound from this data? I tried to sound(y, f),…
-
15
votes2
answers10671
viewsWhat’s the difference between Union and Union All?
What’s the difference between UNION and UNION ALL? If possible, include examples of use.
-
15
votes2
answers1101
viewsEntity Framework Core x Entity Framework 7
What are the main differences between Entity Framework Core and Entity Framework 7? There are scenarios where one is more suitable than the other. It’s so much version and so much name change that…
-
15
votes1
answer703
views -
15
votes3
answers15156
viewsList all triggers in SQL Server
Is there any command, that lists all the triggers from a database in SQL Server?