Most voted questions
150,413 questions
Sort by count of
-
13
votes1
answer354
viewsPerformance Webpack Build.js
I’m starting with Webpack. It compiles all javascript and css files into a single file Build.js, Bundle.js, whatever it is... In the end it generates a fully minified file using the Node command…
-
13
votes5
answers1023
viewsWhat is the difference between starting an empty variable and starting directly with the value?
I see things like: $arr = []; $var = ''; $var; $var = null; What’s the difference between starting the variable like this: $var = ''; $var = 'teste'; And start like this: $var= 'teste';…
-
13
votes3
answers1488
viewsUsing Lower() in a list of lists in Python
If I have such a list: Lista = [['DE','DO','OU'],['AE','YHH','OO'],['OW','LA','FOR']] and I want to leave her like this: Lista = [['de','do','ou'],['ae','yhh','oo'],['ow','la','for']] How do I do…
-
13
votes2
answers237
viewsIs it correct to adopt a design specification for an entire project?
I see many frameworks, migrating to a visual based on design material and using flexbox to contain the elements, among them. Bootstrap Materialize Quasar Foundation UI material Whereas they are UI…
-
13
votes2
answers262
viewsCheck "in" return change the Python result
It is known that to check whether a particular item does not belong to a list it is sufficient to use the operator in: values = [1, 2, 3, 4, 5] if 9 not in values: print("9 não pertence à lista.")…
-
13
votes0
answers16554
viewsFormat value in cash while typing with pure javascript
There are several questions in the OS about coin formatting, but most of them do not format while a number is typed correctly. How can I format the numbers while typing, passing in these cases…
javascriptasked 7 years, 4 months ago fsi 505 -
13
votes2
answers166
viewsWhat is the impact of changing the keypress event so that it interacts a 'level up' than the key would do natively?
A simple example, no code required: If I press CTRL + F, automatically the browser opens a search bar on the page. I made sure that by pressing CTRL + F it points to an input within the system. I…
-
13
votes2
answers265
viewsWhen is a default argument evaluated in Python?
Let us consider the following class: class Foo: def __init__(self, values = []): self.values = values Note that we are using an instance attribute and not a class attribute, but see the following…
-
13
votes4
answers30259
viewsRemove accents (javascript)
I have this script below with the function toLowerCase(); I would like to add another function to the function toLowerCase(); How would the line look with the two functions together? <script…
javascriptasked 7 years, 4 months ago Miguel Silva 437 -
13
votes1
answer236
viewsIs it possible to interact a C# code with code external to . NET?
How to call code written in another language that is not part of . NET, for example the language C? How this interaction takes place? How to call native Windows functions?
-
13
votes2
answers6409
viewsWhat is a stream?
In both PHP and C#, languages I’ve been using in my day to day life, I’ve come across a common term: Stream. Whenever I hear the word Stream, the first thing that comes to mind is Youtube, among…
-
13
votes1
answer265
viewsWhat does "Run on the JVM" mean?
Languages such as Scala, Kotlin, Clojure and others "run on JVM". What does that mean? What the JVM provides for them? The extent to which they are "dependent" on the JVM? They only run on the JVM?…
-
13
votes1
answer10486
viewsWhat is the difference between the PUT method and the PATCH?
Some teach that to upgrade uses the PUT and others teach using the PATCH. So, after all, what is the difference between the PUT method and the PATCH? When I must wear one and the other?…
-
13
votes2
answers699
viewsWhat would be a tree and a forest?
Sometimes here I found here in the OR, questions about trees, graphs and even forests, in the most diverse languages, but In programming, what would a tree be? And what would a forest be? It would…
-
13
votes1
answer515
viewsIs scripting language always built on another language?
I was reading more about what characterizes a language of script. Namely: What is a scripting language? And the question itself quotes the languages I know of script PHP, Python and Ruby, possibly…
-
13
votes2
answers861
viewsWhat is the best practice of styling an Email body?
I’m at the stage of developing a welcome email. I would like to know the most correct and used practice of adding the style in my email. My question is: should I use CSS inline, embedded or…
-
13
votes4
answers2530
viewsWhat are Traffic Lights in Programming?
In a series of questions I asked to ask questions about parallelism, asynchronism, threads and the like, I came across several new knowledge, and also several new terms. In that reply for example,…
-
13
votes2
answers1320
viewsWhat are the differences between Kanban and Scrum?
It seems that nowadays it is impossible to work in programming and not know the agile methodologies developmental. I am aware that both are used to improve team performance and integration when…
-
13
votes2
answers2425
viewsWhat is a state machine?
I’m doing a tour on the site, researching on asynchrony, threads, parallelism and the like. Upon finding this reply, I noticed that the author makes a quote about state machines. I didn’t understand…
-
13
votes3
answers569
viewsWhat are the consequences of programming in 32 bits or 64 bits?
It would only be the memory capacity that is limited to 4 GB in 32 bits? I need to have specific concerns? I know what’s different about C, I want to know about C#.
-
13
votes2
answers640
viewsWhat’s the clip property for?
I was taking a look at a code where I taught some techniques to create a responsive table. I came across the use of property clip, followed by the value rect(0 0 0 0);. Then I had this doubt: What…
-
13
votes1
answer13920
viewsHow does the "Referrer Policy" header work?
I was doing some tests using Opera browser (same engine/engine as Chrome) and HTTP request sends this: Referrer Policy: no-referrer-when-downgrade For example in http://localhost get this: Request…
-
13
votes1
answer2376
viewsWhat is non-blocking I/O?
What is non-blocking I/O? What are the uses of a language with non-blocking I/O? What are the practical applications of non-blocking I/O? It certainly doesn’t come into question of opinion, so I…
terminology characteristic-language language-independent ioasked 7 years, 11 months ago Asura Khan 2,474 -
13
votes1
answer14872
viewsWhat is Hashcode and what is its purpose?
I have observed that the use of hashcode is used in comparisons, but what does the term mean? Its use in programming is specific in comparison?
-
13
votes3
answers614
viewsWhat happens to three-digit hexadecimal colors?
I’ve always been curious to know what happens in a 3-digit hexadecimal expression of a CSS color. For example, you have 000 and 000000, which is the black color. And fff or ffffff which is white.…
-
13
votes2
answers6067
viewsWhat’s the difference in instantiating, initializing, and declaring a variable?
Many articles on the Internet refer to these verbs, regardless of the programming language. But sometimes they are all confused or exchanged, which creates a lot of confusion. Which means…
variables terminology variable-declaration language-independent initializationasked 7 years, 11 months ago vinibrsl 19,711 -
13
votes2
answers2314
viewsTranslation of static website content into 4 languages
What tool have you used to release the option of translating content from a static HTML site to another language? Some jquery plugin, some api? What is the best practice currently aiming at…
-
13
votes1
answer4028
viewsWhat does Handshake mean?
While studying about Websocket, I read the following sentence: Its only relation to HTTP is that its Handshake is interpreted by HTTP servers as a request for upgrade. In this context, what…
-
13
votes3
answers9451
viewsWhat is the meaning of the sign || '-' || in SQL
I am performing a query in an Oracle database and come across this symbology || '-' ||, in my query. I’d like to know the meaning? Select xf0cdloc || '-' || XN4CDEMP AS LOCOMOTIVA, From Trem…
-
13
votes2
answers234
viewsReference loss in function call
Setting: class ClassName { constructor(service, params) { this.service = service; this.params = params; this.save(params.id); } save(id) { const { service, onSuccess, onError } = this; return…
-
13
votes3
answers2628
viewsHow to optimize this function for Fibonacci sequence?
On the website codility there is an initial challenge for you to refactor this code: var yourself = { fibonacci : function(n) { if (n === 0) { return 0; } if (n === 1) { return 1; } else { return…
-
13
votes2
answers722
viewsHow index selectivity works
Reading about indexes I recently came across the term "selectivity". Some places said more selective fields should come first on the index, others say no or that it depends. I have the following…
-
13
votes3
answers890
viewsIs it wrong to use more than one <thead>, <tbody> or <tfoot> in a table?
I have a table that gets a certain formatting when the elements have a tbody. Because of this formatting, I thought to use the tbody twice on the same table, but I wondered if this would be valid.…
-
13
votes1
answer832
viewsWhat are statements and operators?
I usually access the MSDN often and I see a lot of these terms. What are statements and operators? What differentiates them?…
-
13
votes4
answers21920
viewsHow to transform string into character array?
It is possible to transform string into character array? I only found it with the method .split(param); I’d like to convert a string in a array of characters, one character in each index. I would…
-
13
votes2
answers2784
viewsWhat is the argument limit of the IN operator in SQL Server?
In Oracle are 1000 arguments, which limit in SQL Server?
-
13
votes3
answers4398
viewsDifference between Promise and callback
I would like to understand a little better the advantages of using Promise! today I use callback function. Ex: function a(callback) { $.ajax({ ... }) .done(function(data){ callback(data) })…
-
13
votes4
answers21837
viewsWhere is Notepad++ "Plugin Manager?
I just installed Notepad++ (64bits) and it seems to me that something is wrong, because the item "plugin manager" does not appear? On google I did not find any reference on this, just indications of…
notepad++asked 8 years, 2 months ago Camila Yamamoto 1,302 -
13
votes4
answers320
viewsWhat is .= in php?
What is .= in PHP? I’m wondering if it’s a concatenation or multiplication.
-
13
votes2
answers1270
viewsWhy is the NAN constant evaluated as True when testing it with is_numeric?
I was doing a test with the constant NAN in PHP, because until then I had never used it. I did tests out of curiosity. I noticed something interesting. When calling the function is_numeric in NAN…
-
13
votes2
answers3271
viewsWhat is the difference between Listview and Recyclerview?
What difference between ListView and RecyclerView on Android? From which Api to RecyclerView is available? It is valid to use the RecyclerView and not the ListView?…
-
13
votes1
answer28267
viewsWhat is the Turing machine?
What is this such Máquina de Turing that made Turing be recognized as the "Pai da Computação"? How it works and how it reads a binary tape?
computer-theoryasked 8 years, 3 months ago guijob 1,809 -
13
votes3
answers8989
viewsWhat is "build" and what is its relationship to the IDE?
In the area of software development has a term that appears very often that is the build. It always comes to me when I read about Android Studio and other development tools (usually Ides), I think…
-
13
votes3
answers849
viewsHow to make a flex container have the width of internal Ivs?
Good afternoon, I’m creating a layout with height:100% where I have 2 groups, and within each group I line up the DIVs vertically and if any DIV did not fit in the height maximum or there is resize…
-
13
votes2
answers1435
viewsA game-specific programming language
Is there any programming language specific for the development of video games? A language that is high-performance optimized to use media processing instructions, which is linked to GPU? I know a…
-
13
votes3
answers2365
viewsHow to verify if connected in the database?
how do I check my code PHP + PDO successfully connected to the database Mysql? With code like this it works: <?php /* Connect to a MySQL database using driver invocation */ $dsn =…
-
13
votes3
answers4045
viewsHow to add <li> dynamically in <ul> with jQuery?
I’m bringing back notifications and need to dynamically add the path to them, how do I add a <li> to each element of the response? Javascript $(document).ready(function () { $.ajax({ url:…
-
13
votes3
answers41730
viewsDifference between Visual Studio Community, Enterprise and Code
Intending to learn how to program C# and .NET for web and I came across a situation at the time of downloading the Visual Studio. I don’t know exactly which version to make download. What real…
-
13
votes1
answer545
viewsHow does ES7 async/await work?
ES7 allows you to use a new syntax to work with Promises known as async/await functions. How I can use these functions and how they are compared to functions that use Promises to process sequential…
javascript asynchronous ecmascript-6 promises async-awaitasked 8 years, 5 months ago Gabriel Gartz 5,624 -
13
votes1
answer333
viewsWhy are arrays covariant and generic are invariant?
Arrays in Java are covariant, that is, it’s perfectly cool to do something like: Number[] meuArray = new Integer[10]; Generic types are invariant. The line below does not compile: List<Number>…