User contributions for Juliano Assis
A user with 1,517 edits. Account created on 2 October 2019.
6 February 2020
- 21:1421:14, 6 February 2020 diff hist −3 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 21:1421:14, 6 February 2020 diff hist −3 Translations:Development/Tutorials/Common Programming Mistakes/63/pt-br No edit summary current
- 20:3920:39, 6 February 2020 diff hist +20 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Você só pode converter com dynamic_cast de um tipo T de um tipo fornecido T2 que:"
- 20:3920:39, 6 February 2020 diff hist +84 N Translations:Development/Tutorials/Common Programming Mistakes/63/pt-br Created page with "Você só pode converter com dynamic_cast de um tipo T de um tipo fornecido T2 que:"
5 February 2020
- 21:0921:09, 5 February 2020 diff hist +24 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Uma ferramenta para detectar vazamentos de memória como este é a Valgrind."
- 21:0921:09, 5 February 2020 diff hist +107 N Translations:Development/Tutorials/Common Programming Mistakes/61/pt-br Created page with "Uma ferramenta para detectar vazamentos de memória como este é a Valgrind." current
- 21:0821:08, 5 February 2020 diff hist +36 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "O código Qt envolvendo QObject geralmente usa relações parent/child para liberar memória alocada; ao construir um QObject (por exemplo, um widget), ele pode receber um par..."
- 21:0821:08, 5 February 2020 diff hist +326 N Translations:Development/Tutorials/Common Programming Mistakes/60/pt-br Created page with "O código Qt envolvendo QObject geralmente usa relações parent/child para liberar memória alocada; ao construir um QObject (por exemplo, um widget), ele pode receber um par..." current
- 21:0621:06, 5 February 2020 diff hist +20 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Há também o std::shared_ptr e QSharedPointer. Essa é a maneira geralmente preferida de fazê-lo no C++ moderno; o gerenciamento explícito da memória deve ser evitado quan..."
- 21:0621:06, 5 February 2020 diff hist +188 N Translations:Development/Tutorials/Common Programming Mistakes/59/pt-br Created page with "Há também o std::shared_ptr e QSharedPointer. Essa é a maneira geralmente preferida de fazê-lo no C++ moderno; o gerenciamento explícito da memória deve ser evitado quan..." current
- 21:0521:05, 5 February 2020 diff hist −7 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* interrompa o polluter em um [http://en.cppreference.com/w/cpp/memory/unique_ptr] (que excluirá automaticamente o polluter ao retornar do método)"
- 21:0521:05, 5 February 2020 diff hist +149 N Translations:Development/Tutorials/Common Programming Mistakes/58/pt-br Created page with "* interrompa o polluter em um [http://en.cppreference.com/w/cpp/memory/unique_ptr] (que excluirá automaticamente o polluter ao retornar do método)" current
- 21:0321:03, 5 February 2020 diff hist +2 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* exclua o polluter usando a função complementar para new:"
- 21:0321:03, 5 February 2020 diff hist +60 N Translations:Development/Tutorials/Common Programming Mistakes/57/pt-br Created page with "* exclua o polluter usando a função complementar para new:" current
- 21:0221:02, 5 February 2020 diff hist −1 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "se tornaria"
- 21:0221:02, 5 February 2020 diff hist +11 N Translations:Development/Tutorials/Common Programming Mistakes/56/pt-br Created page with "se tornaria" current
- 21:0221:02, 5 February 2020 diff hist −6 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "* mantenha a variável na pilha em vez do heap:"
- 21:0221:02, 5 February 2020 diff hist +47 N Translations:Development/Tutorials/Common Programming Mistakes/55/pt-br Created page with "* mantenha a variável na pilha em vez do heap:" current
- 21:0121:01, 5 February 2020 diff hist +2 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Para resolver isso, existem as seguintes abordagens:"
- 21:0121:01, 5 February 2020 diff hist +52 N Translations:Development/Tutorials/Common Programming Mistakes/54/pt-br Created page with "Para resolver isso, existem as seguintes abordagens:" current
- 21:0021:00, 5 February 2020 diff hist +11 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Veja bem, ''pollute()'' instancia um novo objeto ''polluter'' da classe ''t''. Em seguida, a variável ''polluter'' é perdida porque é local, mas o conteúdo (o objeto) perm..."
- 21:0021:00, 5 February 2020 diff hist +276 N Translations:Development/Tutorials/Common Programming Mistakes/53/pt-br Created page with "Veja bem, ''pollute()'' instancia um novo objeto ''polluter'' da classe ''t''. Em seguida, a variável ''polluter'' é perdida porque é local, mas o conteúdo (o objeto) perm..." current
- 20:5720:57, 5 February 2020 diff hist +1 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Um erro de programação muito "popular" é fazer um <tt>new</tt> sem um <tt>delete</tt> como neste programa:"
- 20:5720:57, 5 February 2020 diff hist +109 N Translations:Development/Tutorials/Common Programming Mistakes/52/pt-br Created page with "Um erro de programação muito "popular" é fazer um <tt>new</tt> sem um <tt>delete</tt> como neste programa:" current
- 20:5720:57, 5 February 2020 diff hist +10 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "=== vazamentos de memória ==="
- 20:5720:57, 5 February 2020 diff hist +30 N Translations:Development/Tutorials/Common Programming Mistakes/51/pt-br Created page with "=== vazamentos de memória ===" current
- 20:5620:56, 5 February 2020 diff hist +5 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Esse problema também é discutido na [https://doc.qt.io/qt-5/qmap-iterator.html#details Qt documentation for QMap::iterator], mas se aplica a '''todos''' iteradores Qt"
- 20:5620:56, 5 February 2020 diff hist +168 N Translations:Development/Tutorials/Common Programming Mistakes/50/pt-br Created page with "Esse problema também é discutido na [https://doc.qt.io/qt-5/qmap-iterator.html#details Qt documentation for QMap::iterator], mas se aplica a '''todos''' iteradores Qt" current
- 20:5420:54, 5 February 2020 diff hist +17 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Esse código vai potencialmente travar porque é um iterador pendente após a chamada para erase(). Você precisa reescrever o código desta maneira:"
- 20:5420:54, 5 February 2020 diff hist +149 N Translations:Development/Tutorials/Common Programming Mistakes/49/pt-br Created page with "Esse código vai potencialmente travar porque é um iterador pendente após a chamada para erase(). Você precisa reescrever o código desta maneira:" current
- 20:5220:52, 5 February 2020 diff hist +16 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Quando você deseja apagar alguns elementos da lista, você poderia talvez usar um código semelhante a este:"
- 20:5220:52, 5 February 2020 diff hist +109 N Translations:Development/Tutorials/Common Programming Mistakes/48/pt-br Created page with "Quando você deseja apagar alguns elementos da lista, você poderia talvez usar um código semelhante a este:" current
- 20:5120:51, 5 February 2020 diff hist +8 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "==== Tenha cuidado ao apagar elementos dentro de um loop ===="
- 20:5120:51, 5 February 2020 diff hist +61 N Translations:Development/Tutorials/Common Programming Mistakes/47/pt-br Created page with "==== Tenha cuidado ao apagar elementos dentro de um loop ====" current
- 20:5020:50, 5 February 2020 diff hist −1 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 20:5020:50, 5 February 2020 diff hist −1 Translations:Development/Tutorials/Common Programming Mistakes/46/pt-br No edit summary current
- 20:5020:50, 5 February 2020 diff hist +37 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Ao usar iteradores, sempre use operadores de pré-incremento e pré-decremento (ou seja, <tt>++itr</tt>), a menos que você tenha um motivo específico para não fazê-lo. O u..."
- 20:5020:50, 5 February 2020 diff hist +296 N Translations:Development/Tutorials/Common Programming Mistakes/46/pt-br Created page with "Ao usar iteradores, sempre use operadores de pré-incremento e pré-decremento (ou seja, <tt>++itr</tt>), a menos que você tenha um motivo específico para não fazê-lo. O u..."
- 20:4920:49, 5 February 2020 diff hist +6 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Isso evita a criação desnecessária do objeto de retorno temporário <tt>end()</tt> (ou <tt>constEnd()</tt>) em cada iteração de loop, acelerando-a bastante."
- 20:4820:48, 5 February 2020 diff hist +161 N Translations:Development/Tutorials/Common Programming Mistakes/45/pt-br Created page with "Isso evita a criação desnecessária do objeto de retorno temporário <tt>end()</tt> (ou <tt>constEnd()</tt>) em cada iteração de loop, acelerando-a bastante." current
- 20:4620:46, 5 February 2020 diff hist +20 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Coloque em cache o retorno da chamada do método <tt>end()</tt> (ou <tt>constEnd()</tt>) antes de fazer a iteração em contêineres grandes. Por exemplo:"
- 20:4620:46, 5 February 2020 diff hist +154 N Translations:Development/Tutorials/Common Programming Mistakes/44/pt-br Created page with "Coloque em cache o retorno da chamada do método <tt>end()</tt> (ou <tt>constEnd()</tt>) antes de fazer a iteração em contêineres grandes. Por exemplo:" current
- 20:4520:45, 5 February 2020 diff hist −2 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 20:4520:45, 5 February 2020 diff hist −2 Translations:Development/Tutorials/Common Programming Mistakes/43/pt-br No edit summary current
- 20:4420:44, 5 February 2020 diff hist −1 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 20:4420:44, 5 February 2020 diff hist −1 Translations:Development/Tutorials/Common Programming Mistakes/43/pt-br No edit summary
- 20:4420:44, 5 February 2020 diff hist −3 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 20:4420:44, 5 February 2020 diff hist −3 Translations:Development/Tutorials/Common Programming Mistakes/43/pt-br No edit summary
- 20:4320:43, 5 February 2020 diff hist +82 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Prefira usar <tt> const_iterators </tt> sobre iteradores normais, quando possível. Os contêineres que estão sendo compartilhados implicitamente geralmente são desconectado..."
- 20:4320:43, 5 February 2020 diff hist +756 N Translations:Development/Tutorials/Common Programming Mistakes/43/pt-br Created page with "Prefira usar <tt> const_iterators </tt> sobre iteradores normais, quando possível. Os contêineres que estão sendo compartilhados implicitamente geralmente são desconectado..."
4 December 2019
- 20:4020:40, 4 December 2019 diff hist −1 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 20:4020:40, 4 December 2019 diff hist −1 Translations:Development/Tutorials/Common Programming Mistakes/42/pt-br No edit summary current
- 20:4020:40, 4 December 2019 diff hist +1 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 20:4020:40, 4 December 2019 diff hist +1 Translations:Development/Tutorials/Common Programming Mistakes/41/pt-br No edit summary current
- 20:3820:38, 4 December 2019 diff hist +2 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "==== Preferir iteradores const e cache end () ===="
- 20:3820:38, 4 December 2019 diff hist +50 N Translations:Development/Tutorials/Common Programming Mistakes/42/pt-br Created page with "==== Preferir iteradores const e cache end () ===="
- 20:3820:38, 4 December 2019 diff hist +17 N Translations:Development/Tutorials/Common Programming Mistakes/41/pt-br Created page with "=== Iterators ==="
3 December 2019
- 21:3021:30, 3 December 2019 diff hist +1 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 21:3021:30, 3 December 2019 diff hist +1 Translations:Development/Tutorials/Common Programming Mistakes/38/pt-br No edit summary current
- 21:2921:29, 3 December 2019 diff hist −8 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "O trecho acima deve ser escrito assim:"
- 21:2921:29, 3 December 2019 diff hist +38 N Translations:Development/Tutorials/Common Programming Mistakes/40/pt-br Created page with "O trecho acima deve ser escrito assim:" current
- 21:2921:29, 3 December 2019 diff hist 0 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 21:2921:29, 3 December 2019 diff hist 0 Translations:Development/Tutorials/Common Programming Mistakes/39/pt-br No edit summary current
- 21:2821:28, 3 December 2019 diff hist 0 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Por examplo:"
- 21:2821:28, 3 December 2019 diff hist +12 N Translations:Development/Tutorials/Common Programming Mistakes/39/pt-br Created page with "Por examplo:"
- 21:2821:28, 3 December 2019 diff hist +27 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Você reduzirá o tempo de compilação ao declarar classes forward quando possível, em vez de incluir seus respectivos cabeçalhos. As regras para quando um tipo pode ser us..."
- 21:2821:28, 3 December 2019 diff hist +470 N Translations:Development/Tutorials/Common Programming Mistakes/38/pt-br Created page with "Você reduzirá o tempo de compilação ao declarar classes forward quando possível, em vez de incluir seus respectivos cabeçalhos. As regras para quando um tipo pode ser us..."
- 21:2421:24, 3 December 2019 diff hist +180 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 21:2421:24, 3 December 2019 diff hist +180 Translations:Development/Tutorials/Common Programming Mistakes/36/pt-br No edit summary current
- 21:2121:21, 3 December 2019 diff hist −2 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 21:2121:21, 3 December 2019 diff hist −2 Translations:Development/Tutorials/Common Programming Mistakes/31/pt-br No edit summary current
- 21:1621:16, 3 December 2019 diff hist +2 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "=== Declarações Forward ==="
- 21:1621:16, 3 December 2019 diff hist +30 N Translations:Development/Tutorials/Common Programming Mistakes/37/pt-br Created page with "=== Declarações Forward ===" current
- 21:1621:16, 3 December 2019 diff hist −180 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "</syntaxhighlight>"
- 21:1621:16, 3 December 2019 diff hist +18 N Translations:Development/Tutorials/Common Programming Mistakes/36/pt-br Created page with "</syntaxhighlight>"
- 21:1621:16, 3 December 2019 diff hist +26 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Se definir uma matriz constante, não use um ponteiro como tipo de dados. Em vez disso, use o tipo de dados e anexe à matriz o símbolo com comprimento indefinido, <tt> [] </..."
- 21:1621:16, 3 December 2019 diff hist +464 N Translations:Development/Tutorials/Common Programming Mistakes/35/pt-br Created page with "Se definir uma matriz constante, não use um ponteiro como tipo de dados. Em vez disso, use o tipo de dados e anexe à matriz o símbolo com comprimento indefinido, <tt> [] </..." current
- 21:0921:09, 3 December 2019 diff hist +3 Development/Tutorials/Common Programming Mistakes/pt-br No edit summary
- 21:0921:09, 3 December 2019 diff hist +3 Translations:Development/Tutorials/Common Programming Mistakes/30/pt-br No edit summary
- 21:0821:08, 3 December 2019 diff hist +46 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Defina os dados constantes usando os construtores da linguagem C ++, não as instruções do pré-processador, como você pode estar acostumado a partir do C puro. Dessa manei..."
- 21:0821:08, 3 December 2019 diff hist +257 N Translations:Development/Tutorials/Common Programming Mistakes/33/pt-br Created page with "Defina os dados constantes usando os construtores da linguagem C ++, não as instruções do pré-processador, como você pode estar acostumado a partir do C puro. Dessa manei..." current
- 21:0621:06, 3 December 2019 diff hist +32 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Mesmo que exista apenas uma instância, você faz bem definindo-o em outro lugar, para evitar os chamados "números mágicos" no código que são inexplicáveis (cf. 42). Gera..."
- 21:0621:06, 3 December 2019 diff hist +253 N Translations:Development/Tutorials/Common Programming Mistakes/32/pt-br Created page with "Mesmo que exista apenas uma instância, você faz bem definindo-o em outro lugar, para evitar os chamados "números mágicos" no código que são inexplicáveis (cf. 42). Gera..." current
- 21:0521:05, 3 December 2019 diff hist +45 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Se você precisar de alguns dados constantes do tipo de dado simples em vários locais, faça o melhor definindo-os uma vez em um local central, para evitar um erro de digita..."
- 21:0521:05, 3 December 2019 diff hist +278 N Translations:Development/Tutorials/Common Programming Mistakes/31/pt-br Created page with "Se você precisar de alguns dados constantes do tipo de dado simples em vários locais, faça o melhor definindo-os uma vez em um local central, para evitar um erro de digita..."
- 19:1519:15, 3 December 2019 diff hist +148 N Translations:Development/Tutorials/Common Programming Mistakes/34/pt-br Created page with "<syntaxhighlight lang="cpp-qt"> // Correct! static const int AnswerToAllQuestions = 42; // Wrong! #define AnswerToAllQuestions 42 </syntaxhighlight>" current
- 19:1319:13, 3 December 2019 diff hist +20 N Translations:Development/Tutorials/Common Programming Mistakes/62/pt-br Created page with "=== dynamic_cast ===" current
- 19:1319:13, 3 December 2019 diff hist +15 N Translations:Development/Tutorials/Common Programming Mistakes/90/pt-br Created page with "=== QObject ===" current
- 19:1219:12, 3 December 2019 diff hist −2 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "=== QString e QByteArray ==="
- 19:1219:12, 3 December 2019 diff hist +28 N Translations:Development/Tutorials/Common Programming Mistakes/109/pt-br Created page with "=== QString e QByteArray ===" current
- 19:1219:12, 3 December 2019 diff hist +19 N Translations:Development/Tutorials/Common Programming Mistakes/114/pt-br Created page with "=== QDomElement ===" current
- 18:1818:18, 3 December 2019 diff hist +21 N Translations:Development/Tutorials/Common Programming Mistakes/30/pt-br Created page with "=== Constant data ==="
- 17:0217:02, 3 December 2019 diff hist +13 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Consulte a [http://api.kde.org/4.x-api/kdelibs-apidocs/kdecore/html/group__KDEMacros.html#ga75ca0c60b03dc5e4f9427263bf4043c7 API documentation] para <tt>K_GLOBAL_STATIC</tt> p..."
- 17:0217:02, 3 December 2019 diff hist +204 N Translations:Development/Tutorials/Common Programming Mistakes/29/pt-br Created page with "Consulte a [http://api.kde.org/4.x-api/kdelibs-apidocs/kdecore/html/group__KDEMacros.html#ga75ca0c60b03dc5e4f9427263bf4043c7 API documentation] para <tt>K_GLOBAL_STATIC</tt> p..." current
- 17:0117:01, 3 December 2019 diff hist +3 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Em vez disso, use um ponteiro estático, junto com <tt>K_GLOBAL_STATIC</tt>, definido em <tt>kglobal.h</tt> e usado da seguinte forma:"
- 17:0117:01, 3 December 2019 diff hist +134 N Translations:Development/Tutorials/Common Programming Mistakes/28/pt-br Created page with "Em vez disso, use um ponteiro estático, junto com <tt>K_GLOBAL_STATIC</tt>, definido em <tt>kglobal.h</tt> e usado da seguinte forma:" current
- 17:0017:00, 3 December 2019 diff hist +27 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Não use variáveis estáticas de classe, especialmente em bibliotecas e módulos carregáveis, mesmo que isso seja desencorajado em aplicativos. Objetos estáticos levam a mu..."
- 17:0017:00, 3 December 2019 diff hist +279 N Translations:Development/Tutorials/Common Programming Mistakes/27/pt-br Created page with "Não use variáveis estáticas de classe, especialmente em bibliotecas e módulos carregáveis, mesmo que isso seja desencorajado em aplicativos. Objetos estáticos levam a mu..." current
- 16:5816:58, 3 December 2019 diff hist +44 Development/Tutorials/Common Programming Mistakes/pt-br Created page with "Tente limitar o número de variáveis estáticas usadas no seu código, especialmente ao comitar para uma biblioteca. A construção e a inicialização de um grande número d..."
- 16:5816:58, 3 December 2019 diff hist +249 N Translations:Development/Tutorials/Common Programming Mistakes/26/pt-br Created page with "Tente limitar o número de variáveis estáticas usadas no seu código, especialmente ao comitar para uma biblioteca. A construção e a inicialização de um grande número d..." current