<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Philippe Batigne on Medium]]></title>
        <description><![CDATA[Stories by Philippe Batigne on Medium]]></description>
        <link>https://medium.com/@hi_im_philippe?source=rss-1a110fcaa0cb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7KXC4ZpGr-wXFHHZ.jpg</url>
            <title>Stories by Philippe Batigne on Medium</title>
            <link>https://medium.com/@hi_im_philippe?source=rss-1a110fcaa0cb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:53:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hi_im_philippe/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Hackathon Project: Numus Pets tech overview]]></title>
            <link>https://medium.com/@hi_im_philippe/hackathon-project-numus-pets-tech-overview-c946d8f148b9?source=rss-1a110fcaa0cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c946d8f148b9</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[vuex]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Philippe Batigne]]></dc:creator>
            <pubDate>Tue, 28 Nov 2017 23:27:26 GMT</pubDate>
            <atom:updated>2017-11-28T23:27:26.259Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This post goes into depth about the project I made for Captial One’s Code &lt;FAM/&gt; Hackathon and you can read about </em><a href="https://medium.com/@hi_im_philippe/my-first-hackathon-34be4ba7c0a3"><em>my experience and the project here.</em></a></p><p>I’ll just assume you’ve read the post describing the project, so I don’t have to reiterate/re-pitch the idea in full.</p><h3>The Tech</h3><p>A few days before the hackathon we started up a Google doc and the first task was to pool our skills and figure out a common denominator that we could all use and be efficient. Being the forward thinking web developers we are, we went into the hackathon thinking Ruby on Rails with Vue as a front-end to make things really smooth and asynchronous.</p><p>When we all met up at the hackathon and spoke about the idea we wanted to roll with, we realized we don’t need to actually capture any data and store it. That would be a complete waste of time and effort, to build out the models, save all the data, retrieve it all. Granted Rails makes it a breeze, it would be a complete waste of time since all we need to really show is a proof of concept and don’t need a 100% fool proof and production ready product. So we cut out Rails altogether and just decided on Vue.</p><p>This was a challenge because we really only effectively had one Vue expert. I’ve done a bunch of React work, and the other two haven’t really used it at all before now, but we’re all web developers so we picked it up relatively well. Though shout-out to Josh helping us all out figuring out how to use the damn Vuex store.</p><h3>Computing Hunger and Mood</h3><p>So the hunger and mood system design was interesting, because I’m trying to think of my own hunger/mood and how to translate that into an application. We need to define a max of how much one can eat and also hold where we are at.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0G7tbkCE6fg4Q936dkyJHg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E0MQ_G--X7aquAogSBYxPw.jpeg" /><figcaption>My notes and thought processes to figure out how to implement these mechanisms</figcaption></figure><p>So the hunger became a percentage of how much they spent vs the total limit, so if they kept spending, you’d eventually hit 100%. Also like hunger, when you eat you aren’t done eating forever, the food digests over time, so I included a 1/7 appetite decay, so over time you’ll need to feed it again. I gave arbitrary values to what means “hungry” vs “satisfied” vs “overstuffed”. <a href="https://github.com/joshporter1/cap-one-hackathon/blob/master/src/components/UIComponents/Cards/PetCard.vue">(I’ll be referencing code from src/components/UIComponents/Cards/PetCard.vue)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*TGnuHaqxo2Yplpe1MOgz-A.png" /><figcaption>Ignore lines 184–194, we needed to showcase the full range of values, so I faked data.</figcaption></figure><p>With this information, it led me to the second page. How do I crunch the transactions into where we are today? So I took a person’s transactions, sorted them by date, and started with the first transactions, we’ll assume that’s the first time they got the card. It was also at this moment I realized I didn’t establish a baseline appetite: does a pet start off hungry or satisfied (50%)? When you think about your credit limit, you would logically start off hungry. When you think about getting a pet for the first time, you would logically start off satisfied. After deliberating with the team, we made the choice to start off satisfied, 50%, and continue to crunch the transactions from there. I also take the difference in days from the previous and next transactions and compute the decay between the two.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*c2LaFlO7Kn82CnaubAhL0Q.png" /></figure><p>Mood was a harder to crunch since we needed log in data and notifications. So I made a few tiers of people who are better or worse at checking their accounts, gave them a number 2–5, let’s call this “Checking Ability”. Then, I would grab the oldest transactions, and figure out how many weeks until today (difference in days/7). Once I get the amount of weeks, I would generate a random number from 1 to their “Checking Ability” and if I got their “Checking Ability” number, they would have checked their notifications and all for that week.<em> So a 2 Checking Ability would have a 1 in 2 (50%) chance of checking their pet that week, but a 5 Checking Ability would have a 1 in 5 (20%) chance, thus a lower chance of actually checking. My faux statistical math could be off, but whatever, we’re just trying to generate some data.</em></p><h3>Vue</h3><p>I’m not going to show much code because we didn’t do anything particularly special or earth shattering. It was pretty much your standard Vue app, but I will say, as a React developer, it was pretty easy to pick it up. A standard vue page is divided into three parts: template, script, style. All your html goes into template, no need to change how you rewrite your html tags like you do in React with JSX. Script is where you put all your Vue code with your imports. Lastly, style is where you can put your CSS so that way it’ll be localized to solely that page — we didn’t do this much since we used an existing package for our front-end. If you want a quick and small file to see how it’s laid out, check out the <a href="https://github.com/joshporter1/cap-one-hackathon/blob/master/src/components/Dashboard/Views/UserProfile.vue">UserProfile file</a>.</p><h3>The Vuex Store</h3><p>There is a concept of a store in React, but I have yet to get a proper understanding of how to build one out. I get the concept, but on paper it makes zero sense, but the team’s Vue expert Josh, <a href="https://github.com/joshporter1/cap-one-hackathon/blob/master/src/store/index.js">banged out a quick and dirty store</a> so we could quickly access the data that the API was spitting out and not hit the endpoints every single time we wanted data — so let’s see what that does and how it works with the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*LglmOoLylRWhV4NUOAGqjg.png" /></figure><p>So here’s our API endpoints all laid out. The subtle documentation about what’s required or optional is great. Thanks, Josh!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*7fORJsVBYHxBQezsUnb62A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*S7-MAvEq2gePvIi44XGA8w.png" /></figure><p>The makeRequest function is how we simplify making the api calls consistent and reliable.</p><p>Skipping down a lot of lines, you’ll find these actions that use the makeRequest function to hit the API server. In the respective views we’ll load what we need using these functions. Then we can use the store’s attributes to access the data instead of always fetching the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*Fsiqumw9Zw7CvAsuFnE3DQ.png" /><figcaption>file: <a href="https://github.com/joshporter1/cap-one-hackathon/blob/master/src/components/Dashboard/Views/AdultDash.vue">src/components/Dashboard/Views/AdultDash.vue</a></figcaption></figure><p>So here’s how that store works in practice. I’ve left out the import statement that calls in the <em>mapActions</em> function, but that’ll bring in the functions defined in the array into the Vue component, so you can use the store and populate data into it to retrieve it. So later on we can do things like the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*TBhOTmGXgmpjgMGH8D2zhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*vdG0sQ9EjX6bgjg5xRzN2Q.png" /><figcaption>Here’s the function for balance and how to use it.</figcaption></figure><p>So now that this <em>accounts_details</em> is populated from the store, the balance function can return actual data, and we do so via <em>${{balance}}. </em>Pretty neat and clean, right?</p><h3>Vue Paper Dashboard</h3><p>Before we continue, <a href="https://cristijora.github.io/vue-paper-dashboard/#/admin/overview">just check out the demo</a>.</p><p>Looked great right? And it’s built over <a href="https://getbootstrap.com/">Bootstrap</a> so it’ll look great with any size screen and you can easy scaffold a project. I think this early find and pick was very instrumental to our execution. It made figuring out what design and layout we needed quick and easy. We didn’t have to worry about having flashy enough widgets and assets which helped us focus on the core development of the project.</p><p>Having this be my first go at Vue, I definitely see the appeal. It was almost stupid easy to look at a Vue file and understand what’s going on. I’m sad that it’s not as in demand as it should be, but I highly recommend it being looked at for personal projects. Also the concept of a “store” was more cemented for me and I plan to seriously look at it more in React. It created such reliable code and it felt like passing an already instantiated object was way more efficient than just always pinging the API all the time.</p><p>Well I hope this post was insightful and encourages you to check out Vue and/or try your skill at a hackathon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c946d8f148b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First Hackathon]]></title>
            <link>https://medium.com/@hi_im_philippe/my-first-hackathon-34be4ba7c0a3?source=rss-1a110fcaa0cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/34be4ba7c0a3</guid>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[Philippe Batigne]]></dc:creator>
            <pubDate>Fri, 10 Nov 2017 20:44:19 GMT</pubDate>
            <atom:updated>2017-11-11T16:06:41.313Z</atom:updated>
            <content:encoded><![CDATA[<p>If you asked me what do I think of hackathons before November 4th, 2017, I would immediately think of teams of developers and designers working feverishly towards a solution. Perfectly staying up all night, and at the end with a, less than pretty, but very functional solution. I thought the rush of developing at such speed would be the equivalent to an adrenaline shot. I was wrong. I was right in some ways, but man was I wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*8XzVWMt8pN8BalvXNZNqJQ.jpeg" /><figcaption>Early team meeting (left to right: Josh, myself, Femi, Izzy) trying to iron out out idea</figcaption></figure><p>To give some context, I went to Captial One’s Code &lt;FAM/&gt; Hackathon. They wanted innovative and new family solutions for their business. They have a bunch of mock data for us to use, and that’s it. You can make anything you want: mobile apps, Alexa/Google Home voice app, web applications — it’s all fair game. We had from 11:30 am Saturday to 2:00 pm Sunday to code and create whatever you wanted. With daylight savings ending <em>(giving us an extra hour!)</em> we had about 27 and a half hours to build a good looking proof of concept.</p><p><em>No, I won’t keep you waiting. My team, The Banana Union, lost.</em></p><p>The team did really solid work and not knowing 2 of the members, we worked extremely well. We all came out of the hackathon knowing ourselves way more than when we came in. From how we handle stress, workload, asking for helping, and quick problem solving — it was all very sobering. In this setting, you can’t take much personally because it’s all about pumping out an app in a day with very little time to spare. But I think the biggest mistake I make was the sleep.</p><p>I went in thinking I’d be up the whole time, even bought two 4-pack red bulls, but I stayed up until about 11:30 pm until I told myself I’d take a 30 minute nap (the event provided some folding beds) and naturally I woke up still tired. Then I did it again around 2 or 3 am with roughly the same result but a little more rested. Though I was surprised about is how many people went home or slept, a full room of people quickly became empty by midnight.</p><p>So what did we make? Numus Pets. (<em>Numus is Latin for money</em>) Its a way for kids and young teens to get used to the concept of credit. Credit is a science, from being careful how much you can spend and monitoring how to you got to where you are, it’s a lot. And the monitoring of your credit, with transaction table and charts, it’s a little much for a kid who is just wants to play his games or watch more Netflix. So how do we teach them about credit usage but make it something that’s simple easily digestible for them? Treat credit like a pet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FCzCdpGcwPdcn2p83GGLdg.png" /><figcaption>Their pet’s doing alright food-wise, but could use some virtual “pets”</figcaption></figure><p><em>We made one assumption. A parent has a credit card, say with a $10,000 limit, and their child would have a card with a small portion of their parent’s credit, say 30–40 bucks, and whatever the kid would spend by week’s end would go back to the designated amount.</em></p><p>So first concept we tackled was the credit limit. What is something that could represent this concept of not going too high but not using the card at all? Food and hunger. The pet has an appetite, that is “fed” via transactions. You don’t want to overfeed it (maxing or close to maxing your credit) nor do you want to let it starve to death (not using your card very much).</p><p>For the kids who don’t have much to really spend on, we made Numus Bank. They’ll be able to put an amount of their credit into a savings account so they can save and roll their savings towards a bigger purchase as allowed by the parent. This will count as a transaction and will “feed” your pet as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QX3lGUbRdiUB0rpqlKwyIA.png" /><figcaption>Depositing some money into the bank!</figcaption></figure><p>Now how do we tackle and encourage monitoring? They feed the pet the right amount, but you don’t want to completely ignore your pet, so we introduced the concept of your pet having feelings via a happiness meter. Each time you log in, you boost the mood of your pet. You give your pet virtual “pets” via acknowledging notifications as read. These notifications can be about tips, issues, transactions, just things that will help you know what’s going on with your account and encourage good credit usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3sDx3RRlN6fTBF51yq8XQ.png" /><figcaption>Acknowledged all the notifications! Happy pet!</figcaption></figure><p>Lastly, what about the parents? How do they benefit from this? Well when they log into their account, they can see their kid’s pet, and can easily see if they’re using it well or even checking in. It’s a quick way to gauge how their kid is using their card.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C2FUbiV_iYsSAMDAiKhDOA.png" /><figcaption>Parent view</figcaption></figure><p>Capital One turned off the server where we were getting our data so these screen shots are the only thing I have. The app was smooth, the pets did a little dance, it was really good looking so imagine that on these screen caps. But the whole thing was done in <a href="https://vuejs.org/">Vue</a> and <a href="https://github.com/cristijora/vue-paper-dashboard">Vue Paper Dashboard</a>. I’ll write up a more technical post about it later, <a href="https://github.com/joshporter1/cap-one-hackathon">but here’s the repo</a>.</p><p>If you asked me how I enjoyed the hackathon 6 pm on Saturday, I would have told you I am loving it and want to do it again. If you asked me again at 4 am on Sunday, I would have told you that I hate it and wouldn’t do it again. It’s draining, mentally and physically. Trying to evaluate the best way to do a certain thing, the stress of wanting to win the $25,000 to $10,000 prize, thinking “what did we miss, how should this be pitched, what could put us above the rest?” — it took it’s toll on everyone. Now after it’s all said and done, would I do it again? Yup. Next time around, I would have scheduled 2 solid hours of sleep, because I was effectively useless between midnight and 4 am, and that really affected my overall mood about it all. But I strongly encourage all developers to go to a hackathon and try it out!</p><p><a href="https://platform-capitalone.bemyapp.com/#/projects/59fe182329051f0004f461a0"><em>Oh, and the winning project was from a solo developer, his project is called Atlas.</em></a><em> Let’s hope that link never goes dead one day.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34be4ba7c0a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>