{"action":"opened","issue":{"url":"https://api.github.com/repos/CocoaHeadsConference/CocoaHeadsConference.github.io/issues/6","repository_url":"https://api.github.com/repos/CocoaHeadsConference/CocoaHeadsConference.github.io","labels_url":"https://api.github.com/repos/CocoaHeadsConference/CocoaHeadsConference.github.io/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/CocoaHeadsConference/CocoaHeadsConference.github.io/issues/6/comments","events_url":"https://api.github.com/repos/CocoaHeadsConference/CocoaHeadsConference.github.io/issues/6/events","html_url":"https://github.com/CocoaHeadsConference/CocoaHeadsConference.github.io/issues/6","id":189304314,"number":6,"title":"Fetch event data from JSON","user":{"login":"ythecombinator","id":2644563,"avatar_url":"https://avatars.githubusercontent.com/u/2644563?v=3","gravatar_id":"","url":"https://api.github.com/users/ythecombinator","html_url":"https://github.com/ythecombinator","followers_url":"https://api.github.com/users/ythecombinator/followers","following_url":"https://api.github.com/users/ythecombinator/following{/other_user}","gists_url":"https://api.github.com/users/ythecombinator/gists{/gist_id}","starred_url":"https://api.github.com/users/ythecombinator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ythecombinator/subscriptions","organizations_url":"https://api.github.com/users/ythecombinator/orgs","repos_url":"https://api.github.com/users/ythecombinator/repos","events_url":"https://api.github.com/users/ythecombinator/events{/privacy}","received_events_url":"https://api.github.com/users/ythecombinator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-15T05:38:45Z","updated_at":"2016-11-15T05:38:45Z","closed_at":null,"body":"Hey, great page - and I'm looking forward to the conference! 🎈 \r\n\r\nWouldn't it be nice to have all the event data on a `.json` file? I mean, something like:\r\n\r\n```json\r\n{\r\n  \"speakers\":[\r\n    {\r\n      \"name\":\"Francesco Perrotti\",\r\n      \"photo\":\"images/resource/francescoperrotti.png\",\r\n      \"role\":\"Lead Developer\",\r\n      \"company\":\"\",\r\n      \"social\":{\r\n        \"linkedin\":\"fpg1503\",\r\n        \"twitter\":\"fpg1503\",\r\n        \"github\":\"fpg1503\"\r\n      }\r\n    }\r\n    ...\r\n  ],\r\n  \"schedule\":[\r\n    {\r\n      \"day_type\":\"talks\",\r\n      \"day\":\"03/12\",\r\n      \"title\":\"Credenciamento & Coffee-Break\",\r\n      \"thumb\":\"images/resource/cocoaheadsbr.png\",\r\n      \"time\":\"8:00\",\r\n      \"venue\":\"Área Comum\",\r\n      \"short_description\":\"Se for seu primeiro dia, pegue seu crachá!\",\r\n      \"long_description\":\"Aproveite esse momento para se informar sobre os workshops e demais atividades de cada sala. Converse com os participantes e tome um café.\"\r\n    },\r\n    {\r\n      \"day_type\":\"talks\",\r\n      \"day\":\"03/12\",\r\n      \"title\":\"Good Code\",\r\n      \"thumb\":\"images/resource/francescoperrotti.png\",\r\n      \"time\":\"10:00\",\r\n      \"venue\":\"Auditório\",\r\n      \"short_description\":\"O que é e como fazer!\",\r\n      \"long_description\":\"Escrever código bom não é uma tarefa simples. Vamos abordar como reconhecer melhorias e aplicadas em nossos códigos e quais features de Swift e bibliotecas podem nos auxiliar nessa tarefa.\"\r\n    }\r\n    ...\r\n  ],\r\n  \"sponsors\":[\r\n    {\r\n      \"name\":\"Mercado Livre\",\r\n      \"logo\":\"images/sponsors/4.png\",\r\n      \"website\":\"http://www.mercadolivre.com.br/\"\r\n    }\r\n    ...\r\n  ]\r\n}\r\n```\r\n\r\n### Advantages\r\n\r\n- Avoid editing markup when updating schedule or something like this - all data would be in the `.json` file.\r\n\r\n- It would be easier to make an iOS app to fetch this data - e.g. using [Alamofire](https://github.com/Alamofire/Alamofire) + [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON) - like we had with [WWDC](https://itunes.apple.com/br/app/wwdc/id640199958?mt=8) one.\r\n\r\n### Implementation\r\n\r\nAll this stuff could be easily done with an engine like [pugjs](https://pugjs.org/). Then we'd have a `compile` task which runs everytime we edit the `.json` and `deploy` one to send everything to Github Pages.\r\n\r\nIf you like the idea, I could implement and send a *Pull Request* 😄 \r\n\r\n \r\n\r\n"}}
{"actor":{"display_login":"ythecombinator"}}