Most voted questions
150,413 questions
Sort by count of
-
17
votes4
answers359
viewsOutput a C code with pointers
I need to understand what each of the values printed on the screen means by the following code: #include<stdio.h> int main() { int i=5; int *p; p = &i; printf("%u %d %d %d %d \n", p,…
-
17
votes2
answers383
viewsIs gamification the same as competition?
Gamification is thus defined: is the strategy of interaction between people and companies based on offering incentives that stimulate public engagement with brands in a playful manner. Source In…
-
17
votes4
answers351
viewsWhat is gamification in the context of software?
I recently saw some comments about gamificação and would like to understand what it is and how it works in the context of software. How this relates to programming itself?
-
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
votes3
answers5190
viewsWhat is the difference between Graphql and REST?
People have commented a lot about the use of Graphql and with that, some comments that will replace this rise that we have of REST API’s. What is the difference between the two (Graphql and REST)?…
-
17
votes3
answers747
viewsHow to test my site on a slow internet?
When completing the development of a website or system, we always test its performance with our internet. Faced with this, there is some way to simulate the performance of my system a slow internet…
-
17
votes2
answers1361
viewsHow can I use javascript async/await?
I saw that it is now possible to use Keywords async and await in javascript, but how it really works?
javascriptasked 7 years, 7 months ago zubo 173 -
17
votes3
answers1699
viewsWhy doesn’t "= NULL" work?
In the SQL Server, by fetching all records with a given field with value NULL, if I do so no record is returned: SELECT * FROM clientes cli WHERE cli.cpf = NULL But if you use the following syntax:…
-
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
votes4
answers1286
viewsHow many parameters should a method have?
What is the maximum number of parameters a method should have? When one must consider that there are too many parameters? And what to do in that case? Tupiniquim and object-oriented version of the…
oop software-engineering method parameters software-projectasked 7 years, 9 months ago Piovezan 15,850 -
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
votes3
answers66689
viewsHow do I activate IIS in windows 10?
I’m trying to install the IIS in windows 10, the installation does not complete and shows no error. Someone’s been through it?…
-
17
votes5
answers2766
viewsWhat HTTP code should I use when I can’t authenticate to third-party services with login and password provided by the client earlier?
I am implementing a service from a website that does the following: My website (A) connects to some external services provided by third parties (B, C and D) using webservices. In fact A is a REST…
-
17
votes1
answer805
viewsIn what language was HTTP written when implemented on the Web?
I want to know in which language HTTP was developed.
-
17
votes3
answers4038
viewsWhat is the definition of verbose code? And why is it interesting to reduce it?
I have recently heard about verbose code reduction (next to the term Boiler Plate code), and also by studying ES6 by falling into Arrow-functions. Would you like a clearer definition of what verbose…
-
17
votes2
answers74027
viewsConfigure shortcut in vs code for indentation
I’m new at this, so forgive me if I miss the post. My doubt seems to be simple, but I’m not unraveling. Basically, it’s like setting up a shortcut in VSCODE for indentation in my codes.…
visual-studioasked 8 years, 1 month ago Isk4_ 173 -
17
votes2
answers1267
viewsWhat is the difference between String[] args and String args[]?
What is the difference between the statements String[] args and String args[] in Java?
-
17
votes1
answer1515
viewsWhat is the difference between ordered, unordered and Sorted?
These terms are used in some data structures to define how elements are inserted and maintained, which means each? Sorted and ordered wants to say the same thing? Unordered means it’s random?…
-
17
votes1
answer1949
viewsWhenever I am going to scan a string in C I must use "strlen()", right?
It is common to see in C execs that people need to analyze and/or manipulate the content of a string, then we need to make sure that it will not exceed its limit. It is very common to make a for…
-
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
votes2
answers1493
viewsWhat can I do in . NET Framework and . NET Core not? And vice versa
I grew my eye on . NET Core (ASP.NET Core), I started with C#, but I left it by going sideways "open-source", now with this opportunity I decided to "return". I intend to use . NET Core (ASP.NET…
-
17
votes1
answer412
viewsWhat is fuzzy logic?
Studying about artificial intelligence I observed a lot the term fuzzy logic, or Fuzzy Logic. What is this diffuse logic and what are its applications? I know it is different from Boolean logic, but…
-
17
votes3
answers960
viewsHow to find a String from Regular Expressions
I have a field in the SQL Server 2014 database that stores the client address. The problem is that everything is stored in a single field varchar. Here are some real examples: Antonio José Nerchis…
-
17
votes1
answer270
viewsError in serial port of Arduin with communication between C and Perl
I have to make a language communicate with the arduino and vice versa. I own the program at C and I have to modify it for this project, the language I have to use is Perl. Follow the code I have:…
-
17
votes2
answers31712
viewsWhat is the difference between " n" and " r n" (special characters for line breaks)?
For line breaking, I usually use \n. But I realize that in some cases, such as in the Sublime Text editor, some texts that I need to capture the line-breaking are only captured when I use regex…
-
17
votes2
answers560
viewsWhy shouldn’t I change the "getter" s and "Setter"s?
I recently came across a friend saying that it is not advisable to change getters and Setters. I had made the modification of a Setter of a List. In it I did not receive a list by parameter, but an…
-
17
votes4
answers23157
viewsIdentify if the device is pc or mobile and use a different code for each
I want it to be automatic if the person is on the computer display a code if they are on the phone display a different one. I do not want to change the resolution but all the content presented on…
-
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
votes3
answers2390
viewsFind the center of each circle in the image
I have this image and wanted to catch the x and y of the center of each circle. I have tried several ways, but in none have I succeeded. My question is if there is any java lib to do this or any…
-
17
votes1
answer1667
viewsWhat is the goal of implementing a magic __invoke method in a class?
I know what the method is for __invoke. It is for a class to execute an action if called as a function. Even, it is present in the special php class called Closure, which is instantiated when we…
phpasked 8 years, 12 months ago Wallace Maxters 102,340 -
17
votes3
answers1862
viewsSpecification and Implementation
I usually see the words "specification" and "implementation", but I don’t know the difference between one and the other. For example: It is possible to have control over the garbage collector, this…
-
17
votes1
answer1971
viewsHow to carry out communication between Microservices (microservices)?
Microservices is a type of architectural pattern where an application is divided into smaller, independent applications that communicate to accomplish the complete work of the system. The common…
microservicesasked 9 years ago utluiz 72,075 -
17
votes1
answer990
viewsIs using an empty catch a bad practice?
There have been cases where I needed to make use of methods that launched exception if any error occurred, but the exception would stop the execution of script, what would be something unwanted. For…
-
17
votes1
answer628
viewsWhat is C#metadata?
What is C#/. NET metadata? What are they for, and how can I use them? I was watching a template of Visual Studio, and browsing the files, I came across them.
-
17
votes4
answers1239
viewsFormat city names and ignore words like "do", "dos", "das", "da", etc
I’m working with Webservice whose city names are all out of shape and I’d like to create a function to treat the names evenly. An example is this: CHICKEN HARBOR I’d like to keep it that way: Porto…
-
17
votes1
answer2146
viewsWhat is a chain of methods?
In object-oriented languages, there is a concept known as method chaining or encadeamento de métodos to Portuguese. What exactly is this ? How would be the implementation of this technique in a PHP…
-
17
votes3
answers959
viewsWhy does calling System.gc not guarantee running the Garbage Collector?
Why the developer does not have full control over the Garbage Collector? I understand that the role of GC is to automatically manage the memory but why even using some method like the System.gc…
-
17
votes2
answers690
viewsUse of artificial intelligence techniques to solve complex problems
Faced with the task of developing a complex application, I decided to make that each time a human interacts with the system, that this record its decisions, apply weights and in the next suggestions…
-
17
votes1
answer154
viewsGuidelines for Visual Assets
I’m developing an app for Windows 10 and on the Microsoft website does not state what is the standard to be adopted for IMage Assets: Square 44x44 Logo, Store Logo and Badge Logo. The image below is…
-
17
votes5
answers15911
viewsHow to make a circle in CSS without Border-Radius 100%?
I can make a circle in css with border-radius. .circle{ border-radius:100%; border:10px solid red; width:100px; height:100px; background-color:purple; } <div class="circle"></div> But I…
-
17
votes2
answers738
viewsWhy use/not use * box-Sizing?
I’ve read a lot about debates between using or not using the property box-sizing: border-box; as follows: * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } I…
-
17
votes2
answers4066
viewsWhat are MIME types?
What are MIME types ? And what is its importance for correctly rendering pages/files? Its use is mandatory or depends on the browser ? If undeclared, browsers may assume a different behavior at the…
-
17
votes2
answers13314
views -
17
votes2
answers809
viewsWhat will the new logic of quantum computer programming look like?
There is a lot of talk about quantum computers with high performance and processing capacity. Unlike bits, the qubits of quantum computers, working with superposition, can assume three different…
algorithm compilation binary computer-science computer-theoryasked 9 years, 3 months ago Denis Caixeta 3,427 -
17
votes2
answers5548
viewsIn OOP, can an interface have attributes?
Is it possible for an interface to have attributes? If not possible, why not?
-
17
votes1
answer11086
viewsHow to check the execution time of a method?
Example: I have the Metodo1 and the Metodo2 both have different processing and actions. I want to check how long each takes to run. How do I do that?
-
17
votes6
answers8335
viewsHow to know if the form is sent
How to know when the form is sent and without input fields being empty? I was told the isset to carry out this action but I did not understand right the use of the isset…
phpasked 9 years, 4 months ago FRNathan13 2,183 -
17
votes1
answer616
viewsDesigning the Top Gear
I’m trying to make a game like Top Gear (SNES) to acquire some knowledge about 2D games, only I came to a question about the tracks: they are straight, curved or images? I am using Javafx. If I try…
-
17
votes1
answer2610
viewsWhat is the Adapter standard?
What is and how the Adapter standard works in Java, I am trying to understand this pattern because I will use it in a project.
-
17
votes2
answers10623
viewsImperative and Declarative Paradigm
What are the differences between mandatory and declarative programming paradigms? Advantages and disadvantages?
terminology functional-programming paradigms imperative-programmingasked 9 years, 5 months ago Cold 3,842