<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>app &#8211; Software, Fitness, and Gaming &#8211; Jesse Warden</title>
	<atom:link href="https://jessewarden.com/tag/app/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Mon, 01 Jul 2013 19:32:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://jessewarden.com/wp-content/uploads/2016/08/cropped-Lambda2-32x32.png</url>
	<title>app &#8211; Software, Fitness, and Gaming &#8211; Jesse Warden</title>
	<link>https://jessewarden.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>One Game A Month &#8211; April Postmortem: Health Katas</title>
		<link>https://jessewarden.com/2013/05/one-game-a-month-april-postmortem-health-katas.html</link>
					<comments>https://jessewarden.com/2013/05/one-game-a-month-april-postmortem-health-katas.html#comments</comments>
		
		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Sun, 05 May 2013 14:19:21 +0000</pubDate>
				<category><![CDATA[CoronaSDK]]></category>
		<category><![CDATA[1gam]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[corona]]></category>
		<category><![CDATA[coronasdk]]></category>
		<category><![CDATA[gaming]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[lua]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[onegameamonth]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[robotlegs]]></category>
		<guid isPermaLink="false">http://jessewarden.com/?p=3539</guid>

					<description><![CDATA[I&#8217;ve entered into the One Game a Month party. It&#8217;s like Ludum Dare, a challenge to make, and most importantly FINISH, a game in a set amount of time based on a theme. What makes #1GAM unique is you have an entire month and it spans an entire year. They have a thriving Twitter and [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve entered into the <a href="http://www.onegameamonth.com/">One Game a Month</a> party. It&#8217;s like <a href="http://www.ludumdare.com/compo/">Ludum Dare</a>, a challenge to make, and most importantly FINISH, a game in a set amount of time based on a theme. What makes #1GAM unique is you have an entire month and it spans an entire year. They have a thriving <a href="https://twitter.com/search?q=%231gam%20%23onegameamonth&amp;src=hash">Twitter</a> and <a href="https://plus.google.com/communities/117275686212402755276">Google+ group</a>.</p>
<p>I&#8217;ve entered strictly for learning purposes and to see if I can actually finish something. Game development is surprisingly very different from application development, and it&#8217;s nice to feel really stupid again.</p>
<p><span id="more-3539"></span><strong>Synopsis</strong></p>
<p>I fell back to my roots and attempted to build a mobile application that used &#8220;gamification&#8221;. Basically, you make the application fun through adding gaming elements to it. I&#8217;m good at building applications so figured if I fell back to my roots and adding just a little bit of game dev to it, I&#8217;d be able to create a lot more in the same period.</p>
<p>I changed my lifestyle last year in March of 2012 through adding fitness and changing my diet. A year later, I feel better and look better. I wondered how I could help others reach the same goals. While people tell you it&#8217;s 50% diet, 50% exercise, I felt for me 80% of the challenge was diet. I know nothing about cooking beyond what I&#8217;ve taught myself. My mom and grand mom taught me some stuff, but for whatever reason as I kid I just never really cared to better myself at it.</p>
<p>So, I made a list of all the smaller things I did that had longer term impact. I realize Type A Personality techniques of making huge changes with hardcore willpower are not the most effective way at changing people&#8217;s behavior. I&#8217;ve also read the statistics on how many actually keep weight off after they&#8217;ve lost it, and the time people devote to foodÂ preparationÂ vs.Â exercise. For Americans, it&#8217;s pretty dire. I took that list I wrote, and selected the ones that were the low hanging fruit, and hopefully easy attainable without requiring a Doctor&#8217;s note to attempt.</p>
<p>If you look at most nutrition advice, at least online or in books, it&#8217;s usually huge lifestyle changes. That&#8217;s asking a lot of people, and the #&#8217;s prove it doesn&#8217;t lead to longterm positive lifestyle changes. What DOES work is small habits that lead to longer term change. If you change a bunch of them, they collectively, slowly, lead to a more healthier, and more importantly, a self-empowered, individual. I started to make the application I wish I originally had: simple tips I could try everyday that didn&#8217;t totally shock my way of life, and that I could actually accomplish, and feel good about.</p>
<p><strong>Goals</strong></p>
<p>Give people simple healthy diet changes to try. From making people healthier, feel better, or empowering them to learn on their own. Giving someone 1 thing to try every day, even multiple times if they wished, to practice at being moreÂ healthy without having to focus 100% of their life on doing so. My hope was it&#8217;d be the least invasive thing in their life, thus hopefully maximizing the success rate. Kata&#8217;s are simpleÂ exercisesÂ you do in martial arts to practice and get better. I wanted something like that in a diet context vs. &#8220;OMG CHANGE YOUR LIFE!&#8221;</p>
<p>Additionally, they&#8217;d have both motivation in the form of videos and citations that show the positives of even minor diet changes as well as a world wideÂ achievementsÂ bored to see how many others had already accomplished each kata (or simpleÂ exerciseÂ  to also help with motivation.</p>
<p><strong>Actual Results</strong></p>
<p>I didn&#8217;t finish.</p>
<p>That said, all of the original katas are in the app, and you can try them, and have a record of your accomplishments. So it&#8217;s technically an early alpha, heh.</p>
<p><img fetchpriority="high" decoding="async" style="padding-left: 8px;" alt="" src="http://jessewarden.com/archives/blogentryimages/onegameamonth/apr/example-1.jpg" width="320" height="480" align="right" /></p>
<p>I ran out of time for motivations, and theÂ achievementsÂ board was slowed because it was the first time I used <a href="http://www.coronalabs.com/products/corona-cloud/">Corona&#8217;s Cloud</a> API.</p>
<p>The main problem with the data entered currently is that 3 important things are missing. I wanted to ensure all health recommendations I had were based on science that had at least 1 scientific study/citation. A lot of these studies are extremely wordy. Most people just want to know either WHY something isÂ healthy or how it&#8217;s POTENTIALLY healthy. The later is horrible in terms of how we humans operate, but it&#8217;s also a good tool to get people to do what you want them to do. Anyway, collecting +Â summarizingÂ all of that information is a ton of work. I&#8217;m constantly reading nutrition books and articles and taking notes, just not finished yet.</p>
<p>The other issue is turning those successes intoÂ congratulatoryÂ notes. When you complete a kata, you get a success message. For example, although I assumed users didn&#8217;t do drugs nor smoke, even just stopping smoking for example has a swath of awesome things that <a href="http://whyquit.com/whyquit/a_benefits_time_table.html">happen to your body</a>. It&#8217;s important you not only reward people forÂ accomplishingÂ the simpleÂ exercise, this builds self-confidence in them, but also you teach them WHY. Once someone knows the why and has self-confidence, change is afoot. Writing those is tough&#8230; even tweet size ones.</p>
<p>Finally, the questions are sometimes backwards; I need to add a boolean to the VO&#8217;s to say if yes leads to completing or starting the kata&#8230; or just make all the questions have &#8220;yes&#8221; lead to starting the kata. If you use the app now, just say yes to everything.</p>
<p><strong>What Went Wrong</strong></p>
<p>The main problems were:</p>
<ul>
<li><span style="line-height: 16px;">not enough free time</span></li>
<li>still learning nutritional science</li>
<li>Corona&#8217;s lack of basic GUI components and redraw invalidation</li>
<li>not enough documentation on Corona Cloud + having to learn a new API</li>
<li>Responsive Design</li>
<li>explaining to people how no longer eating their favorite unhealthy things is fun&#8230; in a mobileÂ application&#8230; yeah.</li>
</ul>
<p><strong>Free Time</strong></p>
<p>As usual, work both in client projects as well as outside took a lot of time. My main current client has a huge feature release coming up that we&#8217;ve all be tag teaming. This requires a lot of consistent communication as well as on-site visits which means I&#8217;m travelling a lot.Â I also travelled back to Georgia to sell my house. I&#8217;mÂ uncompromisingÂ in my workout schedule and picking up my kids from school which is 2 hours minimum a day. Also, it took me about 5 days to recover from March #1GAM burnout. Finally, <a href="http://webappsolution.com">my company</a> released the <a href="http://webappsolutioninc.github.io/flow-mvc">FlowMVC</a> framework based on the <a href="http://deftjs.org/">DeftJS</a> framework that all works atop <a href="http://www.sencha.com/">Sencha</a>, and that took a lot of time to ensure we got the alpha out as well.</p>
<p><strong>Nutrition Knowledge</strong></p>
<p>I&#8217;m notÂ classicallyÂ trained in nutrition, so am learning the same way I learned how to program: read online articles, read books, and asking questions of those who appear to be experts. Suffice to say it&#8217;s just as hard as programming to get to the real truth; it&#8217;s all masked in subjectivity and utter untruths. Making definitive statements is VERY hard to back up with science. America in particular has a ton of science around how to cure sickness, but very little on how to keep us not-sick via good nutrition. Frustrating. You have tread carefully when utilizing Qualitative science from qualified individuals. Bottom line there are a few facts, and a few of studies that reach conclusions but aren&#8217;t facts.</p>
<p>Sadly, a lot online is useless. At least with programming you can use sites like <a href="http://stackoverflow.com/">Stackoverflow.com</a>Â and communities that reference certain blogs/articles to find the good stuff. For nutrition, there are a few sites like that, but they don&#8217;t always cite their sources, nor differentiate between &#8220;the facts&#8221; and &#8220;the guesses based on the following studies which may/may not have contradictory studies&#8221;.</p>
<p>I wanted the app to have solid science, and getting solid science as a n00b is hard.</p>
<p><strong>Corona&#8217;s App State</strong></p>
<p>While Corona has made great strides on the widget front, their gaming focus, both as a company and in the runtime features are clearly biased. Even the <a href="https://github.com/coronalabs/framework-cloud">Corona cloud library</a> they posted on Github uses &#8220;name spacing&#8221;, aÂ pseudoÂ copy of how Python handles classes and packages. This, instead of using the proper class/module packages they introduced about a year ago. I reckon they did this to cater to game devs who freak out if you do 2 dots to get a &#8220;module&#8221; whereas for application developers, it&#8217;s just expected if you&#8217;re from a traditional OOP background and you get the time to actually think about class structure that often doesn&#8217;t change as much as it does in gaming.</p>
<p>This seems like a digression but it&#8217;s not; the simple fact they&#8217;re game focused makes even simple things application developers expect to be non-existent. For example, I DARE you to center a multiline block of text on the screen with arbitrary widths&#8230; and then put a different block of text in it. Works no problem in Flash/Flex and HTML(!). Corona doesn&#8217;tÂ recalculate/remeasure, and your registration point is off, and using simple x and width values to center the text suddenly fail. If you just create another text field, no problem, but even game developers know you object pool where possible.</p>
<p>Layout in this case is made worse as they abstract away device specific text fields. While it&#8217;s nice to use native device (iOS/Android) text fields that do render well, they don&#8217;t always render like you think on the simulator, namely the native options with backgrounds/borders disabled. Haveing to compile to view on the device is just awful. It defeats the whole purpose of Lua being an instantaneous code reload solution. If I wanted to recompile andÂ redeployÂ to the device, I&#8217;d use native XCode and Objective C.</p>
<p>These basic needs make building higher level abstractions that are actually efficient harder. As components scale in size and complexity,Â especiallyÂ data driven ones, you need some form ofÂ invalidationÂ routine. Invalidation is a huge topic <a href="http://jessewarden.com/2007/01/invalidation-strategies-for-flash-player.html">I&#8217;ve</a> <a href="http://jessewarden.com/2008/03/how-to-fix-the-flash-cs3-components.html">written</a> <a href="http://jessewarden.com/2005/06/dataselector-data-interaction-core-of-the-v2-framework-for-your-views.html">about</a> <a href="http://jessewarden.com/2009/03/creating-dynamic-lists-in-flex-flash.html">before</a>, but suffice to say it prevents common race conditions, is an efficient redrawÂ mechanismÂ for runtimes like Corona that share both code execution and redraw on the same thread (see <a href="http://updates.developmentarc.com/flex_4_lifecycle.pdf">elastic</a> <a href="http://www.quilix.com/node/61">race</a> <a href="http://books.google.com/books?id=Gn1fnqBIUEgC&amp;pg=PA363&amp;lpg=PA363&amp;dq=ted+patrick+elastic+racetrack&amp;source=bl&amp;ots=bfhJonDoW0&amp;sig=nyN5BaCrh1sEi7sJbpn3tF5v9Uk&amp;hl=en&amp;sa=X&amp;ei=iWWGUcL3OIeC8ATv44HYAQ&amp;ved=0CG0Q6AEwBg#v=onepage&amp;q=ted%20patrick%20elastic%20racetrack&amp;f=false">track</a> <a href="http://techie-jackie-blogs.blogspot.com/2012/11/elastic-racetrack-for-flash-9-and-avm2.html">articles</a>Â <a href="http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/">discussing</a>Â <a href="http://www.senocular.com/flash/tutorials/asyncoperations/">this</a>), and solve order of operation errors for developers using components that require multiple properties to be set to work.</p>
<p>I&#8217;m in the process of building one on top ofÂ theirÂ enterFrame, but it&#8217;s like a flash back to 2001 in Flash MX; i.e. it&#8217;s a lot of work for 1 person to complete. A company like Corona should have the resources to handle this. Either they don&#8217;t have the people working for them that know these problems, or they&#8217;re focused on other things. I think it&#8217;s the latter; game specific features like their 2.5 graphics and cloud initiatives whilst open sourcing the components are signs. That&#8217;s fine, but oy vey&#8230; pain&#8230;</p>
<p>Another annoying thing is some widgets/components don&#8217;t work with groups. I get why, but this makes layout a royal journey into frustration and workarounds, and just generally nasty looking code.</p>
<p>I will say the widgets they DO have are great overall and <a href="https://github.com/coronalabs/framework-widgets">open sourcing</a> them was a dope move. The API consistency, while I get challenging, needs to be improved in both the libraries they distribute and in their internal SDK.</p>
<p><strong>Responsive Design (lack thereof)</strong></p>
<p>Because of the above crunch, I didn&#8217;t get a very responsive design. This lead to some devices not scaling properly&#8230; which sucked. For games, you can just scale up or down; Corona does this automatically. For applications, however, you basically do a &#8220;<a href="http://en.wikipedia.org/wiki/Responsive_web_design">responsive </a><a href="http://mashable.com/2012/12/11/responsive-web-design/">design</a>&#8220;. While most web sites prefer to use <a href="http://alistapart.com/article/responsive-web-design">media queries</a> and <a href="http://www.html5rocks.com/en/mobile/responsivedesign/">funky</a> <a href="http://alistapart.com/article/fluidgrids">fontÂ measurements</a>Â to accomplish this, using things like Sencha, Flex, or even Corona, and you can simply have each component size itself and it&#8217;s children. As the application grows, this works out well because they&#8217;ll fill whatever space you tell them too.</p>
<p>The kicker here is &#8220;if the design supports it&#8221;. For example a toolbar can scale infinitely horizontally, but tends to stay 60 pixels high. On most smartphones, this is fine, but on tablets,Â especiallyÂ the high rez ones, it gets a bit too small to work. At that point you fall back to another nav. I didn&#8217;t even get that far&#8230; as soon as I went from a Nexus One to a Droid X, my app couldn&#8217;t even handle the extra 24 pixels.</p>
<p>I put a 640&#215;960 mask on stage and called it a day.</p>
<p><strong>Corona Cloud</strong></p>
<p><a href="http://coronalabs.com/blog/2013/03/20/corona-cloud-1-0-is-here/">Corona Cloud</a> is awesome. The documentation is ok. The example code is awesome, although completely ignores Corona&#8217;s package structure and they&#8217;ve foregone using metatable vs. closure based classes for the same reason a lot of JavaScript libraries do the &#8220;large object on global window&#8221; to avoid the closure vs. Object.prototype debates. Anyway, nothing major here, just hard to learn a new API in such a short time frame with all the other challenges going on, thus compounding it.</p>
<p><strong>Making Health Fun</strong></p>
<p>For me, I was sick and tired of being sick and tired. Once I make my mind up, there&#8217;s no changing my mind. I have discipline with certain things I set my mind to. I get that to make broader changes to the world, you need to be moreÂ pragmaticÂ about what you expect out of the general populace. I took the approach of &#8220;simple with positive messaging as instant reward and global awareness through achievements of other users&#8221;. The &#8220;simple&#8221; was simple, the CoronaÂ cloudÂ achievements isn&#8217;t something I need but totally get how others need thatÂ motivation.</p>
<p>The &#8220;positive messaging&#8221; though is rough. When you look at the back of a &#8220;Matt&#8217;s Organic Orange Juice&#8221; container for example, they&#8217;ll go off about Vitamin D, and how it&#8217;s greatest thing for you evarrr. It clearly was written by a talented marketing copy writer and put through a few revisions. Trying to do that, for every single kata, was rough. As you can see, I can write a lot, but saying a lot with few words is HARD. Fun, but hard.</p>
<p><strong>What Went Right</strong></p>
<p><img decoding="async" style="padding-right: 8px;" alt="" src="http://jessewarden.com/archives/blogentryimages/onegameamonth/apr/example-2.jpg" width="320" height="480" align="left" />Finding a fitting design and icons I needed on <a href="http://graphicriver.net/">GraphicRiver</a> was <a href="http://graphicriver.net/item/zweir-complete-mobile-interface/2617224">uber</a> <a href="http://graphicriver.net/item/70-food-and-drink-icons/3543222">easy</a>. Getting the design to work in Corona, my component issues non-withstanding, also easy.</p>
<p>Setting up the MVC structure, also easy. I hadn&#8217;t messed with my port of <a href="https://github.com/JesterXL/Robotlegs-for-Corona">Robotlegs for Corona</a> for almost 2 years(!) since those kind of frameworks are more used for applications and less so games, so took the opportunity to bring it up to speed.</p>
<p>Coming up with simple things that are healthy for people to try was actually pretty easy as well. I just charted my own path andÂ rememberedÂ all the hard things I did, and modified the order based onÂ difficulty and organized into levels of lifestyle impact. The app was responsive on the device, and I only had minor masking problems with the Corona widgets. Once I got some good low level components, building the GUI&#8217;s was pretty quick and easy.</p>
<p><strong>Key Takeaways</strong></p>
<p>I think like my Februrary entry, I&#8217;d like to come back to this, finish it, and polish it. Even in application development, you can get into &#8220;the grind&#8221;, the last, brutal 10%. It&#8217;s easier to power through if you believe in the final product.</p>
<p>It&#8217;s also clear I shouldn&#8217;t do anything more GUI heavy without a Corona component framework ready before I start. Oh goody, another side project! *face palm*</p>
<p>I need to organize my notes about nutrition more. Most of it is for me related to fitness vs. justÂ pragmaticÂ well being. That and I forget what research/study/book told me what, and whether it was a &#8220;study&#8221; vs. a &#8220;paper&#8221; vs. a &#8220;theory&#8221; vs. a &#8220;scientific fact&#8221;&#8230; which greatly affects the other research/beliefs it&#8217;s related to. Like programming.</p>
<p>Finally, I need more time with Corona Cloud. It&#8217;s really cool, just haven&#8217;t had enough time to play to learn it more.</p>
<p><strong>Conclusions</strong></p>
<p>May: Go back to the 2D side scroller. From myÂ FebruaryÂ entry, it&#8217;s clear I liked making Box2D levels, and need more practice in making them, even if I don&#8217;t finish.</p>
<p>Once again, I&#8217;m burnt, and need a few days to recover. This time, though, I knew it was coming and planned for it: notes for May dev all ready, concepts documented from awhile ago when I&#8217;m ready to nail down an idea, and tons of alcohol and XBox games while I recover.</p>
<p>The <a href="https://github.com/JesterXL/Health-Katas">source code</a> is up on Github and you can <a href="https://play.google.com/store/apps/details?id=com.jessewarden.healthkatas">install on your Android device here</a>Â (although I&#8217;d wait until the version says &#8220;beta&#8221; hah).</p>
]]></content:encoded>
					
					<wfw:commentRss>https://jessewarden.com/2013/05/one-game-a-month-april-postmortem-health-katas.html/feed</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
	</channel>
</rss>
