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
-
7
votes1
answer127
viewsWhat is the use / reason for the existence of new Object();?
While I was studying a little bit more about objects, I came across things like new String , new Number, etc.. I got curious, and I went to learn. I understood the functioning, despite having my…
-
7
votes2
answers595
views"Operator" square brackets [] when creating the arrangement in C
Whenever I look for what the operator clasps [] makes, even in the tables that show all operators in C, appears that it serves to access an element of an arrangement. However, it is not always that…
-
7
votes1
answer146
viewsWhat is the purpose of the keyword "export"?
I created a angular design to start my learning and I am currently using Typescript to do the App. However, a question arose regarding the keyword export (if it really is a keyword). I used it to…
-
7
votes1
answer88
viewsWhat is the advantage of PHP objects being passed by default references?
From PHP 5 an object variable no longer contains the object itself as a value. It contains an object identifier that allows the object’s "accessors" to find the real object. I recently went through…
-
7
votes1
answer404
viewsWhy are certain languages faster than others?
I’ve heard a lot about how C is faster than C++ and Java, Lua is the language of script faster, among other examples. What makes certain languages faster than others? What defines a language as…
performance characteristic-language language-independentasked 4 years, 12 months ago NinjaTroll 1,752 -
7
votes1
answer850
viewsHow does the "infer" of Typescript work?
I know it was introduced in language version 2.8 (see here), but even though I read these release notes, I still can’t understand the workings of infer. How it works? What is your real goal?…
-
7
votes2
answers165
viewsWhat is the purpose of ? (question mark) in calling a function?
I’m studying the module Enum of the Elixir language in which it provides various functions that allows working with enumerables, However, one thing caught my attention in the call of some of the…
-
7
votes2
answers191
viewsWhat are the main differences between prototype-oriented programming and class-oriented programming?
After learning a little more about Javascript, I realized that even though I have a building class, classes (in fact, as in C# or Java) do not exist in Javascript. This is nothing more than…
oop classes characteristic-language language-independent prototypeasked 4 years ago Luiz Felipe 32,886 -
7
votes2
answers641
viewsWhen "Return" is different from "Return await" in an asynchronous function in Javascript?
I was doing a review of MR and saw a test similar to this: it('...', async () => { return await new Promise((resolve, reject) => { request(app.getHttpServer()) .get('...') .send({ /* ... */ })…
-
7
votes1
answer528
viewsWhat does "?" interrogation mean in accessing the properties of an object?
I have already used ternary operators to carry out this type of verification: route.params.userUpdated ? route.params.userUpdated : undefined; But I’ve never seen anything like it:…
-
7
votes1
answer86
viewsHow does async/await work in Rust?
The idea of async/await has become common in several languages (C#, Javascript etc). It seems that Rust recently (in the 2018 edition of Rust) adopted the idea of async/await, together with the…
-
7
votes2
answers217
viewsWhat is the Mint language?
When dealing with Javascript frameworks we realize that there are a multitude of options, with new ones popping up all the time. Angular, Vue, React, Svelte, Stencil and others I can’t even…
-
6
votes2
answers654
viewsPointer logic
In C++, you can do the following: int variavel[10][10]; int** variavel; But when I want to create an array 2d, where I can have the first part "unlimited" and the second part with limit? tipo…
-
6
votes3
answers5277
viewsWhat does "Dim" mean in Basic?
Okay, most programmers (I think most of them) of Basic (popular; Visual Basic compiler) know what the use of Dim, but I also think you don’t know what that word means... Basic Keywords are so…
-
6
votes2
answers312
viewsWho is who in the use of functions?
I have searched a lot, and has a lot of good content here, which covers this topic, however I still can not understand the functioning. The characters I’m referring to are: Function Parameters…
-
6
votes1
answer380
viewsWhy use two server-side languages on the same system?
Why I see many systems with two, up to three programming languages? When I see a system that migrates from one language to another, I even understand, but why do many maintain two or three…
-
6
votes1
answer518
viewsWhat is a Binary-safe function? And what are its applications?
I was browsing through the php.net when I came across the following note on the function str_replace: Note: This function is Binary-safe. I gave a researched here on the net and found nothing about.…
-
6
votes1
answer329
viewsHow are expressions evaluated in Java?
Reading some references it was possible to understand the basic, but not enough to decipher the following code: public class Expression { public static void main(String[] args) { int s = 5; s += s +…
-
6
votes1
answer712
viewsWhat is the concept of integers signed in a programming language?
I would like to clarify the meaning of the term "whole signed". I’m researching protocols, to build one in Java, and sometimes I find the term. I don’t know what it’s about. I’ve always heard of…
-
6
votes3
answers1691
viewsWhy does Javascript return Infinity instead of error when dividing by 0?
When I divide any value by zero, Javascript, returns me Infinity. My question is why Infinity? Infinity is set in Javascript, but I could not find a use for it in any case. Can anyone tell me also,…
-
6
votes1
answer231
viewsWhat are they for and when to use the Preprocessor directives?
Some time ago I had seen the use of #define in C#. Today I searched about it and found its documentation here, but did not answer all my doubts. Code example with Preprocessor directives: #define…
-
6
votes1
answer1727
viewsWhat is the difference between Type-safe and Null-safe?
I’m writing an article about Kotlin, and I came across these guys, if anyone can help me. What is the difference between Type-safe and Null-safe?
-
6
votes1
answer2959
viewsWhat’s the difference between C and C99?
I saw C99 in text and I was curious there is some difference between normal C and C99?
-
6
votes1
answer273
viewsWhat is the Map object for in Javascript?
This also seems to be another novelty of Javascript: the object Map. Unlike Set, that I already have an idea of how it works and saw in other languages, the Map is something I didn’t get to see in…
-
6
votes1
answer745
viewsWhat is the usefulness of the exclamation (non null assertion Operator) in Typescript?
I recently discovered that in Typescript we can use the operator of non null assertion simply putting a ! where you want to check. When I saw it, I thought it was like in C#, that we have the ?,…
javascript typescript characteristic-language operators nullableasked 5 years, 9 months ago Francisco 7,472 -
6
votes1
answer1432
viewsTranslation of programming languages
Whenever I search about "translation of programming language in Google" I only get tutorials of how to rewrite from one language to another, and never what I really want to know: Is there any…
characteristic-languageasked 5 years, 7 months ago Breno 978 -
6
votes1
answer138
viewsWhy do auto properties exist in C#?
I have a doubt, because in C# there are auto properties that are usually used like this: public double price {get; private set;} and because she’s a public she can be accessed directly and on top I…
-
6
votes2
answers89
viewsBackslashes on the way: do they influence anything?
I never understood why some systems use the \ and others use the / for the same purpose: to divide paths and addresses. There is no pattern from which to use, or at least couldn’t find a. While…
characteristic-language operating-system file-system pathasked 5 years, 3 months ago CypherPotato 9,292 -
6
votes1
answer94
viewsWhat is the purpose of the module in Elixir?
I’m studying Elixir and I came across the keyword defmodulo, I used to define a basic module that displays a message: defmodule Mensagem do def escreve(msg) do IO.puts msg end end Calling in the…
-
6
votes1
answer63
viewsWhat are the differences between comparison operators in Erlang?
In Erlang, we have the following comparison operators: =:= =/= == /= It is said that the latter two can be used to make comparison between integers and floats, since the first two differentiate one…
-
6
votes1
answer64
viewsHow does the creation of a proxy work under the table?
I’ve had a lot of fun creating interface proxies in Java. For example, the following proxy was required on Sqldroid to run version 5.2.4 of Flyway (and also to catch the path of the file created by…
-
6
votes2
answers119
viewsC# properties for those who know Java
What a Java programmer needs to know about basic properties (properties) in order to read code written in C#?
-
6
votes1
answer348
viewsDifference between constructor and function that returns literal object
What is the practical difference between me creating a construction function in this way: function construtora (nome, sobrenome) { this.nome = nome this.sobrenome = sobrenome } Or in this way:…
javascript function characteristic-language objects builderasked 4 years, 6 months ago Gustavo Paiva 173 -
6
votes1
answer165
viewsHow does the "+" operator work in Javascript?
Recently I had seen on the website of MDN Web Docs that it was possible to convert a String in a Number even in the example below: let n1 = "10"; console.log(typeof n1); //=> string ("10") The…
javascript characteristic-language typing operators type-conversionasked 4 years, 9 months ago felipe 61 -
6
votes1
answer125
viewsDifferences between defining object methods using Arrow Function and Function Expression
About "flammable" methods outside objects, I can say that these three forms below act in the same way within my code? Examples: var barquinho = { pedro: () => { console.log("a"); }, tiago:…
-
6
votes2
answers1125
viewsWhat current languages are used for Windows application development?
What current languages are used for Windows application development? I would like to know which ones have dependencies, like Java that needs to install JRE or some . NET that need you to install .…
-
6
votes1
answer669
viewsWhy do formatting options not work with lists, dictionaries, and other objects?
When I want to print a number or string, I can use f-strings (in Python >= 3.6) or str.format, and I can only pass the variable between keys, or use the formatting options. Ex: numero, texto =…
python python-3.x characteristic-language python-internals cpythonasked 4 years, 7 months ago hkotsubo 55,826 -
6
votes3
answers194
viewsWhy does isNaN(null) return "false"?
I came across a situation where undefined and null return a different value to the function isNaN, while I hoped they would both return true (are not numbers). In the example below I also put a…
-
6
votes2
answers144
viewsHow does changing the prototype of the String.prototype.toString() method affect this code in Javascript?
I couldn’t understand why the method reverse is applied in the string "abcde" (over-written in toString) and not in "12345". String.prototype.reverse = function() { return…
javascript string characteristic-language objects prototypeasked 3 years, 10 months ago vncsbraga 61 -
6
votes1
answer85
viewsWhat’s the difference between mod and Rust?
I understand the workings of the keyword mod, explained in this matter. For users of Python, mod works exactly like the keyword import. That is, to use functions and other objects defined in a file…
-
5
votes3
answers1130
viewsAccess negative index from an array
BUG? I was building a library for Arrays treatment and came across the following situation: When including a value to a negative index within my Array, this index does not appear when using some…
-
5
votes2
answers1863
viewsWhat is the purpose of the default when used in the signature of a method?
Within the interface List<E> of Java there is the method replaceAll() the purpose of which is to replace all occurrences of a specified value of a list. However, in his signature he uses the…
-
5
votes1
answer70
viewsProperty access modifier C#
I noticed that it is possible to sign a property access mode as private: public string Codigo { get; private set; } Or just ignore it: public string Codigo { get; } Is there any difference or…
-
5
votes1
answer112
viewsHow and when to use "Shadows" and "Overrides"?
How and when to use Shadows and Overrides? What are the usage recommendations for each and in what context to use them?…
-
5
votes1
answer159
viewsPurpose of lambda syntax in function/method
In some cases a function/method contains only one line in its scope, see the illustrative example: static int Soma(int a, int b) { return a + b; } Meanwhile, to a new feature in C# 6.0 that allows…
c# function lambda-expressions characteristic-language methodasked 8 years, 4 months ago gato 22,329 -
5
votes1
answer411
viewsWhat language is used in the Apache ". htaccess" file?
For example the following lines represent which language : RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?uri_path=$1…
-
5
votes1
answer107
viewsWhy is it possible to access array indexes with "{}" keys?
In some tests I did with PHP, I saw that it is possible to use keys ({}) to access indexes of arrays. Example: $array = ['a' => 1, 'b' => 2, 'c' => ['d' => 4]] echo $array{'c'}{'d'}; //…
-
5
votes1
answer87
viewsWhy can I access normal functions before the declaration, but not anonymous functions?
In Javascript, you can use/use a function before its declaration. MyFunc(); function MyFunc() { return console.log('blah!'); } However, when it comes to anonymous and closures functions, it is not…
-
5
votes1
answer1062
viewsIs there a way to create a parallel run using javascript?
I was wondering if there’s a way to use parallelism in javascript. For those who come from the world of java or of C is a well-known and widely used term, known as threads. Parallelism => is a…
-
5
votes3
answers67
viewsHow to define the value of a variable from a function?
I want something like, a function that will be passed a variable as a parameter and a value that will be applied to it, can you do that? 'Cause the code below didn’t work: function…