c++

Recursos de programación de c++
Con la aprobación de C++17, una de las grandes novedades va a ser la disponibilidad de algoritmos paralelos como parte de la biblioteca estándar. Esto permitirá, por ejemplo aprovechar todos los núcleos del procesador para hacer tareas como la búsqueda, la ordenación o incluso operaciones de tipo map-reduce. En esta charla explicaré porque el paralelismo ha venido esta vez para quedarse y como podemos transformar nuestras aplicaciones (en C++) para sacar partido de los algoritmos paralelos. https://www.koliseo.com/events/commit-2018/r4p/5630471824211968/agenda #/5116072650866688/5662430675861504
Título: Simplificando el Uso de la Memoria Dinámica en C++ Ponente: José Daniel García Link: https://techfest.uc3m.es/programa/simplificando-el-uso-de-la-memoria-dinamica-en-c/ Una de las críticas frecuentes a C++ es la posibilidad de generar goteos de memoria. En esta charla explicaré cómo C++11/14 ofrece mecanismos de gestión de memoria dinámica que son seguros y deterministas sin necesidad de recolección de basura. Después de esta charla no volverás a usar new/delete en tu código.
Web
25-03-2014
http , c++
Recently I did the StringCalculator kata in C++.In order to be able to split a string using several alternative delimiters of one or more characters I used the following function: which is using several functions from the boost library: boost::algorithm::split_regex, boost::regex and boost::join.Yesterday I managed to use some C++11 features to get the same functionality without using the boost library. This is the resulting code which uses C++11 regex and lambdas: These are the StringUtils test...
I've recently coded a solution to the StringCalculator kata in C++ using GoogleMock, (you can check its code in GitHub).In one of the refactoring steps, I extracted the code that filters out not numeric tokens to a separated helper method: filterOutNotNumericTokens:Once all the kata requirements were satisfied, I refactored this method a little bit more using C++11 copy_if algorithm:We can use the same technique to refactor the method that ignores numbers greater than 1000, ignoreTooBig, from th...
Web
02-03-2014
http , c++ , tdd
I've just coded the StringCalculator kata in C++ using GoogleMock and Boost.Regex.I commited it step by step. Check the resulting code in Github. --------------------------Update: I did some refactorings to my solution in order to a) reduce some duplication and b) avoid having to use Boost.Regex. They're explained, respectively, in the two following posts:Extracting reusable C++ templated functions from StringCalculator codeUsing C++11 to split strings without using the boost library - por Gara...