Most voted questions
150,413 questions
Sort by count of
-
12
votes1
answer1140
viewsWhy should I use Joda-Time or not?
The question comes mainly based on comment from one of our most active users today and who has already demonstrated extraordinary knowledge in time use, especially in Java. the java.time API would…
-
12
votes1
answer1894
viewsWhat is the real need for SSR (Server Side Rendering)?
It is notorious that the development of web applications for a while has taken a very "different" course. Frameworks such as Angularjs, Vue and Reactjs have become quite popular, as in common they…
-
12
votes1
answer844
viewsWhat is the CSS "display: ruby" for?
The question is basically this: What’s the point of display: ruby in CSS? This attribute is new? When to use it?
cssasked 5 years, 6 months ago Wallace Maxters 102,340 -
12
votes3
answers187
viewsHow do alternative language implementations work, such as Python in the JVM?
I always see people talking about implementations of X languages in another Y language. Like for example: Jruby, a Ruby implementation in Java Jython, an implementation of Python in Java Ironpython,…
-
12
votes5
answers5490
viewsCount the number of months between one date and another
I would like your help to basically count the amount of months between a date and another. I’ll give you an example but what I want is basically just an accountant. Ex: quantity of months between…
-
12
votes1
answer1392
viewsWhy, in C, does a function need to be declared before it is used?
This question was asked on Facebook. Lé is a problem because there is no room for a good answer, there is no way to classify the answers as to their quality properly, much appreciated by the…
-
12
votes1
answer3213
viewsDomain Driven Design, what is the difference between Domain Services, Infrastructure Services and Application Services
Is it correct to state that business rules should be written within the domain service? If yes, as a domain entity is not anemic, it also implements its business rules, then Domain Service would…
-
12
votes1
answer1426
viewsWhat is the Richardson Maturity Model?
In a question I asked about HTTP was commented on the Richardson Maturity Model, from what I understand, it serves to define how semantic your server is relative to HTTP (if you use verbs and return…
-
12
votes1
answer373
viewsWhat are the Rfcs?
In questions related to HTTP protocol it is very common to see reference to one or more RFC... But what they are? Are only related to HTTP? Some are referenced as obsolete, which are the current…
-
12
votes2
answers944
viewsHow do I find a character pattern corresponding to a date in a text?
I have a text in a string, and I want to use some method, like the .find, to find a string in the format "dd.mm.yyyy". I thought I’d use .find("xx.xx.xxxx") but I don’t know what to put in place "x"…
-
12
votes1
answer202
viewsWhat are WET Comments?
What are W.E.T., Python comments? Why are they bad?
-
12
votes1
answer178
viewsAre there advantages to using "use Function" for native PHP functions?
When worked with namespaces, it is normal to see the use of use to import classes outside the local scope: namespace Foo; use Bar\Classe; use DateTime; It is also possible to do the same with…
-
12
votes2
answers617
viewsHow to customize the default <Details> arrow?
I’m using the HTML5 tag <details> so that the user, when clicking, visualizes some information of a given word. For example: <details> <summary>JavaScript (Clique…
-
12
votes4
answers242
viewsWhat’s behind the "go"?
Day I came across a question from a user who wanted to print a string, but with time interval between each character, so I suggested that it use the following code: from time import sleep frase =…
-
12
votes1
answer517
viewsWhat’s Breadth First and Depth First?
When we are dealing with trees and graphs we find these terms. What do they mean and why are they important in using data structures of these types and algorithms that manipulate them? What I gain…
-
12
votes1
answer161
viewsWhy does 2*i*i tend to be faster than 2*(i*i) when i is integer?
The two multiplications, 2*i*i and 2*(i*i), are equal and must generate the same result, what changes is only the order that the multiplications are made, but apparently are treated differently by…
-
12
votes1
answer415
viewsWhat are false positives in programming?
Now and then I see this term related to programming and, in order to understand it better, I went to Google but only found issues related to health and computer antivirus. In programming I have a…
terminologyasked 6 years, 1 month ago Sam 79,597 -
12
votes3
answers1020
viewsPartially paint border in CSS
I wonder if there is a way in css or even Javascript to fill only part of the border at a time, as if it were an animation in which the edge is filled little by little and have control of how much…
-
12
votes1
answer294
viewsMandatory language incorporating functional elements
Yesterday I was reading an answer about the differences between the paradigms functional and imperative, and I came across this statement: Functional Programming and Object-Oriented Programming.…
c# characteristic-language functional-programming paradigms imperative-programmingasked 6 years, 2 months ago Pedro Gaspar 3,289 -
12
votes2
answers1125
viewsShould I encrypt the password before sending it to the server?
I am in doubt if I should encrypt a password before sending it to the server, and on the server save the hash in the bank, or if I should encrypt only on the server...
-
12
votes2
answers4482
viewsWhat are refresh token, access tokens and Grant type?
I was researching security in REST Apis and found the terms refresh tokens, access tokens and Grant type referring to how tokens work and how the customer requests the features What they are and…
-
12
votes1
answer261
viewsWhat should the server return in an OPTIONS request?
Before sending any request to the server, browsers automatically send a request of the type OPTIONS to know some server information What information does the server need to send? Only CORS headers?…
-
12
votes1
answer193
viewsWhat is the purpose of Object.is?
I realized that Javascript now has the Object.is and, according to the documentation: Object.is determines whether two values correspond to the same value. Some doubts have arisen about this: Why…
-
12
votes3
answers6427
viewsStyle input type='number' to change arrows
How to customize the input type='number' as the image below? Click on the +/- sum or subtract the number inside the box. Currently my code is: .bedrooms = f.input :bedrooms, :label => false, as:…
-
12
votes3
answers10029
viewsinnerHTML VS innerTEXT
What’s the difference between using the innerHTML and the innerText in Javascript? If I want to change the content of TEXT_NODE, Which one should I use? For example: <p id="p1">I also wrote a…
-
12
votes2
answers188
viewsIs there a difference in performance between "new" and "clone" in PHP?
What is the advantage of using the clone instead of the new to create an object in PHP? I know that to use the clone it is necessary to pass an instantiated object. But because it is not necessary…
-
12
votes1
answer398
viewsWhy does the SQL language vary from DBMS to DBMS?
I was used to using SQL for Web projects, always using Mysql. One day I had to write a C++ program that used databases. At first I chose Sqlite but needed other computers in the network to connect…
-
12
votes2
answers213
viewsHexagon Grid - return neighbors
I am writing a simulator of a game called Iso-Path. It consists of a hexagonal grid, being itself formed of hexagons You can see what I’ve done on this link But I stopped in time to catch the…
-
12
votes2
answers138
viewsIs it necessary to use semicolons at the end of a "single expression" in PHP?
Example scenario: Let’s assume I have a page that’s generated by includes, and it even has a loop: <? require_once 'classes/classe1.class.php'; ?> <html> <head> <? include_once…
-
12
votes2
answers295
viewsHow to create a simple markdown with PHP?
I would like to create a simple markdown, for bold and italic for now only, for example: **foo** flipped <b>foo</b> __bar__ flipped <i>bar</i> Of course some details are…
-
12
votes1
answer231
viewsWhen is it useful to separate state of behavior?
In object orientation there is the concept of encapsulation: meet in the same state class and the functions operating in that state. But there are situations where it is useful to separate state and…
oop software-engineering ddd software-project encapsulationasked 6 years, 7 months ago Piovezan 15,850 -
12
votes1
answer449
viewsWhat’s this 'in' in C#?
In the new version of C#, version 7.3 the parameter changer was introduced in, but I didn’t understand its functionality. By name, it seems that it is used as "input" for the values, contrary to the…
-
12
votes2
answers355
viewsHow to create a fallback when importing CSS files?
In How I should work on Bootstrap and Javascript links?, about how to serve the media files, whether via CDN server or local server, it was answered that it is interesting to keep both: initially…
javascriptasked 6 years, 8 months ago Woss 73,416 -
12
votes2
answers214
viewsWhat is the difference of var between Kotlin and Java?
With the release of Java 10, the possibility of using the var: var list = new ArrayList<String>(); I’ve seen the difference between val and varin Kotlin, but I would like to know more about…
-
12
votes1
answer3091
viewsWhat is "await" for in Python?
I’d like to know what it is and what it’s for await in Python. Has something to do with threads?
-
12
votes4
answers4581
viewsHow to multiply in Python without the multiplication operator?
I have a task and I’m having trouble completing it. What I did was this:: m= int(input('Digite o primeiro fator:')) n= int(input('Digite o segundo fator:')) def multiplica(numero): while m > 0:…
-
12
votes3
answers844
viewsHow to initialize a list of empty lists?
Using Python 2.7.12 I need to create a list as follows: lista = [[],[],[],[],.........,[]] This list needs to have a very large number of lists within it (so the .....). I found around the following…
-
12
votes5
answers35616
viewsSELECT condition WHERE with multiple values in the same column
I have two tables in my bank and perform JOIN with them. A table is a list of people and the other characteristic list of that person. By logic there is only one person and each person can have…
-
12
votes3
answers1529
viewsWhat technologies can I use to create a PWA
I’ve seen it before What are Progressive Web Apps? and the google documentation, but I’m still in doubt: What are the available technologies that can be used to create a progressive web application?…
-
12
votes1
answer166
viewsWhat would a Nuget be?
I noticed that in various programs and in various locations they are used Nuget, I myself had to use one, but used without knowing the definition of it, I can say that it would be an extension?…
-
12
votes2
answers1088
viewsHow to work efficiently with branch in git?
I’m trying to define a working scheme to keep my repository on Github organized, but it is difficult to reach a solution. My "idea": I thought about keeping the branch in the remote repository…
-
12
votes5
answers3081
viewsHow to decide between using for or foreach?
When should I choose between using the for or foreach? They both do pretty much the same thing, and I always wonder if I’m using the "correct"... My doubt increases when people say to use the for…
-
12
votes4
answers2933
viewsDifference between operators && e ||
I’d like to know the difference between: window.RM = window.RM || {}; And: window.RM = window.RM && {}; Perhaps the examples are not correct, but I would like to know the difference between…
-
12
votes2
answers1470
viewsWhat are the pointers?
I’ve come across this in several languages, mainly C and C++, but I’ve never understood what it is, how it’s used, and why it exists. I found out unintentionally that it also exists in C# and it’s a…
-
12
votes1
answer560
viewsWhat is the operator '...' in Javascript?
I saw some uses of ... but I’m not sure what it does. Example: var a = [1, 2, 3]; var b = [4, 5, ...a]; What’s that operator’s name and how it works?…
-
12
votes2
answers360
viewsWhy are primitive types with floating points divided or multiplied by certain multiples of 10 displayed in scientific notation?
In this answer we can see that Java has a peculiarity when displaying the result in certain types of operations with primitive types that have floating point, such as division by multiples of 10,…
-
12
votes2
answers605
viewsWhat are the main functions for creating a minimum reproducible example in R?
What are the main functions to create a reproducible minimum example in r? More specifically, I would like the answers to address the following topics:: What are the functions to ensure that the…
rasked 7 years, 1 month ago Carlos Cinelli 16,826 -
12
votes1
answer3245
viewsPseudo elements ::after and ::before work on which input types
I wonder if there is any documentation or article that says where exactly we can use ::after and ::before I’ve seen that tag <img> for example does not work. I believe it does not work because…
-
12
votes5
answers1019
viewsGet piece of text inside a javascript word
I need to check if there is a specific piece within an excerpt of a javascript word. For example, my word is John, I need to check if Jo contains inside her. I tried to do it with the index but it…
javascriptasked 7 years, 1 month ago gabrielfalieri 1,231 -
12
votes2
answers5134
viewsWhat is the meaning of the term "canonical" in the context of programming?
I have seen a lot of this term in several places with regard to programming area. For example, I’ve seen something like below, right here in Sopt: "a canonical response is needed" The dictionary…
terminologyasked 7 years, 1 month ago Sam 79,597