Most voted "characteristic-language" questions
Use this tag in questions relating to the operation of some feature of a programming language (Feature language), such as its type system, supported constructs, etc. Do not use it if the focus of the question is simply its use in solving a distinct problem.
Learn more…402 questions
Sort by count of
-
20
votes8
answers17275
viewsDifference between while and for
What’s the difference between while and for, if the two are loops of repetition, if with the two I can do the same things either conditioning a halt or iterations of variable, because there are…
-
20
votes1
answer1007
viewsWhat programming languages support Linux and Windows?
The question is already in the title, however to make it clearer: What languages I write a single code in, and run on both Linux and Windows? Example C. Except some commands like system("cls");…
linux windows characteristic-language operating-systemasked 8 years, 12 months ago Guilherme Lautert 15,097 -
20
votes2
answers264
viewsHow does PHP handle type declaration?
Still in PHP 5 it was already possible to make the declaration of types in arguments of function. Type statements Type declarations allow functions to require parameters to be of certain types when…
-
19
votes6
answers2856
viewsCan not use "{ }" IF keys in PHP cause problems?
Usually for checks that modify only one line I have avoided the use of keys, because PHP accepts this method, but I rarely see codes from other programmers like this... Examples My method…
-
19
votes1
answer750
viewsWhat is "idiomatic expression" in programming?
I have come across the term "idiomatic expression" or "more idiomatic form". Just search the site you will find several references: /search?q=idiomatica After all, what is "idiomatic expression"? It…
-
19
votes3
answers6965
viewsTyped and untyped programming languages
Why (I don’t know if it’s a rule) are interpreted programming languages (e.g., PHP) not typed and compiled (e.g., C) typed? (Java in this case is a hybrid). Why do they have these differences?…
-
18
votes1
answer540
viewsWhat are HTML entities?
I often see some pretty crazy codes in the middle of tags HTML, and searching falls under that term entities, then the doubts arose: What are Entities HTML and when should I use them?…
-
18
votes1
answer2673
viewsWhat makes Python a multiparadigma programming language?
Here on this Wikipedia page cites some examples of multi-language such as C++, Groovy, Oz, Ruby, Scala, Swift, Groovy and even Python. Particularly I did not find so objective the explanation. What…
-
18
votes1
answer489
viewsWhy does the compiler require local variables to be initialized and fields not?
The question Why a variable with default value is usually declared? addresses the question of whether or not to initialize a variable before using it. However this option becomes mandatory when it…
-
18
votes1
answer155
viewsWhat justified adding the syntax for positional-only parameters to Python version 3.8?
As stated in What’s New In Python 3.8 to PEP 570, that defines the syntax for only positional parameters, has been implemented. According to PEP 570 it will be possible to use the bar in defining…
-
18
votes1
answer201
viewsWhat does _ in C#mean?
I was servicing a system until I came across the following code: object auth; var authContext = HttpContext.Items.TryGetValue("SystemQueryContext", out auth); var result = await…
-
17
votes2
answers2414
viewsWhat is the purpose of the "id" and "name" properties of an HTML tag?
When we create a tag in HTML we can assign values to its properties, however, the property id and name, I realize that they are widely used and generally the values that are assigned to them are the…
-
17
votes2
answers319
viewsWhy are the other types of variables not replaced by Dynamic in C#?
I was studying C# and I came across a type of variable dynamic, which, as I understand it, accepts any value I enter. Unlike other variables, for example: If I declare how int, I have to type one…
-
17
votes3
answers1870
viewsWhat is metadata for HTML documents?
I’m reading a book about HTML. Page 19 lists the Categories. Each element in HTML may or may not be part of a group of elements with similar characteristics. And then the categories of these groups…
-
17
votes4
answers936
viewsWhy is the use of Dynamic something to be avoided?
My company works with development, it is a company practice that all codes made are reviewed by another person before they are approved in pull request. Usually my codes have only a few details to…
-
17
votes1
answer632
viewsWhat are the main differences between Kotlin and Scala?
It is already clear differences between Kotlin and Java, such as: More concise (up to 40% code reduction) Null Safety Type inference Data class Interoperable with Java However, all these features…
-
17
votes1
answer1876
viewsWhat is Global Interpreter Lock (GIL)?
One of the first things you read when you start studying about threads in Python (Cpython) is about the Global Interpreter Lock (GIL). What exactly is GIL? What are its practical implications for an…
-
17
votes2
answers653
viewsHow does Python treat the "Yield" command internally?
Was reading on command yield from Python, and it seems to me that this command creates a Generator which would be a kind of data list in which the return on value occurs over demand, as if the last…
-
17
votes1
answer5166
viewsWhat are the reasons to choose between camelCase and Pascalcase in method names?
First, I’m not interested in what you like best or what you use in your language, I want to know the motivation to choose one or the other pattern in a hypothetical language. Second, this is a bit…
characteristic-language method encoding-style ux language-designasked 5 years, 5 months ago Maniero 444,682 -
16
votes3
answers7424
viewsWhat are the main differences between VB.NET and C#?
In addition to syntax, what are the main differences between these two languages? Is there any difference in performance between them? Or is there any case where it is extremely advisable to use one…
-
16
votes1
answer677
viewsWhat is undefined behavior, unspecified and defined by implementation?
What is the difference between the three terms "undefined behavior", "unspecified behavior" and "behavior defined by implementation"? Why do they exist in these forms?
-
16
votes2
answers303
viewsWhat are computed names ("dynamic" structuring) in Javascript?
Reading the documentation of dismantling in Javascript, I found the section below: Computed object property and destructuring names Computed property names, as in literal objects, can be used with…
-
15
votes3
answers1089
viewsWhat are the pros and cons of indexing vectors by zero or one?
Most programming languages I know have zero as the first index of a vector. I know that several programming languages have content um as the first vector index. Until recently I thought this was…
-
15
votes3
answers2478
viewsHow do C graphic libraries work?
How graphic libraries work? For example, the standard C execution mode is the application console, as from that only text can create the graphical libraries where you understand pixel instead of…
-
15
votes1
answer2699
viewsHow does list assignment work using range?
I was reading a documentation on the internet when I came across the following code: sys.path[:0] = new_sys_path I was curious, because I had never seen intervals used on the left side of an…
-
15
votes2
answers1287
viewsWhat is the purpose of a static constructor?
I’ve always used builders as follows: public MinhaClasse() { //Algo ... } However I found that in C# it is possible to create a static constructor as follows: public class MinhaClasse { public…
-
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
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
answers399
viewsHow does Python structural matching (match declaration) work?
Recently, the Pattern matching structural version was introduced 3.10 (still in alpha) Python. For this, the keywords match and case. Were, in the notes of release, included several examples, among…
python python-3.x characteristic-language pattern-matchingasked 3 years, 8 months ago Luiz Felipe 32,886 -
14
votes2
answers3574
viewsWhy is set theory so important to computation?
For computer theory, formal languages among other areas as well as for programming (development) set theory is always present, I know that mathematics is strongly linked to computation, but why do…
-
14
votes2
answers8743
viewsWhat is the difference between __str__ and __repr__?
What is the difference between the methods __str__ and __repr__? They both do the same thing?
-
14
votes3
answers30488
viewsWhat is the difference between "{ }" and "[ ]" brackets?
The JSON file format uses two types of symbols to organize the data in its structure, they are: Square brackets: [ ] Keys: { } In them it is possible to insert values of several types, see this…
-
14
votes1
answer1573
viewsWhy do the arrays index and other sequences start at zero?
Why the array does not start with 1? There is some technical reason to have adopted 0?
c array characteristic-language mathematics computer-scienceasked 7 years, 9 months ago Maniero 444,682 -
14
votes1
answer994
viewsWhat are Raw Types?
Reading and studying a little about Kotlin, I found the following statement: The Raw Types are a big problem, but for reasons of compatibilities they had to be maintained in Java, but Kotlin for…
-
14
votes5
answers2296
viewsWhat good is a C#?
I saw a class in C# that was stated like this, in a reply I read in Soen: public sealed class Link { // Resto do código } What is the key word for sealed in the above case?…
-
14
votes1
answer335
viewsWhy don’t we have a 128-bit Integer?
We have 16, 32 and 64 bit integer values. short, int and long, respectively. But why don’t we have 128 integers? Or 256 integers? I ask this in case we need to keep an extremely large number that…
-
14
votes1
answer313
viewsWhat are the precautions to be taken when using top-level await in Javascript?
To proposal for the top-level await has just been completed, which means that this feature will soon be part of the language. As far as I know, this feature will only be available when executed in…
-
13
votes1
answer767
viewsWhy does PHP allow you to create identifier names with special characters?
Typically in programming languages and databases, identifier names (variables, functions, classes, methods, tables, fields, etc.) must start with a letter or underline, numbers can come in sequence…
-
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
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, 9 months ago Asura Khan 2,474 -
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
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
votes2
answers775
viewsWhat are Truthy and falsy values?
What is the difference of true and false for Truthy and falsy in Javascript? These are just values true and false of "third parties", for example of a variable?…
-
13
votes1
answer816
viewsHow to make an excellent C++ program without C traces?
As a beginner in C++ I asked some questions here and was warned a few times by @Maniero that what I was doing was C and not C++. The problem is that C++ allows us to use many things similar to C. So…
-
13
votes1
answer300
viewsWhat is an asynchronous iterator in Javascript? What is its relation to "for await" loops?
What are asynchronous Javascript iterators? What is their function and what are the differences between the "conventional" iteration protocol? What is your relationship with for await .. of? It is…
-
13
votes2
answers246
viewsWhat does "!!~" mean in Javascript?
I am studying Javascript and came across the following code: manageLag(selected) { if(!!~this.selections.indexOf(selected.url)) { selected.at += 5 return; } this.selections.push(selected.url) } I…
-
12
votes2
answers1619
viewsHow do CSS rules take precedence?
I know that if two CSS rules apply to the same element, the more specific one will have priority: p { color:red; } /* Todos os "p"s serão vermelhos... */ .umaClasse { color:yellow; } /* ...exceto os…
-
12
votes1
answer4119
viewsWhat is a multi-paradigm language?
The question title already sums up everything I want to know. Visual Basic . NET, C#, Boo, C++ are multi-paradigm languages. What is a paradigm? And a multi-paradigm language?
-
12
votes1
answer717
viewsWhat are the main differences and advantages between PHP and Hack languages?
I see that the syntax of both are quite similar, but surely they have their differences, after all they are not one. What are your differences? I’ll put some items I think are important for the…
-
12
votes1
answer208
viewsIs there any error suppression mechanism in C# similar to the PHP arroba?
I’m studying C#, but I’m used to programming in PHP. I know that in PHP it is possible to delete some error messages by putting the @ (arroba) at the beginning of the expression. For example, if I…