{"action":"created","issue":{"url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/51","labels_url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/51/comments","events_url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/51/events","html_url":"https://github.com/IIC2233-2015-2/syllabus/issues/51","id":102828274,"number":51,"title":"Cambio de los archivos txt","user":{"login":"amartini93","id":11409169,"avatar_url":"https://avatars.githubusercontent.com/u/11409169?v=3","gravatar_id":"","url":"https://api.github.com/users/amartini93","html_url":"https://github.com/amartini93","followers_url":"https://api.github.com/users/amartini93/followers","following_url":"https://api.github.com/users/amartini93/following{/other_user}","gists_url":"https://api.github.com/users/amartini93/gists{/gist_id}","starred_url":"https://api.github.com/users/amartini93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amartini93/subscriptions","organizations_url":"https://api.github.com/users/amartini93/orgs","repos_url":"https://api.github.com/users/amartini93/repos","events_url":"https://api.github.com/users/amartini93/events{/privacy}","received_events_url":"https://api.github.com/users/amartini93/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/labels/Tarea%201","name":"Tarea 1","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-24T16:05:32Z","updated_at":"2015-08-24T21:32:51Z","closed_at":null,"body":"Noté que cambiaron el orden de las cosas del archivo personas.txt, yo ya había terminado de trabajar con ese, pero cuando hago pull denuevo, me encuentro con la sorpresa de que no me compila el código (para variar), y era porque cambiaron el orden. Debo suponer que van a repetir esto y que tengo que hacer mi código a prueba de trolleos? o puedo especificar en el README el tipo de formato del archivo que use??"},"comment":{"url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/comments/134386839","html_url":"https://github.com/IIC2233-2015-2/syllabus/issues/51#issuecomment-134386839","issue_url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/51","id":134386839,"user":{"login":"mbucchi","id":5379019,"avatar_url":"https://avatars.githubusercontent.com/u/5379019?v=3","gravatar_id":"","url":"https://api.github.com/users/mbucchi","html_url":"https://github.com/mbucchi","followers_url":"https://api.github.com/users/mbucchi/followers","following_url":"https://api.github.com/users/mbucchi/following{/other_user}","gists_url":"https://api.github.com/users/mbucchi/gists{/gist_id}","starred_url":"https://api.github.com/users/mbucchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbucchi/subscriptions","organizations_url":"https://api.github.com/users/mbucchi/orgs","repos_url":"https://api.github.com/users/mbucchi/repos","events_url":"https://api.github.com/users/mbucchi/events{/privacy}","received_events_url":"https://api.github.com/users/mbucchi/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T21:32:51Z","updated_at":"2015-08-24T21:32:51Z","body":"Jajajaj no es un trolleo. Simplemente tienes que hacer que tu lector funcione para ese tipo de archivos de una forma un poco más genérica. Estos siempre vienen de la forma\r\n ```\r\n{\r\n\"property_1\" : valor_1,\r\n\"property_2\" : valor_2,\r\n...\r\n\"property_n\" : valor_n\r\n} \r\n```\r\nAunque las propiedades de los objetos no tienen por qué estar en orden, incluso dentro del mismo archivo. La idea es que crees un lector genérico y no hard codeado.\r\n\r\n_**PD**_: En ciertas situaciones *(de la vida)* te podrías topar con archivos que posean más espacios en blanco entre declaraciones o más saltos de línea. **NO** es el caso para los archivos que te daremos en esta tarea, pero esta sería una razón de peso para no hardcodear un parser de archivos.\r\n\r\nSaludos!"}}