<?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 Spyros Giannakakis on Medium]]></title>
        <description><![CDATA[Stories by Spyros Giannakakis on Medium]]></description>
        <link>https://medium.com/@spygi?source=rss-91ca26dbff76------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DC-ZejPJNw41g3eV3Siy0w.jpeg</url>
            <title>Stories by Spyros Giannakakis on Medium</title>
            <link>https://medium.com/@spygi?source=rss-91ca26dbff76------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:11:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@spygi/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[Scalable, cost effective web architectures for Heroku]]></title>
            <link>https://medium.com/hackernoon/scalable-cost-effective-web-architectures-for-heroku-eb8f1f55a4b6?source=rss-91ca26dbff76------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb8f1f55a4b6</guid>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[npm]]></category>
            <dc:creator><![CDATA[Spyros Giannakakis]]></dc:creator>
            <pubDate>Thu, 13 Jun 2019 21:49:11 GMT</pubDate>
            <atom:updated>2019-06-26T14:39:37.953Z</atom:updated>
            <content:encoded><![CDATA[<h3>Recipes for scalable, cost effective web apps in Heroku with npm, NodeJS</h3><p>I am using <a href="http://heroku.com/">Heroku</a> to deploy a web application. The application is starting out as an MVP for a startup and until real users use it, I want the deployment to be as cheap and simple as possible, yet future-proof.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDgTuf-R_3WWj9BcldhWaw.png" /></figure><p>For example, I want to have a solid foundation for the code by splitting the frontend from the backend. There are many ways to achieve that. One of them is on the development/build stage, which means that a change in the frontend for example does not require to build, run tests, restart etc. also the backend. In big projects this can increase built times and hinder significantly developer productivity.</p><p>Another (better) way is to separate builds but deploy/serve the backend and frontend from the same server. This is not very scalable nor cost effective in the long run: we may find down the road for example that we need more backend instances to handle the load without necessarily increasing the number of frontend servers. The ideal split therefore, is ensuring the frontend and backend don’t share any data (apart maybe from configuration on where to access each other), communicate entirely over an API <em>and</em> can be built &amp; deployed independently (aka the “<a href="https://en.wikipedia.org/wiki/Microservices"><strong>micro-services</strong></a>” way).</p><p>For convenience and since the codebase and team is very small (em, just me actually 🙋‍♂) I want to use the <a href="https://en.wikipedia.org/wiki/Monorepo"><strong>monorepo</strong></a> approach. We are still in an MVP phase and the API as well as database schema will evolve over time. Having everything under one repo is convenient: any full-stack developer can build features without switching to different codebases and the whole development environment can be started with a single npm start command. More importantly in the case of JavaScript, it enables also code reuse between the frontend and backend (aka <a href="https://stackoverflow.com/questions/48008502/what-is-an-isomorphic-application"><strong>isomorphic apps</strong></a>). The monorepo approach has <a href="https://danluu.com/monorepo/">scaled well for tech giants</a> like Google and Facebook so I don’t see how it wouldn’t work for a small web app.</p><p>To sum up, my (prioritised) requirements are:</p><ul><li>The frontend and backend are as independent as possible.</li><li><a href="https://www.python.org/dev/peps/pep-0020/">Simple is better than complex.</a></li><li>Stay within the free tier of Heroku (or as cheap as possible).</li><li>Use a single repo to hold the code.</li></ul><h4>TL;DR</h4><p>Given some Heroku restrictions, it turns out it’s not super trivial to satisfy all 4 requirements. I found 2 ways to accomplish this but neither are completely satisfactory. The situation would be a lot simpler if the monorepo requirement is dropped: the overhead that is required to make it work with Heroku probably outweighs the advantages for most projects.</p><p>Since others are <a href="https://stackoverflow.com/questions/36504768/deploy-the-backend-and-frontend-on-the-same-heroku-app-dyno">asking too</a> and many solutions out there <a href="https://stackoverflow.com/a/41466169/2259743">don’t</a> <a href="https://medium.com/@nadayar/heroku-fu-multiple-servers-on-one-dyno-6fc68d57b373">work</a> anymore (or <a href="https://stackoverflow.com/a/37283426/2259743">require upgrading</a> to the hobby tier), my goal with this blog post is to clarify the current situation and explore the various tradeoffs. The tech stack I am using for my app and the examples here is NodeJS and Express for the backend, Angular in the frontend, with npm scripts to build/serve everything.</p><h4>Some Heroku basics first</h4><p>The usual Heroku use-case is that you have a code repository that you deploy using git push heroku master. This deploys an <em>app</em>, so there is a 1:1 relationship between repositories and apps. Each app can run on multiple <em>dynos</em> (think of them as the Heroku containers). What the dynos run is defined as a <a href="https://devcenter.heroku.com/articles/process-model#process-types-vs-dynos"><em>process</em></a> (think of processes as the dyno type/class). Heroku uses a file called <a href="https://devcenter.heroku.com/articles/procfile"><em>Procfile</em></a> to define these processes for each application, which means 1 Procfile ↔️ 1 app. Of all processes you can define, only the <a href="https://devcenter.heroku.com/articles/procfile#the-web-process-type">web process can receive traffic from the outside</a> (the users). This is the first limitation to keep in mind.</p><h4>Things I tried that don’t work</h4><p>Since we want the frontend to communicate with the backend over an API, we need to have a backend that gets traffic from the outside world. Fair enough, we just need 2 web processes: one for the frontend and the other for the backend, right? Unfortunately on the <a href="https://www.heroku.com/free">free tier</a> you can create as many as 100 apps but each app can use at most 1 <em>web</em> and 1 <em>worker </em>and as we said only the web processes receive traffic.</p><p>Let’s say we relax the cost constraint and upgrade to the Hobby tier which allows for <a href="https://www.heroku.com/pricing">10 process types</a>, this still wouldn’t work: there can be only 1 web process per Procfile/application.</p><p>OK then, you say, let’s have 2 applications, each with a web process. That would work but then we are breaking the monorepo requirement since one repo equals one Heroku app. <em>Or do we..? </em>💡We will get back to that idea in a second.</p><p>Backtracking, what if we have a 1 web process scaled out in 2 dynos, with an <a href="https://devcenter.heroku.com/articles/config-vars#managing-config-vars"><em>config variable</em></a> so that one dyno handles frontend calls and the other backend calls. When a call is routed to the wrong dyno, it should (somehow) internally call the other. First of all, to do this we would need to use professional dynos since you <a href="https://blog.heroku.com/dynos-pricing-ga#about-the-new-dynos">can’t scale out hobby dynos</a>. But even then, this wouldn’t work because dynos are completely isolated from one-another in the <a href="https://devcenter.heroku.com/articles/dyno-runtime#common-runtime"><em>common runtime</em></a> (which you get by default).</p><p><strong>The Heroku (?) way (async) — could work</strong></p><p>A way to achieve what we want within the free tier would be to use 2 different processes (web and worker) within the same Procfile, communicating over a queue/datastore, as depicted below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ERHSJ9zwUtQKGswl4Se9vw.png" /><figcaption>Source: <a href="https://www.heroku.com/dynos">Heroku docs</a></figcaption></figure><p>To adapt it to our model, the web dyno is the one that receives HTTP requests from the outside world: it delivers the (minified, uglified, bundled…) frontend code (HTML, CSS, JS) and in the case of API calls it writes the request to the queue. The worker dyno picks up requests and does the backend work. The web dyno keeps polling the queue for updates on the request and updates the UI based on the result (or uses optimistic updates).</p><p>Obviously this is a very complex setup for a simple web application: there are additional components that need to be configured (queue, websocket etc) and many edge cases to be covered in the application code (eg. what happens if a worker process is terminated abruptly while handling an async task?). While asynchronous processing makes sense for some tasks (eg. sending notifications, logging or computationally intensive tasks) most web applications won’t benefit from it (certainly not the app I am building). So I rejected this option due to the complexity.</p><h4>What actually works</h4><h4>1. The “manual” way — without independent deployment</h4><p>One of the requirements has been to build and deploy independently the frontend from the backend. Since at the moment there are no users however we can relax the independent deployment requirement by building the frontend and then serving it from the backend server. This is the official recommendation <a href="https://angular.io/guide/deployment#basic-deployment-to-a-remote-server">in the Angular docs</a>.</p><p>To see it in practice, given the following project structure:</p><pre>fullstack/                  # top level folder<br>├── backend/             <br>│   ├── package.json  <br>│   ├── api/                # API files <br>│   └── ...       <br>├── frontend/                  <br>│   ├── package.json<br>│   └── ...<br>├── package.json<br>├── ...</pre><p>The top level package.json includes this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c130b5656601e4d6b1db438428c043d/href">https://medium.com/media/5c130b5656601e4d6b1db438428c043d/href</a></iframe><p>Notice there is no <em>Procfile</em>. This is because Heroku also <a href="https://devcenter.heroku.com/articles/deploying-nodejs#specifying-a-start-script">supports npm scripts</a> to start a web process.</p><p>The independent builds are achieved using different npm modules for backend and frontend that install dependencies, watch files for changes and serve files.</p><p>For the deployment after the <em>install</em> step the <a href="https://devcenter.heroku.com/articles/nodejs-support#heroku-specific-build-steps"><em>heroku-postbuild script</em></a> runs: it builds the production version of the frontend (with e.g. ng build --prod) and moves the output to the <em>backend/</em> folder. Then we start the production backend server (Express) that contains something like this:</p><pre>const app = express();</pre><pre>if (process.env.NODE_ENV === &#39;production&#39;) {<br>   app.use(express.static(path.join(__dirname, &#39;/frontend&#39;)));<br>}</pre><p>which serves static files from the <em>frontend/</em> folder, while the Angular app (frontend) is configured to use <em>/api</em> to access data.</p><h4>2. The Multi-Procfile way</h4><p>The other <a href="https://stackoverflow.com/a/48547921/2259743">option I found</a> while researching is the <a href="https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-multi-procfile">Multi-Procfile buildpack</a> created by Heroku engineers. This essentially removes the Heroku requirement that we encountered before: a repo does not have to correspond to one Heroku app anymore (and we are still within the free tier!) 🎉</p><p>Applying the <a href="https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-multi-procfile">instructions</a> on how to use the buildpack:</p><ul><li>We create 2 Heroku apps e.g. <em>awesomeapp</em> (frontend) and <em>awesomeapp-backend</em>.</li><li>We set <em>fullstack/Procfile</em> for the frontend and <em>fullstack/backend/Procfile</em> for the backend.</li><li>Whenever we deploy a new version we need to push to both Git-Heroku endpoints.</li></ul><p>The last part can be made easier by specifying 2 different remotes with git config -e</p><pre>[remote &quot;heroku&quot;]<br>    url = https://git.heroku.com/<strong>awesomeapp</strong>.git<br>    fetch = +refs/heads/*:refs/remotes/heroku/*<br>[remote &quot;heroku-backend&quot;]<br>    url = https://git.heroku.com/<strong>awesomeapp-backend</strong>.git<br>    fetch = +refs/heads/*:refs/remotes/heroku/*</pre><p>and then use git push heroku master and git push heroku-backend master for the frontend and backend respectively (or automate both on git push).</p><p>The <em>Procfile </em>used for the frontend is web: cd frontend &amp;&amp; npm run start-prod. The <em>start-prod </em>script starts an Express server that serves the frontend assets.</p><p>The <em>backend/Procfile</em> is exactly the same: web: cd backend &amp;&amp; npm run start-prod. The <em>start-prod </em>script starts an Express server that serves the <em>api </em>folder. Note that cd backend is actually wrong here and won’t work locally with heroku local. It works in Heroku because the buildpack copies the Procfile in the root folder <em>fullstack/: </em>unfortunately we have to give up <a href="https://12factor.net/dev-prod-parity">dev-prod parity</a>.</p><p>Since the frontend is in a different domain (<em>awesomeapp.herokuapp.com</em>), we also have to <a href="https://enable-cors.org/server_expressjs.html">enable CORS</a> in the backend now:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0efd9bb019cd8c185b558b0f8165fb7e/href">https://medium.com/media/0efd9bb019cd8c185b558b0f8165fb7e/href</a></iframe><p>It’s also worth noting that in both Heroku apps, the same code is being committed and the install step installs both the frontend and backend, even if only one is being used: certainly not ideal but acceptable.</p><p>In this blog post we explored various options to structure, build and deploy a web application in Heroku. Both of the solutions presented here are a bit “hacky” and neither of them achieves parity between dev and production environments: the “manual” way is probably simpler to understand (no magic coming from the buildpack) and easier to develop with (no need to push and setup 2 applications) but would also need more work to deploy fully independently in the future. The multi-procfile way on the other hand comes with the some overhead but allows fully independent deploys of the frontend from the backend, using a single Git repository.</p><p>What are <strong>your</strong> Heroku best practices to deploy modular web applications? Let me know and don’t forget to clap, if you enjoyed this post!👏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb8f1f55a4b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/scalable-cost-effective-web-architectures-for-heroku-eb8f1f55a4b6">Scalable, cost effective web architectures for Heroku</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HackZurich 2018]]></title>
            <link>https://medium.com/@spygi/hackzurich-2018-e3a34fa265f6?source=rss-91ca26dbff76------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3a34fa265f6</guid>
            <category><![CDATA[health]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[prototyping]]></category>
            <category><![CDATA[mvp]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Spyros Giannakakis]]></dc:creator>
            <pubDate>Tue, 06 Nov 2018 18:32:24 GMT</pubDate>
            <atom:updated>2018-11-28T23:05:47.264Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently participated in <a href="https://digitalfestival.ch/en/HACK/">Hackzurich 2018</a>, a hackathon taking place in — well you guessed it — Zurich, Switzerland. Our team ended up among the finalists and even won the health track of the hackathon 😊 🎉</p><p>This post is about my experience there, what worked well for our team and what I would try to do differently next time. It might prove an interesting read if you are heading to a hackathon yourself or building a MVP.</p><h4>Great, what is Hackzurich though?</h4><p>I was surprised to find that a lot of my non-tech friends had never heard the term hackathon before so here is what <a href="https://en.wikipedia.org/wiki/Hackathon">Wikipedia</a> says. Think of it as a programming competition with the goal of delivering an app/website/program of some kind.</p><p>This particular hackathon is marketed as Europe’s biggest hackathon — not sure if it’s really the biggest but there were roughly 125 teams/submissions this year. The action takes place over a weekend, with the kickoff around 5pm on Friday and the submission deadline at 9am on Sunday. That leaves participants with a bit less than 2 days of work, so things are tight!</p><h3>What we worked on</h3><p>We developed an app that warns you for possible side effects among medicines you take. Additionally, you can:</p><ul><li>Track the medicines you take by simply taking a picture of the doctor prescription or drug package.</li><li>Visualise your medicine intake in a timeline you or your doctor/pharmacist can use to get a complete overview of your medical history.</li><li>Bonus feature: being able to locate a pharmacy close to you and order your medicines online without even leaving your house.</li></ul><p>All this looked like (a-higher-resolution-version-of) this:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F5kFWAj3dbMdUUhTYvp%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2F5kFWAj3dbMdUUhTYvp&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F5kFWAj3dbMdUUhTYvp%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/3b2467776eb456e531294663eb24e903/href">https://medium.com/media/3b2467776eb456e531294663eb24e903/href</a></iframe><h4>Under the hood</h4><p>We developed a (frontend only) web application using jQuery and (S)CSS with Bootstrap. We used npm for build scripts, code was hosted in <a href="http://gitlab.com/">Gitlab</a> which provided also the CI/CD. We deployed in <a href="http://heroku.com/">Heroku</a>.</p><p>The following APIs/datasets were used:</p><ul><li>AXA’s endpoints to get medicine information. AXA (the insurance) was sponsoring the health track.</li><li>Public datasets for interactions between medicines</li><li><a href="https://cloud.google.com/vision/">Google Vision</a> to extract text from image</li><li><a href="https://developers.google.com/maps/documentation/javascript/tutorial">Google Maps</a> to display the closest pharmacy on a map)</li></ul><p>Our team consisted of 4 (including me) and we didn’t know each other before!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*V1SZXtDHyAwUAZGBCgMHzA.png" /><figcaption>The Facebook post that brought us together 😍</figcaption></figure><h3>The good parts</h3><p>Looking back, I think a lot of things came together really nicely during that weekend. Some of them I attribute to pure luck (like the skills of the team) while others were due to good decision making, deliberate or unintentional.</p><h4><strong>Team: diversity and overlap of skills</strong></h4><p>We were fortunate enough to have a variety of required skills among us, while still having enough overlap so we could communicate and collaborate effectively.</p><p>For example, we required some medical knowledge as well as some <a href="https://en.wikipedia.org/wiki/Neuro-linguistic_programming">NLP</a> skills (to “read” the doctor’s prescription or the drug package). We were very fortunate to have these skills in the team (<em>diversity</em>). <br>We developed a web app and therefore we were restricted in using JavaScript. Not everyone in the team knew JS but at least having a common language like Python (<em>overlap</em>) we were able to work together (even if that meant “translating” from one language to the other 🙊).</p><p>What we were missing though were native app skills which we compensated by.. well, not doing a native app 😆 Which brings me to the next point..</p><h4>Pragmatism: doing what is good enough</h4><p>Following up on the previous point, it would be ideal to showcase a native app, as was the original idea. However, since we didn’t have enough experience on that area, we went for a web app which was faster for us to develop and deploy <em>and</em> still good enough for the demo. Another similar technical decision was the one to not have any backend at all: while required for a production grade app, the backend does not add to the value a user would see.</p><h4>Focus: on a single user story with clear value proposition</h4><p>If I had to choose a single thing we did well, this will probably be it. My original idea was a lot broader and besides medicines it resolved around an all around digital medical record, including doctor visits, health tests etc. We decided to narrow it down to only the things that had to do with “medical intake”. Our user journey was from receiving a doctor’s prescription to visiting a pharmacy and start taking a medicine. Nothing else. Unix calls it “<a href="https://en.wikipedia.org/wiki/Unix_philosophy">do one thing and do it well</a>”. Otherwise we would end up trying to solve multiple problems at once, without solving anything probably during the 30 hours of the hackathon. Product people refer to this as “<a href="https://en.wikipedia.org/wiki/Feature_creep">feature creep</a>”.</p><p>We applied the same idea of focus to the selection of features: for example we never implemented a login or account page. Yes, they are required for an application but nobody says “I use this app because of it’s beautiful login page!” In other words, they were not part of our <a href="https://en.wikipedia.org/wiki/Unique_selling_proposition">USP</a> (and chances are they won’t be part of yours too).</p><h4>Collaboration: working independently and together</h4><p>Although we didn’t know each other before, working together went very smoothly. Yes, we did stay till late both nights (team spirit 💪). But most importantly, we set up the project structure and an initial app skeleton with some basic navigation early on. This meant we could split tasks (i.e. “pages”) and everyone could work <em>independently</em>. After the individual components were ready, we reconvened to integrate the pieces <em>together.</em></p><h4>Good timing ⏰</h4><p>Speaking of which, we didn’t leave the integration work for too late (started around 5pm on Saturday). That was actually the first point our app started to flesh out into something that made a bit of sense. That was good because we discovered usability issues (e.g. in the navigation) or missing pieces earlier (and assigned them again to individual people).</p><p>Of course it helped here that we didn’t have major obstacles: we had some issues with the <a href="https://docs.scandit.com/stable/web/">Scandit API</a> (that we replaced with Google’s Vision) as well as with Heroku (we hit Heroku’s <a href="https://devcenter.heroku.com/changelog-items/364">60 seconds boot timeout</a>, which we solved by switching to another HTTP server without live reload for the deployed app).</p><h4>Proper tooling</h4><p>This helped with the collaboration as well: although two of us did most of the commits, I think it was worth having from the start a minimal CI/CD so we could exchange code, work/debug in parallel and have something to showcase at the end without needing to build and deploy somewhere. I had done a similar setup for a private project (npm + Travis + Github + Heroku) so it didn’t take us too long to set it up 👼</p><h4>Caring about the “looks”</h4><p>It’s common for engineers to focus on the technical issues and neglect usability (UX) or the look-and-feel (UI) of an app. We did care for the looks and fortunately we didn’t have to do a lot (again thanks to proper tooling aka Bootstrap) but left the work for the very end so we wouldn’t end up adjusting styles and colours multiple times.</p><h3>The not-so-good parts</h3><p>Of course not everything worked like a charm. Here are the things I would try to avoid next time.</p><h4>Too much pragmatism/focus</h4><p>Pragmatism was great for our end goal of delivering something that works but I have the feeling we stuck a little bit more to our comfort zone and what we knew and didn’t experiment as much as we could. On the next hackathon I might leave a bit more room for experimentation with one new technology.</p><p>For example we choose to work only with jQuery because we were afraid that we will lose a lot of time setting up a frontend framework (like React or Angular). None of us is a frontend expert and I had the experience of a prior hackathon where we tried React native, without even knowing React…let’s say it didn’t play out very well 😐That experience made me too risk averse maybe.</p><p>We also missed many of the talks and presentations of the hackathon — which I don’t regret too much to be honest but it is something to consider for the next time.</p><h4>Too much tooling</h4><p>I think we (I) went a bit overboard there..For example Trello (a project management tool) or SCSS were not really used. At least we didn’t spend a lot of time setting them up but still...</p><h4>Team selection process</h4><p>My initial post caught the attention of ~8 people. I was pretty enthusiastic about pitching to more people so I didn’t think too much about it but there was a strict limit of 4 people per team…which meant we had to split somehow. Needless to say the situation was pretty awkward there. Although no hard feelings were kept (I think), I should have handled the situation differently. So keep it in mind in case the hackathon you attend has similar limitations.</p><h4>Presentation: less is more</h4><p>We fell victims of wanting to show too many things in a short time (just 2 minutes!) What we ended up with is a presentation that barely makes any sense because we spoke too fast and is cut prematurely.. No, I won’t share a link because it is really cringeworthy 😆</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTdOX8HDAjqzGlwzgRjXqg.jpeg" /><figcaption>But here is a picture of us after getting our Apple watches: from left, George, Mata, Yael and me, among the AXA crew.</figcaption></figure><p>Next time, we should try to focus more on the why and how we build it and maybe show less of the product, even if it sounds counterintuitive.</p><h3>Would I do it again?</h3><p>Absolutely! HackZurich was the first hackathon I participated in seriously and it was a great experience. The organisation was phenomenal and I would definitely participate again in the future (despite feeling exhausted for the week after 😆).</p><p>I particularly enjoyed it also because the whole experience resembled the full cycle of building a MVP: from pitching an idea and assembling a team to delivering something that works more or less and presenting it to others (to get funding in the real world).</p><h3>Setting up (your) expectations</h3><p>People join hackathons for a variety of reasons. Some do it to meet other developers and network with companies, others to explore technologies while yet others focus on winning an award. Our goal (mine?) was just to submit something that works and see how far we could go working with strangers in a weekend. Having this as a compass allowed us take some technical shortcuts, focus on the “user” and be pragmatic. Your goals might be different and it might make sense to think about them before the event.</p><p>Let me know why (or why not) you join hackathons or if you know other similar events around the world. And if the app (or the health sector in general) sounds like an interesting idea, <a href="http://twitter.com/spy_gi">get in touch</a> — I would love to continue working on it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3a34fa265f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yet another post on productivity and time management]]></title>
            <link>https://medium.com/@spygi/yet-another-post-on-productivity-and-time-management-7b929c4b9bb4?source=rss-91ca26dbff76------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b929c4b9bb4</guid>
            <category><![CDATA[scheduling]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[efficiency]]></category>
            <category><![CDATA[task-management]]></category>
            <dc:creator><![CDATA[Spyros Giannakakis]]></dc:creator>
            <pubDate>Fri, 15 Sep 2017 13:02:39 GMT</pubDate>
            <atom:updated>2019-04-16T07:26:54.109Z</atom:updated>
            <content:encoded><![CDATA[<p>First things first: I am by no means an expert on productivity. Hell, far from it! I tend to procrastinate. A lot. Like others I work best under a deadline and have done my fair share of all-nighters. What is more, I am pretty bad at estimating time, which results in being notoriously late — even by Greek standards!</p><p>“So…<em>why</em> are you writing this post?” you might wonder. Glad you asked. Truth is, I was thrown in deep water in my last job at <a href="http://doodle.com/">Doodle</a> and somehow had to figure out how to manage my time better at work. Over time I developed some strategies to help me overcome my bad habits. These tips and techniques I share here.</p><p>People dealing with a variety of tasks and those with some control over their work schedule are the most likely to benefit from this post. Finally, working more hours per day does not necessarily translate to more productivity in my experience, so I won’t get into Marissa Mayer’s crazy (if true) <a href="http://www.businessinsider.com/yahoo-ceo-marissa-mayer-on-130-hour-work-weeks-2016-8">130-hour work-week</a> nor other “extreme” lifestyles CEOs do like<a href="https://www.businessinsider.com/successful-people-who-wake-up-really-early-2016-4"> waking up at 4am</a>.</p><h3>0. Use a (digital) calendar</h3><p>This is a must. Might sound commonplace nowadays but not everyone uses a calendar, let alone <a href="https://en.blog.doodle.com/2011/07/13/traditional-paper-calendars-still-dominate-the-world-of-appointments/">a digital one</a>. Chances are you use Microsoft Exchange/Outlook at work. I use Google Calendar but you can choose anything you can access from different devices (if you are often on the go) that provides a nice visual overview (colors 🌈!). I especially like using different calendars/colors to group tasks together and using separate calendars.</p><p>Merely having a calendar though is not enough of course. You need to <em>really</em> use it. A good habit is to check your calendar in the morning (or even the evening before) to prepare for the day. Enter things in there and don’t forget to update them, should they change. Insist that colleagues who want to meet you create a real appointment in your calendar! A useful, little tool for that is <a href="http://doodle.com/meetme">MeetMe</a> (by Doodle), especially if you use different calendar providers. Alternatively you can share directly your calendar with them (if it’s not already the case at your workplace). Most importantly, treat your calendar as holy: “<strong>If it’s in my calendar, it’s happening</strong>”. Exceptions <em>will</em> happen but they should really be exceptions. I will cover how to deal with them in a bit.</p><h3>1. Collect data</h3><p>We all know the feeling..The end of the day is approaching and you are wondering where did all your time go?! Tracking how you <em>actually</em> spend time and checking against your expectations will reveal interesting findings. At least that’s what happened to me when I realised how much time I was spending in tedious admin tasks (we all love’em right?) instead of real, hard-core engineering 💪</p><p>The advice comes from Peter Drucker himself in <a href="https://www.amazon.com/Effective-Executive-Definitive-Harperbusiness-Essentials/dp/0060833459">The Effective Executive</a> (great read btw). As Drucker points out, the most precious resource you have is your time. Understanding where you spend most of your time is the first step to managing your time (and therefore yourself and others) better.</p><p>The key here is to do so in the “<strong>heat of the moment</strong>”, not a day or two after/before. Otherwise you will misjudge how much time a task actually took or even forget tasks (usually “minor” but crucial nonetheless). After all Einstein said it best:</p><blockquote>“Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute.”</blockquote><p>I check myself every 30 minutes over a big enough period (1–2 weeks), bundling tasks in 4–5 broader categories (e.g. engineering, people management, product process and admin). You can enter them on a separate calendar (in order to not mess up with real appointments) or use a simple spreadsheet, a web tool like <a href="https://toggl.com/">Toggl</a> or even real <a href="https://timeular.com/">hardware</a>.</p><p>Based on the results check back against your expectations. Do you spend most of your time where you should be spending it? Where you can bring the most value for the company (or yourself)? If not, optimize first the tasks the take up most of your time. There you are likely to see the biggest rewards faster. Some pointers would be automating tasks you perform often, delegating tasks or processing tasks in badges but the exact “solution” is up to you and your tasks.</p><p>Don’t forget to periodically repeat the experiment as your workload evolves over time. I do so roughly every 6 months. Tracking yourself takes time as well, so doing it more often might be an overkill.</p><h3>2. Use a tool/app</h3><p>Depending on the complexity or amount of tasks you have on your plate you can choose from a simple note-taking app, a more advanced todo app or even a project management tool. For me <a href="http://trello.com/">Trello</a>, <a href="http://basecamp.com/">Basecamp</a> or <a href="https://www.blossom.co/">Blossom</a> work best. I find <a href="http://asana.com/">Asana</a> (and even worse <a href="https://www.atlassian.com/software/jira">Jira</a>) too complicated while note taking apps like <a href="http://evernote.com/">Evernote</a> are too simple. Haven’t tried <a href="https://en.todoist.com/">Todoist</a> yet. I also tried <a href="http://slack.com/">Slack</a> reminders but was missing the “visual” overview of a calendar (well yeah, Slack is text based).</p><p>My Trello board looked like this at some point:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NsuD-js30KO6O6UQ8K-2Zg.png" /></figure><p>The columns give “a sense of urgency” (nothing in there has a <em>strict</em> deadline — for those I use calendar booking, read on). The goal is to move tasks from right to left and process the ones in the left columns first. Moreover, using a color code (explained in the “legend”) gives a quick overview of which task categories keep you busy. As you can see at that point in time most of my tasks were related to recruiting, indicated with 🔴. Of course the amount of tasks has nothing to do with how much they actually take to perform but it can be an indication.</p><h3>3. Book yourself</h3><p>Especially for tasks with <em>real</em> deadlines, resist the temptation to just enter it on a todo list (and let it sit there until the very last moment) and allocate time in your calendar.</p><p><strong>Be honest</strong>: don’t hesitate to put even “trivial” stuff like “study/research X”, “try out Y”, “prepare for presentation Z”, even “answer emails” etc. Those are real tasks that take up time. Disregarding them in your planning doesn’t mean you get to simply tick them off.</p><p>When the moment comes to perform task X of course you will have other more urgent things to do <em>right now, </em>a boss breathing down your neck or you simply don’t feel like switching tasks. Resist the temptation to skip X. If you really can’t reschedule it, at least now you know that emergencies happen. You might want to track this information and squeeze less things in during your day in the future to leave room for such incidents.</p><p>Entering a calendar entry has 2 great side effects: it indicates to others that you are blocked, leaving you with less distractions (more on that later) and it also <strong>forces you to estimate how much time a task is supposed to take you</strong>. The latter is useful on many levels. If you are good in forecasting: great news! Your day most likely will be stress-free and you will be able to leave work with a warm feeling of achievement having accomplished what you set out to accomplish. If you are not good in forecasting (like me), learn from your false predictions. For example I tend to be over-optimistic with time which results in consistently underestimating how much time I am gonna need — I think I am improving but it takes a while to get rid of the bad habit😬. Adjusting for this systematic bias, I try to consciously factor in more time than what my brain tells me.</p><h3>4. Remove distractions, avoid context switches</h3><p>This is well documented: humans are bad in multitasking and context switching. Some are better than others but on average we are pretty bad. Elon Musk with his <a href="http://www.businessinsider.com/elon-musk-productivity-schedule-hack-2017-6">5 minute-slots</a> day doesn’t count due to godly status — how does he get anything done?!</p><p>For the rest of us: first of all <strong>schedule time offline</strong>. Yes, do that really with a slot in your calendar. Offline means really offline, not just putting your phone in silent mode. Literally, make it a lot of work on yourself to go online again even if that means unplugging your router! (Unfortunately this was never an option for me). This means closing that email tab too, all Slack/Skype/whatever instant messaging you are using even if it’s work related. A note of caution: depending on your position you might want to adjust the time that you spend “invisible”. Being a manager is all about removing distractions and obstacles from your colleagues, so you should be generally more accessible to them, while still making sure you make time for the things <em>you</em> need to take care of.</p><p>Regarding context switches: common advice is to avoid context switches at all costs. For me context switches do serve a purpose and that is to keep things interesting and give you an “artificial” sense of a deadline. Some people like to switch tasks often while others prefer allocating bigger blocks (3 hours+) of time. I tend to be more on the side of bigger blocks especially for engineering tasks that require deeper thinking, but not too big either (usually 1–2 hours). I also like to process the less enjoyable tasks in badges (answering emails, admin tasks etc). But again bundle too many of those boring tasks together and you will find yourself constantly postponing them.</p><h3>Bonus tips</h3><p><strong>Move</strong> — if you can! This is a major productivity boost for me. It keeps things interesting and refreshes my perspective. I haven’t worked full time remotely but many people suggest splitting “work” from “private” spaces which sounds like a good advice. Actually, I am writing this piece from a coffeeshop ☕️ Oh yeah, I should probably mention coffee in a post about productivity!</p><p><strong>Reward yourself</strong>: after completing a much dreaded task, reward yourself with a break. It has to be a real break though, don’t check emails, don’t discuss work for a considerable amount of time. Afterwards you can switch to a more enjoyable task (you earned it!) or if you are rolling nicely why not tick another boring thingy off your list?</p><p>You still feel you are making suboptimal use of your time? <strong>Talk to someone</strong>. Just by talking to a colleague, partner, friend or even your manager might get you unstuck. They might come up with a solution you are missing or point you in the right direction. Maybe you are productive enough but you shouldn’t be doing so many things in the first place.</p><h3>Push yourself a little bit…</h3><p>Remember, everyone has different issues: some (including myself) find it <a href="http://randsinrepose.com/archives/a-hard-thing-is-done-by-figuring-out-how-to-start/">difficult to start</a>, others to keep going. Identify yours, have patience and don’t give up just yet.</p><h3>…but not too much!</h3><p>Keep in mind that every day will be slightly different and what worked yesterday might not fit your mood today. Listen and adjust your strategies.</p><p>If your inner voice keeps nagging you (“I should be doing X instead of Y”), listen to it: <a href="http://randsinrepose.com/archives/trickle-theory/">go do one thing</a>, now! Stress won’t help you concentrate and get anything done.</p><p><strong>Work with and not against yourself</strong>: some people are morning birds, others are night owls. If you can, adjust your work hours. If not, schedule tasks within your day as it fits your style and your energy levels. Some prefer an easy start on the day, others prefer to tackle difficult things first.</p><p>Productivity and time management might just be the holy grail at work and of course there is no silver bullet. At the end, it’s a matter of finding what works best for you and your tasks and enforcing it with a little bit of self-discipline and the help of technology. I hope some of these techniques and tips will assist you in your quest towards productivity and peace of mind🤞</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b929c4b9bb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>