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
-
4
votes2
answers94
viewsSpecial characters are not displayed by the console.log
I’m solving a school exercise and I need to print a string with special characters using console.log, however the \ contained in the string are removed when executing the code. In search of the…
-
3
votes1
answer53
viewsIs there any way to shorten the property declaration?
I know in C# it is possible to do this: public string propriedade { get; set; } Is there any short way to declare properties with the procedures Get and Set in Visual Basic? The only way I know is…
-
3
votes1
answer169
viewsAdd classes to software at runtime
Question There is some feature that some language makes available to be able to add at runtime a class to the running software, that is, the software to recognize and thus be able to instantiate…
-
3
votes1
answer89
viewsWhat is the keyword Debugger for in Javascript?
I was browsing through the documentation of Ecmascript and came across the session of Keywords reserved Follows: The following tokens are Ecmascript Keywords and may not be used as Identifiers in…
-
3
votes2
answers296
viewsLogic operations in Python 2.7
When performing logical operations in Python 2.7, I noticed something strange. For example, when doing 5 and 6, are obtained as a result 6. Now, the correct would be 4, because, converting these…
-
3
votes1
answer161
viewsWhat name is given in C# when we use the expression "new {}"?
When I saw the use of expression new {} I remembered Javascript, where I use new Object and {} are equivalent. Just for study purposes, I made some comparisons, to see if Csharp followed the same…
-
3
votes2
answers265
viewsWhat is the globally accepted standard in programming languages?
In the Portuguese language in Brazil we use ABNT if we want to elaborate a highly correct and precise text before the norms, and to make itself understood before the words we use the dialectic. In…
-
3
votes0
answers47
viewsStrange expressions in PHP
Someone explains why this: <?php $world = _("World"); $str = <<<EOF <p>Hello</p> <p>$world</p> EOF; echo $str; ?> generates this: Hello World error-free? what…
php characteristic-language encoding-style syntax certifiedasked 6 years, 9 months ago Julio Henrique 4,352 -
3
votes1
answer61
viewsDifferent ways to create an iterator for values
Is there any difference between creating a iterator for the values of an array using these two forms? let myIterator = arr[Symbol.iterator]() let myIterator2 = arr.values() I’ve run some tests, and…
-
3
votes1
answer167
viewsHow they work and what the concept of streams in PHP is
I would like to know how it works and what the concept of streams is. I’ve used streams to get input, I also know there are others to control output. However, I would like to know the theory and…
-
3
votes2
answers240
viewsHow to return a literal object in an Arrow Function?
How much I try to return a literal object with Arrow Function, makes a mistake: var items = [1, 2, 3].map( i => {valor: i, data: new Date() }) How to get around this in Javascript?…
-
3
votes1
answer149
viewsWhat is concatenative programming language?
I could not understand the definition made by Wikipedia. Concatenative programming language is a programming language in which all valid constructs, or terms, correspond to a function and the…
-
3
votes1
answer141
viewsWhat gains do I get in specifying the type of a function’s argument?
It is now possible to define the type of argument that a function will receive. See this small illustration example: def soma1(v1: int, v2: int): return v1 + v2 def soma2(v1, v2): return v1 + v2…
-
3
votes1
answer85
viewsIs there a loop loop behind the code of a CTE?
I’m racking my brain to understand how such a simple command can generate values from 1 to 100. Is there a loop behind a CTE? For in the code below there is a loop WHERE and not a WHILE. WITH…
-
3
votes1
answer79
viewsWhat are Widening and Narrowing conversions?
I’ve heard that term in type conversions on . NET, but I don’t know if that applies to other platforms and/or languages. I have no idea what these terms are, so what is a conversion Narrowing and a…
.net terminology characteristic-language type-conversionasked 5 years, 3 months ago CypherPotato 9,292 -
3
votes1
answer90
viewsWhat are considered operators in the programming language?
I was wondering if a token is considered an operator when performing an action?
characteristic-language operators syntax language-independent tokenasked 5 years, 1 month ago Hyago M. Vale 33 -
3
votes1
answer2002
viewsWhat is Java 8 Optional for? How to use it?
What is the use of Optional Java 8? How to use this feature? The best answers I found on the site were these... What is the difference between the orelse() and orElseGet() methods of…
-
3
votes1
answer122
viewsNeed to use @classmethod in __new__
I was reading about __new__ in the Python documentation and after search here on the site I saw some examples of implementation and noticed that the signature of the method is: def __new__(cls,…
python python-3.x characteristic-language objects metaclassasked 5 years, 1 month ago fernandosavio 9,013 -
3
votes1
answer81
viewsFunction call <Function>`<Parameter>`
I am currently studying Webcomponents, Polymer, Litelement and so I came across this feature of creating the template using Litelement that I had never seen before:…
-
3
votes1
answer74
viewsWhat is the meaning of the word Soundness in the context of programming languages?
I always see that term when I’m reading about type systems, I’d like to know: What is its meaning within the context of programming languages? What it means a language has a type system Sound? What…
terminology characteristic-language language-independentasked 4 years, 4 months ago Denis Rudnei de Souza 3,686 -
3
votes1
answer61
viewsIs there a difference between list and "Symmetric array destructuring"?
I was looking for a new syntax, which was implemented in PHP 7.1, called Symmetric array destructuring, in accordance with the PHP documentation. Basically, this allows "unstructuring" an array,…
-
3
votes1
answer60
viewsHow can a value be invoked (as a function) at the same time as it contains properties (as an object) in Javascript?
I was left with a question concerning the structure of the Express. How Express can be invoked, as in express(), but can also have in its structure access to the Router property, for example? I…
javascript node.js function characteristic-language objectsasked 3 years, 8 months ago Otavio Fagundes 978 -
3
votes3
answers81
viewsIs it possible to use functions in an arbitrary order in C++?
Apparently, the order in which functions are written matters in C++. Example, this code compiles: #include <iostream> using namespace std; int add_number(int x, int y){ return x+y; } int…
-
3
votes2
answers86
viewsWhy does Node.js accept value assignment with the "Undefined" identifier?
I was conducting a quiz on Node.js until I came across the following question: Which message will appear in the terminal for the following code executed by Node.js: Code (note that it runs outside…
javascript node.js characteristic-language objects undefinedasked 3 years, 6 months ago Cmte Cardeal 5,299 -
3
votes1
answer74
viewsAre "Empty" values within an array not eternal?
In this code snippet: let arr = []; arr[3] = null; The following excerpt arr[3] = null; makes the array size according to the value within the array annotation []. The forEach will be used to work…
-
3
votes2
answers73
viewsIs there documentation in the Ecmascript standard that ensures that an array when passed as a property advisor has a defined format?
The other day debugging a code here on the page I found something peculiar. Like that: let a = {}; let b = [1,2,3]; let c = [4,2,3]; a[b]= 1; a[c]= 2; console.log(a) //{ "1,2,3": 1, "4,2,3": 2 }…
javascript characteristic-language software-engineering documentation ecmascriptasked 3 years, 5 months ago Augusto Vasques 15,321 -
2
votes1
answer64
viewsWhy use nested classes in Ruby?
Back and forth I see things like: class Teste class Foo end class Bar end end Using classes within classes... Can anyone tell me what this is for? It’s not better and more correct to use modules?…
-
2
votes1
answer1827
viewsIs there a difference between bool and Boolean?
Is there any difference compared to the types bool and Boolean? It seems to me that both have the same characteristics. I would like to know if there are differences between these types. Example of…
-
2
votes3
answers636
viewsLess is a programming language, or just something more complex than CSS?
Well I believe that Less may not be a programming language, so what is it? where does it rank? If it really is a programming language what makes it?
-
2
votes1
answer84
viewsWhy does PHP allow you to "declare" $this with Extract?
I was doing some tests (playing) with the function extract and compact PHP. I was seeing how these two functions behaved with the variable $this. Then I performed the following tests: I tried to get…
-
2
votes2
answers90
viewsIn C# is there variadic Arguments (infinite arguments)?
In languages such as PHP 5.6 and Python, it is possible to define "infinite arguments", (in PHP it is called variadic args) in a function/method. For example, it is possible to define a function…
-
2
votes2
answers175
viewsWhat is the difference between local`Function var` and local`var = Function...`?
There are two ways to declare a local function directly. local var = function() end; and local function var() end What’s the difference between them?…
-
2
votes1
answer215
viewsHow many "cases" are possible in a "switch"?
Case 1 Informação.Text = "Olá Mundo!" Case 2 Informação.Text = "Tudo bem com você?" Case 3 Informação.Text = "Que horas são?" Notice that I added 3 (three) cases. Now a question; is there a limit to…
-
2
votes2
answers409
viewsHow does Python keep the same memory reference as a list after resizing it?
We know the objects of the type list, because they are based on dynamic vectors, it has a maximum internal capacity. We also know that when this total capacity is reached and we want to insert a new…
-
2
votes2
answers81
viewsDoubt between block and statement
In that question, what would be the right answer? How Many statements are there in the code Below? Warning: This is a Tricky one. The code is Valid. { println("Step 2"); { println("Step 2a"); {…
-
2
votes1
answer126
viewsWhat is Python’s First-Class?
The first-class Java language are objects, as nothing can be created in Java without the use of classes. In Haskell, following the same previous criterion, the first-class are functions. In the case…
-
2
votes1
answer106
viewsWhat is the purpose of the "[Bind("ID,Title,Releasedate,Genre,Price")]" feature in a method?
I am creating a project in ASP.NET Core MVC for learning purposes. In a certain part of the Microsoft guide when the technique of scaffold to generate the controller and the views corresponding to…
-
2
votes0
answers40
viewsUnsigned variable vs null variable
I have the following codes: String str = null; and String str; If I use one if to check if the variables are null, if will be "called" in both cases. But is there any difference between the two…
-
2
votes2
answers190
viewsHow to know the difference between language construction and function in PHP?
How to identify and what is the difference between a language construction and a function?
-
2
votes1
answer255
viewsOperator overload in C#
I have some questions about overloading operators in C#. What good is? His concept is the same as Overload in Java methods? Is there any practical example of doing such a procedure on a day-to-day…
-
2
votes1
answer704
viewsHow does Python handle common functions and internal Python functions?
I’m looking at Python’s dual functions compared to the common functions that use def to create them. See an example of a common function that converts a number to binary: def…
python function characteristic-language lambda-expressions python-internalsasked 5 years, 8 months ago gato 22,329 -
2
votes1
answer106
viewsMeaning of the parentheses in the instantiation in C#
I can’t understand the need for () to instantiate a class. Retangulo n1 = new Retangulo(); Is it the language’s own thing or has meaning behind?
-
2
votes1
answer85
viewsDifference when using an object and an array being passed as this no apply using the Concat function
I am studying Javascript and came across this difference when using an object and an array being passed as the this in the apply using the function concat. In the first case I use the this as an…
-
2
votes2
answers595
viewsHow does toString work in Javascript?
I really wanted to understand what it’s for and how to use the method toString, why I always search on websites and can’t understand the way they are talking and demonstrating, so if anyone can…
-
2
votes1
answer69
viewsIn R, is there a difference between double and single quotes?
I am starting my learning in R and would like to know the difference between creating strings using single or double quotes. For example: texto1 <- "isso é um texto" texto2 <- 'isso é um…
-
2
votes3
answers104
viewsSyntactic difference between classes and constructor functions in Javascript?
I’m studying Javascript and I noticed that, in the constructor functions, we can declare variables and constants. For example: function Teste() { const nome = 'Bruno'; this.nomeAtributo = nome; }…
-
2
votes0
answers31
viewsIs it possible to create private methods for Python classes?
In Rust, it is possible to create a module where some methods associated with a struct are private. I understand that the utility of this is to make available to the end user of the module only the…
-
1
votes0
answers55
viewsCan XML be considered a programming language?
XML can be considered a programming language? Or a database?
-
1
votes2
answers1967
viewsProgramming language directly with hardware
I will make applications that need a direct connection to the hardware, for example a mini-Programmable robot that receives information from a sensor and sends to the programming treat and return…
-
1
votes1
answer258
viewsWhat are the main programming languages that integrate Sqlite?
What are the main programming languages Sqlite as SGBD in your code?