Questions tagged as 'estilo-de-codificação'

2
answers

Why do you say that using @ atus to suppress errors is a bad practice?

In PHP, we can suppress errors by using arroba before certain expressions. This can be seen at: # I've seen some hangouts on PHP and staff were criticizing the use of @ in PHP, for the thesis that an error should be han...
asked by 03.09.2015 / 17:17
4
answers

Where should I put a JavaScript code in an HTML document?

Where JavaScript should be placed in an HTML document: in element <head> or <body> ? At the beginning or the end of each? Is there any performance difference or any other related to this?     
asked by 26.12.2013 / 18:18
2
answers

Is there any problem in using Unicode characters for identifiers in code?

Today, it is common for compilers of programming languages to allow the code file of their programs to accept code with Unicode characters. This is useful, especially for those who use Portuguese and other languages that run away from ASCII t...
asked by 21.05.2014 / 16:04
2
answers

What defines a clean code?

I saw this term being used several times, many people and companies want their codes to be "clean" ... I also saw the book Clean Code Practical Skills of Agile Software . But I wanted to know what defines a code to be clean or not? What poin...
asked by 24.09.2014 / 14:09
4
answers

What is spaghetti code?

When you read about software architecture on the web, sometimes the term spaghetti code is used, referring to something that should be avoided. > But I never quite understood what "spaghetti code" means.     
asked by 03.09.2014 / 14:35
5
answers

What is the advantage of using recursive functions?

Recently I discovered the famous (or not so famous) Recursive Functions and I found the concept very interesting. But during my reading I had some doubts about the use of such. 1st What is the advantage of using Recursive Function ? For I...
asked by 11.01.2016 / 04:10
3
answers

When to use recursion and when to use loops?

A problem can be solved and get the same result as a loop or through Recursive calls to a function.
asked by 16.06.2014 / 19:13
8
answers

The right is br or br / or br /?

I see each using in a way, I even vario the form in a few moments and all work, but which one is right? Does it depend on the HTML version or the browser ?     
asked by 09.01.2015 / 17:16
1
answer

What is the difference between a single quote and a double quotation mark in SQL?

Context When I do a SQL and I want a specific alias I should enclose double-quotes ". SELECT A.ds_nome_pessoa AS "Pessoa.nome" ... When I want to make a where in of a field varchar the values must be in single quotation ma...
asked by 25.01.2016 / 12:21
5
answers

What is the difference between string vs string?

I'd like to know what the actual difference is between String (upper case s) and string (lowercase s). Apparently the two have the same goals, but which one is "better" to use?     
asked by 01.02.2014 / 11:31