<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1080419292793082962</id><updated>2012-01-10T01:00:43.812-08:00</updated><category term='foto'/><category term='emacs'/><category term='darcs'/><category term='PS3'/><category term='software libre'/><category term='hscalc'/><category term='personal'/><category term='haskell'/><category term='latex'/><category term='C/C++'/><category term='mal código'/><category term='mutant-games'/><category term='programacion'/><category term='vim'/><category term='introducción'/><category term='utiles'/><category term='videojuegos'/><category term='humor'/><title type='text'>Mal Código</title><subtitle type='html'>Código que no hace lo que debe, código que después de leerlo deja mal sabor de boca incluso código que funcionando esta a años luz de ser buen código. Y mi propio código.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-8443864182094528603</id><published>2011-02-05T10:48:00.000-08:00</published><updated>2011-02-05T12:27:59.060-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><category scheme='http://www.blogger.com/atom/ns#' term='mutant-games'/><category scheme='http://www.blogger.com/atom/ns#' term='videojuegos'/><title type='text'>Nuevo Videojuego Publicado</title><summary type='text'>Llevaba mucho tiempo sin escribir en el blog, pero uno de los proyectos en los que he estado últimamente merecía toda mi atención. Y el resultado es este:Cell &amp; Love en AndroidUn juego de Mutant-Games, del que ya tenían versión en iPhone, y del que yo solo me he encargado de transformar a un juego de Android. Usando todo el arte anterior y con la ayuda de la librería andEngine:En próximos posts </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/8443864182094528603/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=8443864182094528603' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/8443864182094528603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/8443864182094528603'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2011/02/nuevo-videojuego-publicado-llevaba.html' title='Nuevo Videojuego Publicado'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uk7foL2Ia2s/TU2gl5sBXrI/AAAAAAAAAng/DOeu70XXnl8/s72-c/tut_03.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-6760528020473059801</id><published>2010-10-30T06:05:00.000-07:00</published><updated>2010-10-30T06:13:36.806-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mal código'/><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>Uno rápido sobre expresiones booleanas</title><summary type='text'>Este Mal Código es un ejemplo simple de como pensar un poco sobre las expresiones booleanas. if( (level != 1) &amp;&amp; (level % 5 == 0) ){    // do something on level}Si tenemos en cuenta que el resto de dividir 1 entre 5 es siempre 1, la expresion anterioor se reduce a:if( level % 5 == 0 ){    // do something on level}</summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/6760528020473059801/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=6760528020473059801' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/6760528020473059801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/6760528020473059801'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2010/10/uno-rapido-sobre-expresiones-booleanas.html' title='Uno rápido sobre expresiones booleanas'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-2347987340674825304</id><published>2010-04-12T06:41:00.001-07:00</published><updated>2010-04-12T06:44:03.637-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='videojuegos'/><title type='text'>The Scourge Project en Steam (y 2)</title><summary type='text'>Ta se puede comprar The Scourge ProjectDe nuevo felicitar a los compañeros de Tragnarion por lograr sacar el juego adelante.http://store.steampowered.com/app/36700/</summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/2347987340674825304/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=2347987340674825304' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/2347987340674825304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/2347987340674825304'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2010/04/scourge-project-en-steam-y-2.html' title='The Scourge Project en Steam (y 2)'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-4666117101695315698</id><published>2010-02-26T03:19:00.000-08:00</published><updated>2010-04-12T06:43:06.490-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='videojuegos'/><title type='text'>The Scourge Project en Steam</title><summary type='text'>El videojuego "The Sourge Project" estara disponible a partir de marzo en Steam.Me alegro mucho por los ex-compañeros de TragnarionYa estoy deseando jugarlo.via: Pocs esments</summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/4666117101695315698/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=4666117101695315698' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/4666117101695315698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/4666117101695315698'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2010/02/scourge-project-en-steam.html' title='The Scourge Project en Steam'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-4359624584882113398</id><published>2009-10-07T08:36:00.000-07:00</published><updated>2009-10-07T08:49:18.019-07:00</updated><title type='text'>La Ciencia Española No Necesita Tijeras</title><summary type='text'>Hasta ahora la ciencia en España no tiene un presupuesto como para tirar cohetes. Donde yo estoy ahora, gente valida (gran parte de de ellos becarios en mesas en los pasillos o hacinados en salas comunes), físicos gastan el tiempo realizando programas de mierda a disgusto porque no hay dinero suficiente para comprar programadores de verdad y dejar que los físicos dediquen el tiempo a lo que </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/4359624584882113398/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=4359624584882113398' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/4359624584882113398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/4359624584882113398'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2009/10/la-ciencia-espanola-no-necesita-tijeras.html' title='La Ciencia Española No Necesita Tijeras'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-3820489873582215743</id><published>2009-06-04T01:11:00.000-07:00</published><updated>2009-06-04T01:21:59.279-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='humor'/><title type='text'>Buscar el error del usuario</title><summary type='text'>Buenos días,Los datos son:Nombre de usuario: bbernatemail: boromirb@blablabla.comTeléfono: 5556664242Un saludo, Boromir BernatOn Wed, 2009-06-03 at 18:19 +0200, Misma Mente wrote:&gt; Necesito que nos pases los siguiente datos para crearte una cuenta:&gt;&gt; Nombre del usuario:&gt; email:&gt; Teléfono:&gt;&gt; Un saludo, Misma&gt;Ante este intercambio de correos entre un administrador y un usuario. ¿Cual es el fallo </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/3820489873582215743/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=3820489873582215743' title='5 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/3820489873582215743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/3820489873582215743'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2009/06/buscar-el-error-del-usuario.html' title='Buscar el error del usuario'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-6241484366672833974</id><published>2009-05-19T08:19:00.000-07:00</published><updated>2010-08-25T01:45:53.054-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='utiles'/><category scheme='http://www.blogger.com/atom/ns#' term='darcs'/><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><title type='text'>Cosas que hacer en la tesina</title><summary type='text'>Este último mes lo que más me ronda por la cabeza (a parte de pillarme un ordenador nuevo para volverme a pasar el Fallout 3 en condiciones) es terminar de escribir la tesina final del máster que estoy haciendo. El trabajo que me había planteado hacer esta terminado (y pocas ganas tengo de hacer más sobre el tema), ahora solo me queda poner por escrito en unas 40~50 páginas que es lo que he hecho</summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/6241484366672833974/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=6241484366672833974' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/6241484366672833974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/6241484366672833974'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2009/05/cosas-que-hacer-en-la-tesina.html' title='Cosas que hacer en la tesina'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-2250348757821179856</id><published>2009-03-12T07:52:00.000-07:00</published><updated>2009-03-17T13:12:21.966-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='programacion'/><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><title type='text'>Coloreado de cambios con Emacs</title><summary type='text'>Hace mucho que no escribo, hoy voy a hablar un poco del Maravilloso Emacs. Editor que uso para editar cualquier fichero de texto desde hace poco más de un año. Y que me encanta. Y como lo hecho de menos cuando tengo que usar el Horroroso Vim.En concreto, quiero comentar una pequeña funcionalidad de Emacs. Como colorear las partes nuevas en el fichero que estés escribiendo en un momento dado. </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/2250348757821179856/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=2250348757821179856' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/2250348757821179856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/2250348757821179856'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2009/03/coloreado-de-cambios-con-emacs.html' title='Coloreado de cambios con Emacs'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-314987576578873891</id><published>2008-12-23T10:02:00.000-08:00</published><updated>2008-12-28T03:43:12.070-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mal código'/><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>¿Se borró o no se borró?</title><summary type='text'>Hola de nuevo, hacia mucho que no escribía en el blog, y mucho más que no lo hacía criticando el código de los demás.El Mal Código de hoy es un pequeño ejemplo cosas que sobran en un lenguaje moderno. En concreto la creación y destrucción explicita de variables.void MiClase::Fin(){   this-&gt;p-&gt;Save();   this-&gt;p-&gt;Delete();   if( this-&gt;p ){       delete this-&gt;p;       this-&gt;p = 0;   }}En el ejemplo </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/314987576578873891/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=314987576578873891' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/314987576578873891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/314987576578873891'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2008/12/se-borr-o-no-se-borr.html' title='¿Se borró o no se borró?'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-4842299212657715265</id><published>2008-09-28T11:50:00.000-07:00</published><updated>2008-09-28T12:33:06.957-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='foto'/><category scheme='http://www.blogger.com/atom/ns#' term='videojuegos'/><title type='text'>Un poco de videojuegos</title><summary type='text'>Doodle HexEste verano por fina salio a la venta el juego en el que trabaje como programador. El juego se llama Doodle Hex y a pesar de que salieron muy pocas copias y casi no pueda encontrarse en las tiendas, se puede comprar a través de Amazon.co.uk (tambien viene en español)Estoy muy orgulloso de este trabajo, y merece la pena jugarlo. Y a pesar de que yo hize de programador, lo que mejor tiene</summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/4842299212657715265/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=4842299212657715265' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/4842299212657715265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/4842299212657715265'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2008/09/un-poco-de-videojuegos.html' title='Un poco de videojuegos'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uk7foL2Ia2s/SN_UHtsgaSI/AAAAAAAAATk/4IBCGsrtGBM/s72-c/caja.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-7478536050782351982</id><published>2008-09-21T01:55:00.000-07:00</published><updated>2008-09-21T02:16:25.928-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='foto'/><category scheme='http://www.blogger.com/atom/ns#' term='PS3'/><title type='text'>Panel de Televisiones con PS3 (III)</title><summary type='text'>Otras entradas acerca del tema:Panel de televisiones con PS3 (I)Panel de televisiones con PS3 (II)Un par de fotos del panel de televisiones en el ESOF</summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/7478536050782351982/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=7478536050782351982' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7478536050782351982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7478536050782351982'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2008/09/panel-de-televisiones-con-ps3-iii.html' title='Panel de Televisiones con PS3 (III)'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_uk7foL2Ia2s/SNYPdxy6EXI/AAAAAAAAATU/u03Gj2zbJ5A/s72-c/ESOF-PANEL.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-5482652391181048089</id><published>2008-09-01T07:15:00.000-07:00</published><updated>2008-09-21T02:17:05.383-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PS3'/><category scheme='http://www.blogger.com/atom/ns#' term='programacion'/><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>Panel de Televisiones con PS3 (II)</title><summary type='text'>Otras entradas acerca del tema:Panel de televisiones con PS3 (I)Panel de televisiones con PS3 (III)Hoy toca habla del software desarrollado para el panel de televisiones. El objetivo del software es dividir una imagen de gran resolución en 9 trozos, y mostrar cada trozo en una pantalla (a ser posible en orden para obtener una imagen global)Primer Intento: MPIEl estándar MPI (Message Passing </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/5482652391181048089/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=5482652391181048089' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/5482652391181048089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/5482652391181048089'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2008/09/panel-de-televisiones-con-ps3-ii.html' title='Panel de Televisiones con PS3 (II)'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-7341175728040835126</id><published>2008-07-20T11:38:00.000-07:00</published><updated>2008-09-01T09:20:44.755-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='foto'/><category scheme='http://www.blogger.com/atom/ns#' term='PS3'/><category scheme='http://www.blogger.com/atom/ns#' term='programacion'/><title type='text'>Panel de Televisiones con PS3 (I)</title><summary type='text'>En las próximas entradas voy a explicar un proyecto que me ha tenido ocupado las últimas semanas. Con motivo de la feria ESOF 2008 el Instituto de Física de Cantabria tenia apalabrado un stand donde enseñaría lo que se hace aquí. Como es una feria de divulgación científica, se decide llevar 9 televisores LCD que formaban un panel de 3x3. Este panel ya lo había preparado Ignacio Coterillo </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/7341175728040835126/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=7341175728040835126' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7341175728040835126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7341175728040835126'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2008/07/panel-de-televisiones-con-ps3-i.html' title='Panel de Televisiones con PS3 (I)'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uk7foL2Ia2s/SIOG_BOuVsI/AAAAAAAAATM/VukZIpp5p5s/s72-c/blog01.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-2500812484485743587</id><published>2008-07-03T07:30:00.000-07:00</published><updated>2008-07-03T10:19:24.710-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mal código'/><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>Recursividad en un ASSERT</title><summary type='text'>Después de tanto tiempo sin escribir sobre código erróneo, hoy voy a presentar un pequeño trozo de código que puede fallar (y falló). A ver si sois capaces de encontrar el error.#define M_ASSERT( exp ) AssertScreen( exp, #exp )Para empezar tenemos esta definición de ASSERT. Simplemente al autor del código no le gusta el ASSERT de la librería estándar de C, así que crea su propia versión. No es </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/2500812484485743587/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=2500812484485743587' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/2500812484485743587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/2500812484485743587'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2008/07/recursividad-en-un-assert.html' title='Recursividad en un ASSERT'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-4443729752727528781</id><published>2008-06-08T14:09:00.000-07:00</published><updated>2008-06-11T12:17:19.730-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='personal'/><title type='text'>En que trabajo ahora (1)</title><summary type='text'>Un pequeño paréntesis, en vez de quejarme del código de los demás, voy a hablar un poco de lo que hago en las horas de trabajo.Actualmente estoy trabajando en el Instituto de Física de Cantabria (IFCA), institución que pertenece tanto a CSIC como a la Universidad de Cantabria.El título de mi puesto de trabajo no lo se definir, pero mi trabajo básicamente gira en torno al Supercomputador Altamira.</summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/4443729752727528781/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=4443729752727528781' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/4443729752727528781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/4443729752727528781'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2008/06/en-que-trabajo-ahora-1.html' title='En que trabajo ahora (1)'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-7323554785444942526</id><published>2008-04-15T12:29:00.000-07:00</published><updated>2008-04-18T06:55:21.872-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='foto'/><category scheme='http://www.blogger.com/atom/ns#' term='haskell'/><category scheme='http://www.blogger.com/atom/ns#' term='humor'/><category scheme='http://www.blogger.com/atom/ns#' term='programacion'/><title type='text'>Tarjeta de programador</title><summary type='text'>El fin de semana pasada me entro una inquietud. Saber como quedaría una tarjeta de presentación/visita de un programador. Y que ademas la tarjeta de presentación fuese un programa. Así que me he puesto a ello y aquí presento el resultado.Empecemos con un par de reglas para hacer la tarjeta:Todo el texto debe poder compilarse/ejecutarseLa información normal de una tarjeta de visita debe de quedar </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/7323554785444942526/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=7323554785444942526' title='9 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7323554785444942526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7323554785444942526'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2008/04/tarjeta-de-programador_15.html' title='Tarjeta de programador'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uk7foL2Ia2s/SAUCck3aTNI/AAAAAAAAASQ/VjChMfTw3Qg/s72-c/text3168.png' height='72' width='72'/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-5331984155170716499</id><published>2008-02-27T04:01:00.000-08:00</published><updated>2008-02-27T11:54:42.388-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='haskell'/><category scheme='http://www.blogger.com/atom/ns#' term='programacion'/><title type='text'>Evaluación Perezosa</title><summary type='text'>Hoy quisiera hablar de una de las características de Haskell más fascinantes, la evaluación perezosa. Y me han entrado ganas de hablar de ello al ver la utilización que se da a la evaluación perezosa en el problema repMin de Richard Bird. El problema viene a ser el siguiente: reemplazar los valores en los nodos de un árbol por el mínimo valor de este mismo árbol, y solo recorriendo el árbol una </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/5331984155170716499/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=5331984155170716499' title='6 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/5331984155170716499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/5331984155170716499'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2008/02/evaluacin-perezosa.html' title='Evaluación Perezosa'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-1871551557537170176</id><published>2008-01-27T04:50:00.000-08:00</published><updated>2008-01-27T05:22:08.588-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='foto'/><title type='text'>Mi Moleskine</title><summary type='text'>Hoy voy a hablar de mi Moleskine. Una moleskine es una libreta de notas. Pero no una libreta cualquiera. Tiene unas tapas duras de imitación de piel, una encuadernación impecable que por mucho que abras la libreta, no se te sueltan las hojas. Tiene una goma elástica para mantener cerrada la libreta, y un marcador de páginas. Ideal para llevar en el bolsillo o en la bandolera y no acabar con las </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/1871551557537170176/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=1871551557537170176' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/1871551557537170176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/1871551557537170176'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2008/01/mi-moleskine.html' title='Mi Moleskine'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_uk7foL2Ia2s/R5yAP6bo0CI/AAAAAAAAARE/TIUZblZKnKg/s72-c/moleskine.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-2403072457577622836</id><published>2008-01-07T06:27:00.000-08:00</published><updated>2008-01-07T07:00:54.431-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='humor'/><category scheme='http://www.blogger.com/atom/ns#' term='software libre'/><title type='text'>El vino, mejor cuando es libre</title><summary type='text'>Haciendo analogía con el software libre, el vino también debería compartir los mismos derechos. Cuando compras una botella de vino deberías...... Poder beber el vino (libertad 0)... Poder mejorar el vino, echarle cocacola por ejemplo (libertad 1)... Poder compartir el vino con el de al lado (libertad 2)... Poder compartir la versión mejorada (libertad 3)Puede parecer que el vino ya tiene todas la</summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/2403072457577622836/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=2403072457577622836' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/2403072457577622836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/2403072457577622836'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2008/01/el-vino-mejor-cuando-es-libre.html' title='El vino, mejor cuando es libre'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-123196132841688069</id><published>2007-12-07T02:37:00.000-08:00</published><updated>2007-12-26T14:41:10.567-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='haskell'/><category scheme='http://www.blogger.com/atom/ns#' term='programacion'/><category scheme='http://www.blogger.com/atom/ns#' term='hscalc'/><title type='text'>Simplificar Funciones en Haskell</title><summary type='text'>Hoy voy a hablar un poco acerca de un proyecto propio, y de como usar las características de un lenguaje como Haskell para escribir menos. El proyecto es una calculadora de pila (primero se escriben los operandos y luego se escribe el operador) y la podéis encontrar en Hscalc.El código que viene a continuación son las funciones ejecutadas cuando se pulsa sobre los diferentes botones de la </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/123196132841688069/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=123196132841688069' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/123196132841688069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/123196132841688069'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2007/12/simplificar-funciones-en-haskell.html' title='Simplificar Funciones en Haskell'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-8731838777759908885</id><published>2007-11-30T08:47:00.000-08:00</published><updated>2007-12-02T02:27:17.463-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mal código'/><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>La Locura de los Include</title><summary type='text'>#include "mifichero.h"No suena mal, ¿verdad?. Parece una linea de código totalmente inocente. No hay nada maligno en está simple linea de código C/C++. Pues los que piensen así están equivocados.El problema viene, cuando intentas compilar un proyecto realizado en Windows, en Linux, que es lo que he sufrido estos últimos días. En Linux si que se tiene en cuenta si el nombre de un fichero esta con </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/8731838777759908885/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=8731838777759908885' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/8731838777759908885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/8731838777759908885'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2007/11/la-locura-de-los-include.html' title='La Locura de los Include'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-1897864572411837737</id><published>2007-11-07T11:49:00.000-08:00</published><updated>2007-11-10T12:40:31.751-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='haskell'/><category scheme='http://www.blogger.com/atom/ns#' term='programacion'/><category scheme='http://www.blogger.com/atom/ns#' term='hscalc'/><title type='text'>Modelo-Vista-Controlador simplificado</title><summary type='text'>Haskell es mi lenguaje preferido. Puede parecer una afirmación rotunda, pero al ser algo totalmente subjetivo, lo puedo decir sin equivocarme. Lo que no es tan subjetivo es la experiencia que tengo en Haskell. Casi nula, apenas nada. Por eso he decidido empezar un pequeño proyecto para adquirir soltura.Haskell Stack Calculator. El proyecto en cuestión consiste en una calculadora de pila. Es decir</summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/1897864572411837737/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=1897864572411837737' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/1897864572411837737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/1897864572411837737'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2007/11/modelo-vista-controlador-simplificado.html' title='Modelo-Vista-Controlador simplificado'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_uk7foL2Ia2s/RzIXO33aifI/AAAAAAAAAO8/r7rz0QVfvVQ/s72-c/mvc1.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-8233732727777878064</id><published>2007-10-24T12:20:00.000-07:00</published><updated>2007-10-27T03:33:34.435-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mal código'/><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>Error Confuso con la Memoria</title><summary type='text'>Lo peor que le puede pasar a un programador un viernes por la tarde es encontrar un nuevo error en el código en el que este trabajando. Si tiene suerte, lo podrá resolver en poco tiempo y marchara a casa tranquilo. Si no tiene tanta suerte, ese viernes saldrá tarde. Y si no tiene nada de suerte, además de salir tarde un viernes, dormirá mal ese día, y seguramente vaya el sábado a intentarlo </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/8233732727777878064/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=8233732727777878064' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/8233732727777878064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/8233732727777878064'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2007/10/error-confuso-con-la-memoria.html' title='Error Confuso con la Memoria'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-3746916879144134637</id><published>2007-10-15T13:33:00.000-07:00</published><updated>2007-10-15T14:20:37.318-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mal código'/><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>Falta de Estilo</title><summary type='text'>Vamos a ver el código a comentar esta semana. Es un trozo muy pequeño y apenas necesita de presentación.    if ( condition1 )    {        if ( condition2 )            Table[Index] = eValue1;        else            Table[Index] = eValue2;    }    else        Table[Index] = eValue3;¿Que es lo que crítico a este trozo de código?. La falta de estilo. La falta de estilo al poner las llaves de bloque. </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/3746916879144134637/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=3746916879144134637' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/3746916879144134637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/3746916879144134637'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2007/10/falta-de-estilo.html' title='Falta de Estilo'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-1293257695426534014</id><published>2007-10-08T13:38:00.000-07:00</published><updated>2007-10-08T13:57:48.579-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='foto'/><title type='text'>Poniendo Foto al Blog</title><summary type='text'>Hola a todos,Hoy vamos a añadir una imagen al blog, que no todo va a ser texto.La imagen en concreto es de una excursión por el puerto de Lunada, entre Cantabria y Burgos.</summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/1293257695426534014/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=1293257695426534014' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/1293257695426534014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/1293257695426534014'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2007/10/poniendo-foto-al-blog.html' title='Poniendo Foto al Blog'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_uk7foL2Ia2s/RwqWWgFTD9I/AAAAAAAAAMw/ebvOT2OoMj0/s72-c/imagen.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-6999777789491664995</id><published>2007-10-03T12:04:00.000-07:00</published><updated>2007-12-07T03:24:33.152-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='haskell'/><category scheme='http://www.blogger.com/atom/ns#' term='programacion'/><title type='text'>Variables en Haskell</title><summary type='text'>Hoy nos olvidamos un poco de comentar código mal hecho y vamos a hablar del mejor lenguaje del mundo. Haskell.Una de las caracteristicas que más se comentan de Haskell es que no usa variables destructivas, es decir, que una vez asignado el valor a una variable este permanece inmutable. Esto hace difícil programar código con datos que cambien de estado durante la ejecución del programa. Vamos a </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/6999777789491664995/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=6999777789491664995' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/6999777789491664995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/6999777789491664995'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2007/10/variables-en-haskell.html' title='Variables en Haskell'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-7920348127597027296</id><published>2007-09-27T08:38:00.000-07:00</published><updated>2007-09-27T10:36:15.851-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mal código'/><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>Memoria perdida en método inline</title><summary type='text'>Cierto día estaba yo programando un módulo en un programa de C++. Y casualmente tenía a mi disponibilidad una clase con funcionalidad que me venía muy bien. Esta clase seguía el patrón Singleton, así que obtengo un puntero al objeto Singleton y me dispuse a usarlo. Sorprendido me quede cuando de repente observo un incremento de 50 kilobytes en el tamaño del ejecutable. ¿Como puede ser?. En ese </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/7920348127597027296/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=7920348127597027296' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7920348127597027296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7920348127597027296'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2007/09/memoria-perdida-en-mtodo-inline.html' title='Memoria perdida en método inline'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-7972899413893592071</id><published>2007-09-08T09:47:00.000-07:00</published><updated>2007-09-08T14:57:52.924-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mal código'/><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>Como se degrada el código</title><summary type='text'>A veces nos encontramos con mal código difícil de explicar. ¿Por que alguien comete errores tan tontos?. Menos mal que con la proliferación de sistemas de control de versión podemos investigar en el historial del código y encontrar el porqué. Como en el ejemplo de hoy.Partimos de una función bien construida y perfectamente normal. Simplemente calcula un nombre de fichero a partir de un </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/7972899413893592071/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=7972899413893592071' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7972899413893592071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7972899413893592071'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2007/09/como-se-degrada-el-cdigo.html' title='Como se degrada el código'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-1145255099592718033</id><published>2007-08-24T04:07:00.000-07:00</published><updated>2007-09-17T08:26:06.925-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mal código'/><category scheme='http://www.blogger.com/atom/ns#' term='C/C++'/><title type='text'>Matemáticas chungas</title><summary type='text'>Este primer ejemplo de Mal Código hace gala de poco conocimiento matemático y de que la función ni siquiera se probo si funcionaba.Partimos de una función existente RandUnsigned que devuelve un valor aleatorio  [0, MAX_UNSIGNED_INT]. Tenemos que el valor devuelto ocupa 4 bytes. Si lo que queremos es una función que devuelva valores booleanos aleatorios, lo que no debemos hacer es lo siguiente:// </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/1145255099592718033/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=1145255099592718033' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/1145255099592718033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/1145255099592718033'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2007/08/matemticas-chungas.html' title='Matemáticas chungas'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1080419292793082962.post-7087780269607292603</id><published>2007-08-21T14:08:00.000-07:00</published><updated>2007-08-23T15:33:01.094-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='introducción'/><category scheme='http://www.blogger.com/atom/ns#' term='mal código'/><title type='text'>Presentación</title><summary type='text'>Hola a todos, Me llamo Luis Cabellos y soy programador. Realmente soy Ingeniero Informático, pero la faceta que quiero mostrar al escribir aquí es la de programador. Programador puro y duro, de los que escriben en un idioma solo entendido por máquinas llamadas ordenadores. Y el objetivo a corto plazo de lo que quiero hablar es sobre código mal hecho. Código que no hace lo que debe, código que </summary><link rel='replies' type='application/atom+xml' href='http://malcodigo.blogspot.com/feeds/7087780269607292603/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1080419292793082962&amp;postID=7087780269607292603' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7087780269607292603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1080419292793082962/posts/default/7087780269607292603'/><link rel='alternate' type='text/html' href='http://malcodigo.blogspot.com/2007/08/presentacin.html' title='Presentación'/><author><name>Luis Cabellos</name><uri>http://www.blogger.com/profile/02675326729525947648</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://lh6.google.es/zhen.sydow/RwvXKwFTEAI/AAAAAAAAAOU/UF8TWYeOHkI/foto.jpg'/></author><thr:total>0</thr:total></entry></feed>
