<?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 Wilk on Medium]]></title>
        <description><![CDATA[Stories by Wilk on Medium]]></description>
        <link>https://medium.com/@wilk?source=rss-8acefb9561f3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cyO9dMo8A1J1EZlKvtud_A.jpeg</url>
            <title>Stories by Wilk on Medium</title>
            <link>https://medium.com/@wilk?source=rss-8acefb9561f3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:11:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wilk/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[Apollo Book Club]]></title>
            <link>https://medium.com/@wilk/apollo-book-club-531d447ab122?source=rss-8acefb9561f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/531d447ab122</guid>
            <category><![CDATA[giving-back]]></category>
            <category><![CDATA[side-project]]></category>
            <category><![CDATA[book-club]]></category>
            <category><![CDATA[remix]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Wilk]]></dc:creator>
            <pubDate>Sat, 20 May 2023 17:37:05 GMT</pubDate>
            <atom:updated>2023-05-20T17:37:05.749Z</atom:updated>
            <content:encoded><![CDATA[<p>A pet project for a book club</p><p>Last year I decided to join a book club in my town.<br>The Apollo Book Club started during the pandemic, the perfect time to gather people together online and share a passion.<br>When I joined, things were done manually using Excel files and PDFs.<br>Soon I realized that the people in this group weren’t just passive readers: they were actually contributing with their thoughts, opinions, and ideas, almost as if they were adding new content to the books they were reading.<br>This behavior galvanized me! Therefore, I decided to contribute with my software engineering skills.</p><p>I built a <a href="http://apollobookclub.it/">web app</a> for the Apollo book club and this is briefly how I did it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w5FilQzt8yDaoVpgpVjwlA.png" /></figure><h4>It all started with…</h4><p>… the idea of having fun and making something useful for others. And for free!<br>Yes, the main thing was contributing to the club. Consider it as a way of giving something back.<br>However, I didn’t want to pay money to maintain the web app.<br>The challenge was set: a free web app, built for fun, without paying for the infrastructure.<br>Challenge accepted!</p><h3>Processes and design</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VrVXhOklpMpBEnDgQol-mg.png" /><figcaption>The design journey through Miro</figcaption></figure><h4>Workflows</h4><p>First of all, I started by flashing out all the processes used in the book club on a <a href="https://miro.com/">Miro</a> board: creating a new book release, suggesting a book, voting, etc.<br>Then, I designed mock-ups of the app: the login page, the release page, the search page, etc.<br>Followed the DB schema: Users, Books, Releases.<br>Finally, the personas and the permissions associated: anonymous users, members, editors, and the different actions they would do.</p><h4>Tools</h4><p>Last year I discovered <a href="https://remix.run/">Remix</a>, a Javascript framework that covers the whole stack. It’s similar to monolith frameworks like Django except for the language: it’s all Typescript, from the UI to the DB.<br>The only missing piece was the UI library: I chose <a href="https://mui.com/">Material UI</a> because I already had experience with that and I didn’t want to spend much time on centering divs.</p><h4>Services</h4><p>For the storage, I decided to go with a standard Postgres.<br>There was an interesting challenge around how to get book data on the search page and I found that Google provides a free <a href="https://developers.google.com/books">API for books</a>.<br>I initially added <a href="https://sendgrid.com/">Sendgrid</a> for the authentication which was soon replaced with <a href="https://nodemailer.com/">nodemailer</a>.</p><h4>A word on authentication</h4><p>The book club is somehow private: if you want to join, you need to make a request. Therefore, there was no need for a sign-up page.<br>Also, book club members had different email addresses so I couldn’t provide login via Google.<br>This pointed me toward a login link sent via email: basically, I manually add users to the database and then they can request the link via email.<br>An email is sent to them containing a link with a JWT-signed token that expires in months and contains the needed info to identify the user, like the user id.</p><h4>Infrastructure</h4><p>Nowadays, online platforms provide free tiers. This is so convenient, especially for side projects.<br>A friend of mine told me about <a href="https://supabase.com/">Supabase</a> and I decided to go with it for the DB.<br>For the app, I initially went for <a href="https://www.netlify.com/">Netlify</a> but I struggled to deploy a Remix app. I switched on <a href="https://vercel.app/">Vercel</a> and it worked seamlessly by using git.</p><h4>Demo &amp; Lean approach</h4><p>Before deploying the app, I held an initial demo for the book club, showing it on my local machine. Luckily, they were thrilled!<br>That was a go-go and after a couple of days, the app was online, up and running!</p><p>I built the first version of the app to only provide the initial needed features. I skipped all the rest.<br>I went for a lean approach or kinda best-effort approach: just push it out and get feedback asap.<br>This is what’s happening right now and this week we did the very first book release through the app 🎉</p><h3>Conclusion</h3><p>This side project took me 33 hours and it included:</p><ul><li>seeking platforms with free tiers</li><li>understanding how those platforms worked</li><li>learning Remix</li><li>design</li><li>actual implementation</li><li>demos</li></ul><p>At the end of this little journey, the <a href="http://apollobookclub.it/">http://apollobookclub.it/</a> is now live!</p><p>I’m sharing this little story with you because it has some useful information on how to create a side project and put it online for free.<br>I’ll follow up with short articles about the technical details and the upcoming versions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=531d447ab122" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Emotions in code reviews]]></title>
            <link>https://medium.com/@wilk/emotions-in-code-reviews-6d226aa72123?source=rss-8acefb9561f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d226aa72123</guid>
            <category><![CDATA[emotions]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[people]]></category>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Wilk]]></dc:creator>
            <pubDate>Fri, 21 Apr 2023 09:31:15 GMT</pubDate>
            <atom:updated>2023-04-21T09:31:15.080Z</atom:updated>
            <content:encoded><![CDATA[<h4>Sharing my experience on emotions during code reviews</h4><h3>Is this the article I’m looking for? (aka TL;DR)</h3><p><strong>This article talks about:</strong></p><ul><li>emotions in code reviews</li><li>dealing with humans</li><li>understanding what really matters in code reviews</li></ul><p><strong>This article doesn’t talk about:</strong></p><ul><li>a disruptive methodology to do code reviews</li><li>alternatives on how you should do code reviews</li><li>AI tools for code reviews</li></ul><h3>It all begins with…</h3><p>… a change request you have to perform on the code base.<br>Your team needs to provide a bug fix or build a new feature and you got assigned to this task.<br>You start coding and eventually, you open a PR, asking someone to review your work.<br>Until this point, we can assume that everything went pretty well. You’re satisfied with your job, you made different decisions, you know the context of why you did this and that. If you were the reviewer, you’d approve the PR right away, aren’t you?<br>The expectation is that your reviewers will check your code and they might challenge you a bit but overall the work is good and you like it.<br>The emotions are <strong>happiness, satisfaction, and pride</strong>: all good feelings a developer should always experience!</p><h4>And it continues with…</h4><p>… a review!<br>I should have said “<em>a hell of a review</em>” but bear with me: reviews are always somehow uncomfortable so this is not an outlier. It’s a common case I want to show you.<br>Your peers start reviewing your code with comments, change requests, and blocking questions that stop your PR from being approved.<br>Suddenly, <strong>you start feeling guilty</strong>: people are challenging you even if you did an amazing job. At least, this is what you thought.<br>Shit, they’re asking me to change the signature of that function, to move the code around, to do more tests, to increase the code coverage, etc…<br>What did I do?<br>Bad feelings start popping up in your body and you can’t help yourself.<br>The tone of your colleagues is fixed, like bots; no emojis, no sugarcoating, nothing, pure direct statements of what you should be doing. <br>Why? We had a virtual coffee together in the morning and were having fun and kicking off the day pretty well, so why are they so mean to me?<br>You’re feeling bad sentiments because, guess what, you’re alive!<br>Yes, this is the whole point of code reviews: <strong>dealing with human beings!</strong></p><h4>The Pareto principle applied to code reviews</h4><p><strong>80% of reviews are for code and 20% are for human relationships.</strong> And often, in the Pareto principle, the 20% is what you should be focusing on.<br>Code reviews are definitely needed to avoid mistakes, improve code quality, avoid unexpected situations, keep the code consistent, and many other useful things for the product. But remember that <strong>machines don’t give shit about your code</strong>. Your code can crash and do very bad things but machines don’t really care. Remember this because it’s important.<br><strong>For me, code reviews are extremely useful for human relationships.</strong><br>It’s a way to express how people work together. It’s like playing a game: it’s not for winning something; it’s for knowing other human beings and getting in touch with them.<br>Through code reviews, you’re building a strong or weak relationship with your buddies. This is why emotions are so important here.</p><h4>Dealing with emotions</h4><p>Before addressing your teammates’ comments on the PR, <strong>take your time to understand your feelings</strong>.<br>Take this code review as an introspective journey. Are you feeling bad? Are you feeling good?<br>And then ask yourself: why I’m feeling like that?<br>If you’re feeling good, it’s positive; it means that you achieved good self-consciousness and you know how to deal with others. You’re not afraid and you’re willing to have discussions with your peers. That’s good stuff right there.<br>If you’re feeling bad… well, it’s positive nonetheless! It means <strong>there’s something you need to understand about yourself</strong>.<br>Why are you feeling guilty, afraid, or angry? Are you taking this code review personally? You think your peers are challenging you or the code you wrote? Do you see the difference? Do you have something going on with that guy? Are you biased toward him?<br>These are fabulous indicators that are telling you something more important needs to be fixed before the code; it’s the relationship. <strong>It’s the feeling you’re going through with that person and that particular situation</strong>. Use them to better understand yourself and others.</p><h4>What should I do as a coder?</h4><p>When I’m opening a new PR, I always try to see my reviewers as supporters, kind of allies, not as gatekeepers or enemies. They’re there to help me.<br>To be honest, this is an exercise I still actively do; it’s not spontaneous and my inner-self always tries to trick me by saying “those fuckers are gonna break your balls, trust me!”. In fact, I don’t like to have my PR open for 2 or 3 days. But the code I wrote is just a way to discover something about the problem I’m facing at that moment. It’s not set in stone. It’s software. Soft-ware. It’s soft and moldable, like clay.<br>I recall an expression a friend of mine said once: <strong>software should be as elastic as possible to be modified for new change requests because, in real life, things tend to change, sometimes quickly af.</strong></p><p>So, my personal suggestion to you, as a coder, is: <strong>don’t take the code review personally</strong>. It’s the idea you’re expressing through your code being challenged, not you as a human being.<br><strong>If you’ve got something with one of your peers, take your time to have a private and frank chat with him</strong>, ideally in person but, if you can’t, at least via a video call. Try to address the stuff that makes you feel bad.<br>If the written-async discussion on the PR becomes too long and it starts to be too much back and forth, stop right there. <strong>Grab your reviews in a call and start a live review instead</strong>. The sooner, the better.<br>And remember: a dispute resolution can always involve a <strong>neutral third party that can act as a moderator or an arbitrator</strong>. So, don’t be afraid to say “I don’t agree with you, so let’s involve Wilk and have a third voice in the discussion”. This will help you and your peer fix the dispute and let the PR be merged.</p><h4>What about the reviewer?</h4><p>Well, as a reviewer, I’d like to suggest you remember that PRs are made by humans and are definitely for humans.<br><strong>The code written by your colleague is also a way to express himself</strong>, so don’t bother him about your personal style. Or, at least, give him a non-blocking suggestion, something that he might consider or simply discard. Up to the PR’s owner.<br><strong>Don’t be cocky and don’t act like a smart-ass</strong>: you’re not better than your peers. The last thing you really want is to have people in your team fearing opening PRs and making changes. So, try to provide a safe condition where they can express themselves without being torn down by you.<br>Finally, <strong>understand your emotions</strong>: is the discussion taking you on a personal level? If so, what can you do to mitigate it? Are you feeling collaborative and supportive with the coder or nitpicking and blocking? This circles back to being in the other’s shoes.<br>Be kind, be gentle, and if there’s a delicate situation you’d like to address, remember that on the other side, there’s a human being, with feelings, emotions, and sentiments. So, at least provide as much human context as you can before kicking it off.</p><h4>A note for pairing and mobbing sessions</h4><p>It’s possible to avoid PRs and code reviews by simply pairing or having mobbing sessions with your team.<br>When the code is written by the people that would be the reviewers, well, no PRs and code reviews are needed at all.<br><strong>However, especially in this situation, people need to know how to deal with their emotions and with others.</strong> It’s extremely easy to become <strong>the driver</strong> and make the rest of the people feel like passengers. If you feel like that, stop right there. Take a pause. Grab some water and let others play this role.<br>Also, with live sessions, it can be very difficult for people that are usually more reflective than fast speakers. Remember the important stuff is not just to get the job done but to do it together. If you end up in a situation where your peers are just following you, you will be wasting their time and making them feel useless.<br>In pairing and live sessions, I like to make them fun and lightweight. It’s like working together with a beer in one hand and scratching your head with the other, coding in shifts while listening to music. <strong>The general idea is to have a session where people actually like to stay and participate.</strong></p><h3>And it finishes with…</h3><p>… beers and cheers!<br>Yes, merging a PR should be a celebration!<br>You’re both celebrating the change being added to the codebase and the collaboration you just had with your teammates.<br>We’re all happy because we made it together! We did trade-offs and found common grounds.<br><strong>This experience has been an emotional journey inside you, making you more aware of yourself and others</strong>. You had the chance to know better each other. And you’ll be laughing together at the next pint of beer!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d226aa72123" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dark Lang: an uncommon step towards the future of programming]]></title>
            <link>https://medium.com/@wilk/dark-lang-an-uncommon-step-towards-the-future-of-programming-921cf7f38baf?source=rss-8acefb9561f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/921cf7f38baf</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[Wilk]]></dc:creator>
            <pubDate>Mon, 09 Mar 2020 20:36:14 GMT</pubDate>
            <atom:updated>2020-03-09T20:36:14.990Z</atom:updated>
            <content:encoded><![CDATA[<p>The last cool attempt of a long series to improve computer programming</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_9YuRLFv9ToaYkkekyQfeQ.png" /></figure><h4>A past present</h4><p>Let me say it clearly: <strong><em>the way we develop is outdated.</em><br></strong>Or, to put it simply, we’re developing with the same modality we had 30 years ago.<br>But with more tools, platforms and patterns.<br>With this thought in mind, I see a very deep correlation between the following three things:</p><ol><li><a href="https://www.youtube.com/watch?v=8pTEmbeENF4">The Future of Programming</a></li><li><a href="http://witheve.com/">Eve Lang</a></li><li><a href="https://darklang.com/">Dark Lang</a></li></ol><h4>Back to the future</h4><p><a href="https://en.wikipedia.org/wiki/Bret_Victor"><strong>Bret Victor</strong></a> did an inspiring talk at the Dropbox’s DBX conference, back in 2013.<br>The talk is set between the 60s and 70s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UmN1N6psZZCc0hxdRKxSeg.png" /><figcaption>A slide from the Bret Victor’s talk</figcaption></figure><p>He talks about what computer programming would look like thanks to some extraordinary projects: the <a href="https://en.wikipedia.org/wiki/NLS_(computer_system)">NLS system</a>, the <a href="https://wiki.c2.com/?GrailSystem">Grail system</a>, the <a href="https://en.wikipedia.org/wiki/Smalltalk">Smalltalk</a> editor and <a href="https://en.wikipedia.org/wiki/PLATO_(computer_system)">Plato</a>.<br>Long story short, the idea of his talk is that if we had followed and improved such technologies in the late 60s, nowadays we should be able to develop applications like Tony Stark does in Ironman: <strong>effortlessly</strong> and <strong>smartly</strong>.</p><p>According to this talk, we should have a completely different way of developing these days, instead of writing huge text files without an immediate response on what we’ve done until we run them in a certain environment.</p><h4>Logic programming and visual implementation</h4><p><a href="https://github.com/cmontella"><strong>Corey Montella</strong></a><strong>, </strong><a href="https://medium.com/u/2826fea8bb47"><strong>Chris Granger</strong></a><strong> </strong>and their team proposed<strong> Eve Lang</strong>, a new approach to change things by combining a visual editor embedded into the browser with a logic programming language.<br>Eve was designed for <em>“literate programming”</em>, a cool concept forged to say that instead of having comments embedded in code, code is embedded in a document.<br>Eve was also designed to give the freedom to organise the programs based on what developers think and on the ability to weave a narrative of not just what the program does, but why it does it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JC4KWY_e5eCZHIY8gU_EaQ.png" /><figcaption>A view of the Eve Lang platform</figcaption></figure><p>All of these concepts lead us to rethink the way we develop.<br>Nowadays, we’ve tons of tooling and services our applications rely on.<br>Think about it for a moment: if you were to start building a new API from scratch, how many steps should you take to make it work and make it available to the public?<br>You’ve to deal with a lot of code boilerplate, third party dependencies, tools like linters, compilers, package managers, and with the most complicated part: the deployment. Choose a cloud platform, find out how to interact with it and finally deploy the first version of your “hello world” API.<br>Things get more complicated when you need to release new versions of the API, but let’s stop here.<br>Don’t you think that instead of simplify the development we made it more complicated?<br>So, what can we do to reverse the trend?</p><h4>Entering Dark Lang</h4><p><a href="https://medium.com/u/6053392f2d42"><strong>Ellen Chisa</strong></a><strong>, </strong><a href="https://medium.com/u/56c9b6a1f3e4"><strong>Paul Biggar</strong></a><strong> </strong>and their team took a step back and figured out an easy way to improve the situation. If the problem is the complexity, what should we do to simplify it?</p><blockquote>What if we took things away? (Ellen Chisa)</blockquote><p>And that’s exactly what they did.<br>With <a href="https://www.youtube.com/watch?v=PQ2c8deernc">“A programming language for a continuous delivery world”</a>, Ellen presents what Dark Lang is and how it is changing the development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vwwecCm-0nZOT0kMh8E65w.png" /><figcaption>An example of Dark Lang</figcaption></figure><p>This programming language is in its early stages and is still in beta.<br>However, Dark is already showing a substantial paradigm shift, providing the user an extremely simple platform for developing backend services.<br>Instead of spending hours configuring a CI/CD pipeline to publish the application and learn a whole new ecosystem, Dark focuses on simplifying things, providing few but powerful components:</p><ul><li>API Endpoints (REST)</li><li>Background workers (with built in event/queue system)</li><li>Scheduled jobs/cron</li><li>Persistent Datastores (key-value/hashmap)</li><li>REPLs (internal tools)</li><li>Functions (reusable code)</li></ul><p>The entire platform is <strong>cloud native</strong> so you don’t have to think about anything, except implementing the business logic and connecting the components.<br>It is literally as simple as it seems: point the mouse, choose the component, fill it with what you need and connect it with other components.</p><h4>A coding challenge story</h4><p>Let me tell you a story.<br>I recently had a coding challenge.<br>I was asked to implement an <a href="https://en.wikipedia.org/wiki/Extract,_transform,_load"><strong>ETL</strong></a>: fetch 3 different CSV files having the same structure from a S3 bucket and transfer them to a database. The final step required to publish the solution on a known cloud platform.<br>I solved it using <strong>Typescript</strong>,<strong> Node.js</strong>, <strong>Postgres</strong> and <strong>Heroku</strong>.<br>And then I did it again but this time with <strong>Dark Lang</strong>. Just for fun 😁</p><p>This is the repository of my first solution: <a href="https://github.com/wilk/outlier-coding-challenge">https://github.com/wilk/outlier-coding-challenge</a><br>As you can see, I had to:</p><ul><li>define the project structure using NPM, Git and Typescript</li><li>define a Sequelize model for Postgres</li><li>define the job using an external library to retrieve the data (<a href="https://github.com/node-fetch/node-fetch">node-fetch</a>)</li><li>define the Heroku project with a provisioned Postgres instance</li><li>define the environment variables for both local and production environments</li></ul><p>And now the solution with Dark Lang, which consists only of the following two screenshots:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*bjZjbUkNUFLTQZAwyfDmuA.png" /><figcaption>Two HTTP endpoints, a Worker and a Database</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwjpFKndCDIxL6GH9u2SQg.png" /><figcaption>The function used inside the Worker</figcaption></figure><p>With Dark Lang I defined:</p><ul><li>2 HTTP Rest endpoints</li><li>a worker containing the async logic to parse the CSV data and to transfer it to the database</li><li>a key-value database</li><li>a common function used by the worker</li></ul><p><strong>That’s all. The difference is abysmal.</strong><br>The ETL is the same but there are two substantial differences:</p><ol><li>it took me almost 3 hours to implement the coding challenge with Node.js while only 30 minutes with Dark Lang</li><li>with the implementation with Node.js I had to know many things: the Node.js platform, Javascript, the Typescript lang and CLI, NPM, Git, Heroku’s platform and CLI, Postgres, Docker, the Sequelize ORM and a couple of external libraries.</li></ol><p>Not to mention the HTTP endpoints: if I wanted to have them with the Node.js solution, then I had to setup an Express webserver and define a couple of routes with the related handlers.<br>More work to do. More tools. More things to know.<br><strong>More complexity.</strong></p><h4>A new hope</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ugFxJStGOf1q6ex6kVvFwg.gif" /><figcaption>Hello world in a GIF 😲</figcaption></figure><p>The path is clear: we have to change the way we build software.<br>It’s necessary for many reasons: for newcomers approaching computer programming; for companies and their growing development costs; for dissatisfied and frustrated developers.<br>Dark Lang has enormous potential to lead this revolution: let’s give it a chance!</p><p>You may find helpful the following list of Dark resources:</p><ul><li><strong>Slack app tutorial</strong>: <a href="https://vimeo.com/380770154">https://vimeo.com/380770154</a></li><li><strong>Dark Lang docs</strong>: <a href="https://darklang.github.io/docs/introduction">https://darklang.github.io/docs/introduction</a></li><li><strong>The design of Dark</strong>: <a href="https://medium.com/darklang/the-design-of-dark-59f5d38e52d2">https://medium.com/darklang/the-design-of-dark-59f5d38e52d2</a></li></ul><h4>Thanks</h4><p>I want to thank <a href="https://medium.com/u/fbe5fa6a13d2">Alessandro Rabitti</a>, <a href="https://medium.com/u/cb6b99cd9ea7">Michele Bertoli</a> and <a href="https://medium.com/u/6053392f2d42">Ellen Chisa</a> for reviewing this article 🙏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=921cf7f38baf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The renaissance of the short-time movement]]></title>
            <link>https://medium.com/@wilk/the-renaissance-of-the-short-time-movement-47657487dae6?source=rss-8acefb9561f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/47657487dae6</guid>
            <category><![CDATA[time]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[company-culture]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <dc:creator><![CDATA[Wilk]]></dc:creator>
            <pubDate>Thu, 20 Feb 2020 11:26:00 GMT</pubDate>
            <atom:updated>2020-02-20T11:26:00.462Z</atom:updated>
            <content:encoded><![CDATA[<h4>An ancient achievement that we must regain for the sake of tech industry</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ooKvEXvhUMgEriYhbkk4mA.jpeg" /></figure><h4>Premise</h4><p>Reducing the daily working hours is a personal crusade; with this article I’ll try to convince you why is important to reconsider the current standard in the software industry and take steps forward to change the situation.</p><p>This article will be part of a series of articles on company culture.</p><h3>Jason Fried on Twitter</h3><p>If your company requires you to work nights and weekends, your company is broken. This is a managerial problem, not your problem. This is a process problem, not a personal problem. This is an ownership problem, not an individual problem.</p><h3>Questioning the system</h3><p>Ok, let’s face it: <strong>40 hours a week.</strong><br>We all know it because it’s the standard of full time jobs.<br>No matter what, if you want that job you’re going to work at least that much.<br>Working less is considered part-time, even for 36h/w.<br>The funny thing is that <a href="https://en.wikipedia.org/wiki/Eight-hour_day">Wikipedia</a> reports this standard as:</p><blockquote>The eight-hour day movement or 40-hour week movement, also known as the short-time movement…</blockquote><p>Yes, the <strong>short-time movement</strong>.<br>And you know why?</p><blockquote>[…] was a social movement to regulate the length of a working day, preventing excesses and abuses. […] The working day could range from 10 to 16 hours, and the work week was typically six days a week.</blockquote><p>Back in those days, life was tough.<br>I’m talking about 200 years ago. Not exactly yesterday.<br>But the cool thing is that after some years (actually many years for some countries) they made it. They won the battle and they’ve changed the status quo.<br>We inherited this privilege and now we take it for granted.<br>The bad part?<br><em>We take it for normal.</em></p><h4>A generic overview</h4><p>What are the reasons for having and using this standard, especially in the IT field?<br>Let’s summarise some of them:</p><ol><li><strong>cultural/historical</strong>: it started in the manufacturing industry to cap the daily working time to 8 hours max</li><li><strong>availability</strong>: the possibility to reach you in a fixed time range, let’s say between 8AM to 7PM</li><li><strong>quantity</strong>: the more you work, the more you produce</li></ol><p>The software industry inherited this way of working because it was born as an appendix of other industries.<br>However, those reasons don’t apply to our job, in particular the last one: <em>quantity</em>.</p><h3>Bad KPIs</h3><h4>Quantity</h4><p>2020, tech industry: is the current working standard really a necessity? If so, why?<br>Well, it seems 40h/w is kind of <strong>a metric for defining an individual’s productivity</strong>. <em>Just like being in the office during working hours.</em><br>If you work 40 hours a week, then the company can achieve its goals because you’re productive and doing many things.<br>The problem here is that we still think in terms of <em>quantity</em>, even if our job is a matter of <em>quality </em>and <em>creativity</em>.<br>Follow me for a second.<br>You’re used to do stuff during your daily job and your time is filled up by duties: developing, designing, meetings, calls.<br>So, the more you do, the better, right?<br><strong>Wrong!</strong><br>Our job cannot be measured in terms of quantity: it’s not like to extract coal from a mine, nor like to produce and deliver goods as much as possible.<br>Why that?<br>Because when we write software there are some factors to consider:</p><ol><li><strong>creativity</strong>: often expressed in terms of engineering and design</li><li><strong>maintenance</strong>: software is never finished and the more we produce, the more we need to maintain</li><li><strong>quality</strong>: software needs to be good, otherwise you’re going to pay it in the long run (<em>technical debt</em>)</li></ol><p>If we think in terms of quantity, these factors are automatically excluded.<br>Creativity has a different flow: it cannot be limited by fixed hours and it is inversely proportional to quantity; the more you work, the less is the creativity.<br>On the other hand, maintenance is directly proportional to quantity: the more you produce, the more you have to maintain. And the company’s costs rise.<br>Quality requires time and concentration: if you’re stressed because you’ve too many things to do, you’ll end up doing the infamous quick’n’dirty approach. In the long run, this translates into a huge technical debt and unsatisfied people (developers, POs, customers, …).<br>So, does that seem like a reliable productivity metric?</p><h4>Availability</h4><p>Do we really have to be always available?<br>The very first thing you learn when approaching time management is that your time is precious and therefore your concentration. Context switching costs and if you lose your focus, even for a small moment, refocusing takes too long.<br>So it is clear that we have to organise a different way of being available to other people, a way that cannot be related to fixed working hours.</p><h4>Culture</h4><p>As I said, our industry has inherited this way of working. That’s all.<br>We’re absolutely free to change it as much as we want because it wasn’t designed for our work.<br>Actually, it is our duty.</p><h4>A word on productivity</h4><p>So, what is a good productivity metric?<br>Ready?</p><blockquote>Happiness. Motivation. Freedom.</blockquote><p>Yes, this sounds like a political speech but it’s damn true.<br>When you spend a long period working 40, 50, 60 or even 80 hours a week, you usually get two things: <strong>bad quality</strong> and <strong>burnout</strong>.<br>And let’s be honest: don’t pretend to be focused on what you’re working on for the whole 8 hours. I’m pretty sure you’re doing also something else instead of doing your job. Like reading this article.<br>Making people happier, more motivated and free to choose how best to contribute to the company can be done in many ways and increases the outcomes of the individuals, making better KPIs as a natural consequence.<br>One of these ways requires fewer working hours.<br>Wouldn’t you be happier if you could use part of the afternoon by attending that sommelier workshop you’ve always wanted?<br>What would you say if you could stop going to the gym after dinner, when you’re tired and stressed out?<br>And what about going to pick up your children at the kindergarten?<br>Have you noticed it?<br>What about living your life? Would it make you happier?<br>I’m deeply convinced that when your company struggles to help you have a better life, your work is so damn good, like a virtuous circle.</p><h3>A new renaissance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dlz9pPPFg95Ruj0yiBfr1w.jpeg" /></figure><p>So, what can we do to change the current status quo, exactly how <a href="https://en.wikipedia.org/wiki/Robert_Owen">Robert Owen</a> did back in the 1800s with the <strong>short time movement</strong>?<br>I think we can all contribute by applying these suggested actions in our work environment, depending on your role (employee/employer):</p><ol><li><strong>ask/provide shorter working hours</strong>: there are many combinations you can take advantage of, such as 4 hours a day (20h/w), 6 hours a day (30h/w), 4 days a week (32h/w) and also half a day free per week (36h/w)</li><li><strong>ask/provide flexible working hours</strong>: work according to your biorhythm and having an excellent balance between work and private life. This way the productivity increases because you’re happier and more energetic</li><li><strong>ask/provide asynchronous communication</strong>: we’re talking about time so use it wisely and delay non-urgent communication through async channels such as email. This will help the company get better organised with everyone’s schedule</li></ol><p>As you can see, I’ve no real solutions, only ideas.<br>If you think there are other better ways, please share them in the comments below!<br>And if you think this topic is worthwhile, consider sharing it through your network.</p><p>I leave you with this inspiring thread by <a href="https://twitter.com/tobi"><strong>Tobi Lutke</strong></a>:</p><h3>Tobi Lutke 🌳🌲🛒🕹 on Twitter</h3><p>I realize everyone&#39;s twitter feed looks different. But I&#39;ll go ahead and subtweet two conversations that I see going by right now: a) How the heck did Shopify get so big this decade and b) You have to work 80 hours a week to be successful. Thread/</p><h4>A special thanks ❤️</h4><p>I want to thank all the people who spent their precious time reviewing this article:</p><ul><li><strong>Matilde Diana</strong></li><li><a href="https://medium.com/u/e6150ed6c0f6"><strong>Gabriele Scavizzi</strong></a></li><li><strong>Chiara Baricchi</strong></li><li><a href="https://medium.com/u/cb6b99cd9ea7"><strong>Michele Bertoli</strong></a></li><li><a href="https://medium.com/u/fbe5fa6a13d2"><strong>Alessandro Rabitti</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47657487dae6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[E dopo 20 anni, a cena con le medie]]></title>
            <link>https://medium.com/@wilk/e-dopo-20-anni-a-cena-con-le-medie-bb71c4190e81?source=rss-8acefb9561f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb71c4190e81</guid>
            <dc:creator><![CDATA[Wilk]]></dc:creator>
            <pubDate>Fri, 15 Nov 2019 09:47:47 GMT</pubDate>
            <atom:updated>2019-11-15T10:17:37.118Z</atom:updated>
            <content:encoded><![CDATA[<p>Una serata cristallizzata nel tempo e nei ricordi</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VRMm6E1bhjN8baBRMKMPEA.jpeg" /><figcaption>Da sinistra: Miki, Seby, Cello, Bonda, Sophie, French, Vince, Barbo, Denise, Iba, Mariotti, Elena, Sonia, Violi, Mario, Chloe, Portius, Delfi</figcaption></figure><p>Qualche settimana fa sono stato trascinato su un gruppo <em>Whatsapp</em> chiamato <strong>Cena di classe — Salesiani</strong>.<em><br></em>I miei anni delle medie sono stati abbastanza discontinui, avendo frequentato il primo in una sezione, il secondo in un’altra e il terzo addirittura in un istituto differente. Ma come dimenticarsi della mitica 2B??<br>Tornando al gruppo su Whatsapp: inizio a riconoscere le prime persone dai nickname a fianco dei numeri ma di molti non riesco ad associare il volto al nome.<br>Partiamo subito a presentarci e a salutarci, organizzandoci con un po’ di fatica per data e orario.</p><p>Arriviamo così alla fatidica serata.<br>Chiedo a <strong>Mario</strong>, il migliore amico d’infanzia, di darmi uno strappo: solo l’anno prima ho scoperto che abitava nel mio stesso quartiere, nonostante non ci sentissimo da parecchio tempo.<br>Arriviamo alla trattoria <em>Tripoli</em>, ristorante scelto dall’organizzatore dell’evento, Marcello detto <strong>Cello</strong>. Lasciatemi aprire una piccola parentesi: organizzare una cena con gente che non vedi da 20 anni non è esattamente una passeggiata, in particolar modo per mettere tutti d’accordo sull’orario e la data. Ma Cello ha fatto del suo meglio ed è riuscito nell’intento: bravo! 👏 👏<br>Scesi dalla macchina vediamo un gruppo di persone davanti alla porta d’ingresso: saranno loro?<br>Il volto famigliare della <strong>Chloe</strong> mi rassicura, così come quello di <strong>Violi</strong>: infatti era accaduto di vederli in centro a <em>Montecchio</em> qualche anno prima.<br>Ma degli altri zero meno. Solo un vago ricordo.<br>Da lì la domanda: sono persone che hanno fatto il secondo anno con me o magari sono arrivate dopo o andate via prima?<br><em>“Ciao, io sono Michele!”</em> esordisce il primo mentre lo saluto: bam, all’improvviso quel volto sconosciuto torna a riacquisire quel significato che s’era perso nei meandri della memoria. Massì cazzo, è <strong>Miki</strong>!<br>E subito dopo, un ragazzo con ormai l’ombra di quello che un tempo era un taglio di capelli a scodella, mi saluta con <em>“Iba… Ibatici, ricordi??”</em>. E lì, un altro schiaffo alla memoria. <strong>Iba</strong>. Cazzo, ma è proprio lui!<br>La scenetta si ripete con diverse persone e ogni volta i ricordi riaffiorano come un fiume in piena.<br>La cosa incredibile è come, una volta associato il nome al volto, la persona di turno torni ad essere familiare, come se il tempo si fosse fermato a quegli anni ormai lontani.<br>Se in un primo momento sembra di chiacchierare con un gruppo di sconosciuti, ora siamo nuovamente noi, <strong>la 2B dei Salesiani di Montechiarugolo</strong>! Soccia che trip!<br>Con <strong>Mariotti</strong> non ho di questi problemi: chissà perché il ricordo di lui è rimasto piacevolmente impresso nella memoria.</p><blockquote>“Ciao talebano!” — Mariotti salutando Mario</blockquote><p>Entriamo nel locale per sfuggire all’umidità della serata e iniziamo a prendere posto alla lunga tavola apparecchiata per noi: un’intera sala a nostra disposizione, quasi come se tutta la trattoria fosse stata prenotata esclusivamente per il nostro evento.<br>Iniziano così i primi ricordi, i primi commenti, le prime battute, accompagnate da un calice di Prosecco.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3ohEtCGxGEVwBOsiH-E0g.jpeg" /><figcaption>Delfi, Cello, Mario, Barbo, Iba</figcaption></figure><p>Saluto <strong>Delfi</strong>, con un chiaro aiuto dal pubblico per riconoscerlo; poi il <strong>Bonda</strong> e il <strong>Barbo</strong>, con cui mi sono incontrato durante l’anno; Cello, si, anche con Cello ho avuto bisogno di aiuto.<br>Più di una volta mi sono chiesto se fossi l’unico ad avere una memoria così ricca di lacune.<br>Con <strong>Portius</strong> è stato più semplice: forse perché mesi prima il Bonda mi aveva raccontato di lui e del fatto che era diventato un’artista, facendomi vedere un paio di foto sul faccialibro.<br>I due baci di saluto sono più diretti rispetto a quelli degli altri: vengo a scoprire solo dopo che ora vive in Norvegia e non posso non domandarmi se lì non siano così espansivi, quanto meno per il saluto. Portius mi rassicura che di norma i norvegesi hanno una doppia personalità ed è di notte il momento di <em>Mr Jekyll</em>.<br>Saluto anche <strong>Sonia</strong> e inizio a chiacchierare della prorompente pancia della Chloe con la diretta interessata.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kAphCJwlx_dkGwj3OmaGYg.jpeg" /><figcaption>Bonda, Miki, Barbo, French</figcaption></figure><p>Nel frattempo arriva una seconda ondata di vecchi e cari compagni di classe.<br>L’indimenticabile trio: l’<strong>Ele</strong>, la <strong>Sophie</strong> e la <strong>Denise</strong>. Ah… come dimenticarsi di loro?<br>Ad accompagnarle c’è <strong>French</strong>. Dall’abbigliamento la domanda spontanea e diretta di Mario: <em>“ma lavori in banca?”</em>.<br>Da lì a poco arriverà anche la <strong>Seby</strong>: un altro gigantesco vuoto di memoria si ricolmerà dopo averla vista e salutata.</p><p>Dopo i vari saluti e le varie esclamazioni di stupore, il volume della tavolata aumenta sensibilmente: risate e battute iniziano a coronare quella divertente e amata cacofonia.<br>Gustandomi del buon lambrusco, colgo l’occasione per osservare i commensali. E’ singolare come le movenze, le espressioni, gli sguardi, così come gli atteggiamenti siano rimasti immutati nel tempo, quasi a conferma che quelli sono proprio loro, i compagni di classe delle medie.<br>Durante la serata vengono riesumati vecchi ricordi e aneddoti scolastici: si parla di professori, di lezioni, delle altre classi, dei primi amori.<br>E ovviamente anche degli scherzi fatti tra di noi, come gli oggetti ripetutamente rubati a Barbo, o le incursioni in classe, come quella di Piumi e Nevio sempre ai danni del povero Barbo, o ancora il vecchio e sgangherato autobus i cui sedili emanavano nubi di polvere se battuti a dovere.<br>Parliamo anche delle nostre vite e scopro con delizia e ammirazione come la vita di ognuno sia stata così particolare, strana, ambiziosa, o semplicemente diversa da quanto si potesse immaginare dagli anni delle medie.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0fJJ1GCEdEIfexB1FmoR-g.jpeg" /><figcaption>Vince, Violi</figcaption></figure><p>Ve lo sareste mai immaginato Violi <em>cuoco giramondo</em>?<br>E Portius <em>l’artista norvegese</em>?<br>French e soprattutto Mariotti rispettivamente <em>padri di due figli</em>?<br>La Seby che vive per degli anni in <em>Francia</em>?<br>E che dire delle amicizie? Ah, che tema speciale!<br>Nuovamente Violi e Portius che discutono animatamente, <em>esattamente come facevano in classe</em>.<br>O Iba, Miki e Delfi, quasi come se fossero ancora in <em>banco assieme</em>.<br>E che dire delle tre donzelle, Sophie, Denise ed Ele? <em>Rimaste amiche per così tanto tempo</em>, nonostante i 20 anni alle spalle e i giganteschi cambiamenti di vita.<br>Ah, che spettacolo!</p><p>La cosa più bella e sensazionale è come tutta la tavolata sia in sintonia: una classe delle medie che fa una cena, che c’è di strano, no? Beh ovviamente nulla, se solo non fossero quei 20 anni a separarci. Una vita fa.<br>Un misto di felicità e malinconia mi accompagna tutt’ora.</p><p>Arriviamo ai dolci e ai liquori.<br>Colgo l’occasione per fare un giro della tavolata e parlare un po’ con tutti.<br>Come scusa inizio col giro di selfie a cui tutti si prestano con espressioni divertite e talvolta strafatte dai fumi dell’alcol.<br>Parlando scopro che Miki è un musicista e frontman di una band musicale; la Sophie che è mamma da ormai diversi anni, così come Denise; l’Ele un architetto ormai di fama. Piacevoli scoperte che mi fanno rivedere i compagni di classe sotto una nuova luce!<br>Verso la fine della serata, si formano due gruppi ai lati opposti della tavola.<br>Ora si parla di figli, di vita di coppia, di abitudini, di routine e di mogli/mariti e di compagni/compagne di vita.<br>Si scopre che alcuni di noi sono mariti modello: French, Mariotti, Iba e Cello strabiliano le ragazze col loro impegno domestico.<br>E analogamente si scoprono delle mogli modello: la Sophie e la Chloe che accudiscono la casa in modo impeccabile! <em>(Dai, sono stato abbastanza polite)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_hFAAbIsQHn3AAqxU7E63Q.jpeg" /><figcaption>Denise, Ele, Cello, Sophie, Mariotti, Sonia, Chloe</figcaption></figure><p>Il tempo passa velocemente, troppo velocemente, come la ricreazione.<br>I primi cominciano ad andare e danno il via all’esodo verso le macchine.<br>Con rammarico e quasi rassegnazione, lasciamo il passo alla stanchezza e al dovere: l’indomani una nuova giornata lavorativa ci aspetta.<br>Paghiamo il conto, usciamo ma sfruttiamo ancora quei pochi momenti per cazzeggiare e continuare a ridere e scherzare, prima dei saluti finali.<br>Baci, strette di mano, abbracci, sorrisi e sguardi d’intesa accompagnano l’ultimo saluto, con la promessa di rivederci prima di far passare altri 20 anni.<br>Ma sono abbastanza sicuro che almeno una decina li lasceremo trascorrere: d’altronde è il ricordo di bei momenti a invogliarci a rivederci, non tanto la routine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QYwYcYsEbFqsu1LwampK7A.jpeg" /><figcaption>Vince, Denise, Mario, Mariotti</figcaption></figure><p>Io e Mario rientriamo e i commenti ci scortano fino alla soglia di casa: è piacevole pensare che la stessa cosa sia accaduta a tutti noi, parlare e ripensare alla serata, alle persone, ai divertenti ricordi degli anni delle medie.<br>Ormai è l’una di notte passata. In casa moglie e bimbe dormono ma l’eccitazione della serata pulsa ancora nelle vene, come l’adrenalina rilasciata durante un intenso allenamento o dopo aver ballato tutta la notte in discoteca.<br>E’ incredibile quanto sia stato bene e lo è ancora di più nel leggere i primi commenti in arrivo in chat.</p><blockquote>“Ragazzi sarei stata con voi fino alla mattina a parlare…” — Sophie</blockquote><p>E allora come fare a immortalare una serata del genere se non mettendo nero su bianco tutto quello che è avvenuto?<br><em>Carpe diem!<br></em>Abbozzo le sensazioni, i pensieri e le emozioni la notte stessa, per poi sistemarli nei giorni a seguire e stilare questo articolo che spero possa portare a te lettore una lacrima di gioia, un sorriso, un pensiero malinconico e dolce allo stesso tempo, di quelli che sono stati anni indimenticabili.<br>Siamo ancora qui, tutti quanti, con vite diverse: alcuni di noi si sentono, altri meno.<br>Ma la voglia di rivedersi è ancora accesa in tutti noi.<br>E questo è un pensiero che val la pena raccontare.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eirl_jZePXSn_ff0L06Zww.jpeg" /></figure><h4>Ringraziamenti</h4><p>Un grazie speciale ancora a Cello per aver organizzato la cena!<br>Un grazie ai reviewer di questo articolo per aver contribuito con commenti e suggerimenti: mia moglie, la Denise, Portius e Cello!</p><p>Ma soprattutto un <strong>grazie di cuore a tutti</strong> per aver realizzato questa bellissima serata e un invito a chi non è riuscito a partecipare ❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb71c4190e81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microjob: a tiny multithreading library for Node.js]]></title>
            <link>https://medium.com/hackernoon/microjob-a-tiny-multithreading-library-for-node-js-92d0500b07d5?source=rss-8acefb9561f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/92d0500b07d5</guid>
            <category><![CDATA[nodejs-multithreading]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[multithreading-library]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[multithreading]]></category>
            <dc:creator><![CDATA[Wilk]]></dc:creator>
            <pubDate>Tue, 11 Sep 2018 13:26:01 GMT</pubDate>
            <atom:updated>2019-04-26T11:49:26.960Z</atom:updated>
            <content:encoded><![CDATA[<p>No more limits for CPU loads</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vuJ6ClNVAzlVo-e3OzP43Q.jpeg" /></figure><h3>TL;DR;</h3><p>Node.js 10.5 introduced <a href="https://nodejs.org/en/blog/release/v10.5.0/"><strong>worker threads</strong></a> and <a href="https://github.com/wilk/microjob"><strong>microjob</strong></a> is a tiny wrapper around them.<br><strong>microjob</strong> helps you to spawn new threads with ease, just like calling an anonymous function, interfaced with promises and async/await mechanism.</p><h4>A brief history of Node.js</h4><p>Node.js is famous for its <a href="https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#what-is-the-event-loop"><strong>event loop</strong></a>, a powerful mechanism for handling I/O bound operations with high performance.<br>The early implementations of the asynchronous interface were carried out with callbacks, then they evolved into promises and finally into the well known async/await pattern.<br>Today, <strong>using Node.js for I/O loads is common</strong>, like HTTP requests, DB queries, file system calls, timers, tickers and so on, and of course Node.js is really powerful for these operations.<br>However, <strong>Node.js has always suffered from a lack of a good system to sustain heavy CPU loads</strong>.</p><h4>CPU bound operations</h4><p>But what are those “<em>heavy CPU loads</em>”?<br>Here’s a good explanation from a <a href="https://www.quora.com/What-are-some-examples-of-CPU-bound-and-non-CPU-bound-problems-What-would-be-the-best-programming-language-to-tackle-each-situation">Quora answer</a>:</p><ol><li>Search algorithms</li><li>Video/Audio/Content conversion/compression algorithms</li><li>Video streaming</li><li>Graphics processing/rendering e.g games, videos</li><li>Heavy mathematical computations like matrix multiplication, calculating factorials, finding prime numbers etc.</li></ol><p>For these operations, Node.js has always suffered because of its nature: <strong>non-blocking single-threaded event-loop</strong>.<br>Wait, what?<br>The main feature of Node.js is the event-loop, a mechanism where threads are spawned and handled underneath. However, this works only with asynchronous operations but <strong>the sync ones are executed on a single thread</strong> and there’s just one thread in execution at a time.<br>Meaning that if a long-running job gets executed, the main thread remains blocked until the execution is finished, blocking the whole system.<br>To prevent such inconvenience, Node.js supports <a href="https://nodejs.org/api/cluster.html">multiprocessing</a> but the <strong>context-switch between processes is expensive</strong>.</p><h4>Worker threads</h4><p>With version 10.5, Node.js shipped <a href="https://nodejs.org/api/worker_threads.html">worker threads</a>, multithreading in all of its splendor!<br>You can just spawn a new thread and let it handle those heavy CPU loads.<br>So, how does it work?<br>Worker threads come with the <strong>event interface</strong> and they can communicate with the main thread via <strong>message passing</strong>.<br>The <a href="https://nodejs.org/api/worker_threads.html#worker_threads_example">example inside the docs</a> is really self explaining.<br>Working with events and message passing is good with long-living jobs, where you need to have a running thread in background but what if I want to run just a <strong>one-shot function</strong>, carrying a heavy CPU load, in a separated thread?</p><h4>Entering microjob</h4><p>In languages, such as GoLang, you can make it effortlessly with <strong>lightweight routines</strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc24ab8b4edcba6526cc5007da14c69d/href">https://medium.com/media/bc24ab8b4edcba6526cc5007da14c69d/href</a></iframe><p>That <em>fmt.Println</em> is executed in a different thread with an anonymous function defined and invoked inline.<br>What if you can make it in the same way with Node.js’s worker threads?<br>And that’s why I’ve created <a href="https://github.com/wilk/microjob"><strong>microjob</strong></a>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdd7c728c6c1b259a0764cc320d6735e/href">https://medium.com/media/bdd7c728c6c1b259a0764cc320d6735e/href</a></iframe><p>A tiny wrapper that allows you to work with <a href="https://hackernoon.com/tagged/async"><strong>async</strong></a><strong>/await interface</strong>, skipping the boring part of instantiating a new thread and sync with it through events.</p><h4>What’s under the hood?</h4><p>microjob starts a new thread and sends the given function to it with the desired data, executing (evaluating) it in the specified context.<br>Meaning that you can do this magic pretty like you’d do in GoLang:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c017138f3b678a9cdfe93a11d94e6d03/href">https://medium.com/media/c017138f3b678a9cdfe93a11d94e6d03/href</a></iframe><p>And you can actually <strong>pass custom data</strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d8c805c8c57358384ab5ab67091cd22/href">https://medium.com/media/4d8c805c8c57358384ab5ab67091cd22/href</a></iframe><p>What about having async functions invoked inside the worker?<br>microjob comes with <strong>the whole power of </strong><a href="https://hackernoon.com/tagged/javascript"><strong>Javascript</strong></a>, allowing you to use the async/await pattern inside threads:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e1464b73cf2c05e3ff7fa14fe2e0cdfe/href">https://medium.com/media/e1464b73cf2c05e3ff7fa14fe2e0cdfe/href</a></iframe><h4>The future of microjob</h4><p><strong>microjob is evolving rapidly</strong>, due to users’ requests and the constant changing ecosystem of Node.js.<br>It’s having a good feedback from the community, earning something like <a href="https://github.com/wilk/microjob/stargazers"><strong>800+ stars</strong></a> on Github in the first week, scaling the Github Trending page.<br>Soon, microjob will have its own <a href="https://github.com/wilk/microjob/issues/3">thread pool system</a>, then it will be <a href="https://github.com/wilk/microjob/issues/4">rewritten in Typescript</a> and it will <a href="https://github.com/wilk/microjob/issues/5">support CI/CD</a> with unit testing.</p><p>Finally, I’m glad JS people are so interested in having multithreading in Node.js!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92d0500b07d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/microjob-a-tiny-multithreading-library-for-node-js-92d0500b07d5">Microjob: a tiny multithreading library for Node.js</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[Secure NPM]]></title>
            <link>https://medium.com/hackernoon/secure-npm-ca2fe0e9aeff?source=rss-8acefb9561f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca2fe0e9aeff</guid>
            <category><![CDATA[secure-npm]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Wilk]]></dc:creator>
            <pubDate>Tue, 15 May 2018 12:56:01 GMT</pubDate>
            <atom:updated>2019-04-26T11:49:29.806Z</atom:updated>
            <content:encoded><![CDATA[<h4>Proof of Concept to ensure consistency between NPM packages and their source code</h4><h4>TL;DR;</h4><p><a href="https://github.com/wilk/snpm"><em>SNPM</em></a><em> is a Proof of Concept built to ensure consistency between what is published on the NPM registry and its open source counterpart on public repositories, like Github.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_wzAc2irpT6U0xvvASHEQ.jpeg" /><figcaption><a href="https://unsplash.com/photos/IV--3UEiHlI">Unsplash</a></figcaption></figure><p>At the end of April, <a href="https://medium.com/the-node-js-collection/the-node-js-project-introduces-latest-release-line-node-js-10-x-bf07abfa9076"><strong>Node.js 10 was released</strong></a> and so NPM <a href="https://medium.com/npm-inc/announcing-npm-6-5d0b1799a905"><strong>announced npm@6</strong></a>.<br>One of the major feature introduced with version 6 is about <a href="https://hackernoon.com/tagged/security">security</a>: I’m talking about <a href="https://docs.npmjs.com/getting-started/running-a-security-audit"><strong>npm audit</strong></a>.<br>This new command allows the user to perform an <em>“assessment of package dependencies for security vulnerabilities helping the user to protect their package’s users from known vulnerabilities that could cause data loss, service outages, unauthorized access to sensitive information and so on”.<br></em>That’s a huge improvement that NPM team has done for the entire community.</p><p>However, I think <strong>they didn’t catch the real problem</strong>.</p><h3>A major security leak</h3><p>At the beginning of 2018 <a href="https://hackernoon.com/@david.gilbertson"><strong>@david.gilbertson</strong></a> was publishing what would become <a href="https://hackernoon.com/im-harvesting-credit-card-numbers-and-passwords-from-your-site-here-s-how-9a8cb347c5b5"><strong>a stunning article</strong></a> about the fragility of NPM ecosystem security.<br>What David did then was <strong>exposing a</strong> <strong>major security leak</strong> of NPM model.</p><blockquote>In few words: what is published on the NPM registry may differ from what you see on Github.</blockquote><p>Usually, a NPM package has its source code published on Github (or hosted on another public repository), giving users the ability to verify the project and contribute.<br>However, when someone publishes a new package on NPM no one can say that what has been uploaded is exactly what has been published on Github.<br>This means that you can upload a malicious code on NPM and then publish a different harmless code on Github, and users won’t realize it. Not immediately, at least.</p><blockquote>This weakens the foundation of the Open Source ~ Paolo Sinelli</blockquote><p>How can we trust a system that allows users to share closed source code without any way to verify its authenticity?</p><p>Funny fact: in these very days, <a href="https://amp.reddit.com/r/Python/comments/8hvzja/backdoor_in_sshdecorator_package/?st=jgynd5qc&amp;sh=81855e72&amp;__twitter_impression=true">a backdoor has been spotted on a Python package named ssh-decorator</a>.<br>Someone found it inside the source code and alerted users so the compromised package was finally taken down.<br>This is the proof that having access to the source code allows the community to prevent and cure bad situations.</p><h3>SNPM for the rescue</h3><p>So, After David’s article, I started creating a <a href="https://github.com/wilk/snpm"><strong>Proof of Concept</strong></a> to avoid these situations with NPM.<br>It is called <strong>Secure NPM (SNPM)</strong> and I’ll try to explain how it works in few simple steps.</p><p><strong><em>Disclaimer</em></strong><em>: SNPM is calibrated for compiled (binaries) and transpiled packages but it can be adapted also for plain packages.</em></p><p>First, when the author wants to publish a new version of their package, they <strong>build the sources</strong> and <strong>calculates the checksum</strong> of the compiled output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*Nop9q4dsJP2cH3mzwEeDWQ.png" /><figcaption>Build sources</figcaption></figure><p>Then, they need to <strong>update the package.json</strong> with the new version and the checksum.<br><a href="http://wiki.commonjs.org/wiki/Packages/1.1#Catalog_Properties">CommonJS provides a field</a> called <strong>checksums</strong> where the author can store checksums of its code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*e4IJK0Wz184YP9kzFUAirg.png" /><figcaption>Update package.json</figcaption></figure><p>Now they can <strong>release</strong> it on Github (or another public repo) with a new tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*IXW6QLxX1TvqhHf_odpqjQ.png" /><figcaption>Release on a public repository</figcaption></figure><p>At this point, they can <strong>publish</strong> it on NPM via SNPM: it will send just few data, such as the package version, the public repository url and the checksum.<br>This differ from “<em>npm publish”</em> command because it won’t send the whole source code, nor the compiled files, but just those three information above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*Su6TlXoYbYhGEFu88k7ihA.png" /><figcaption>Publish on NPM, using SNPM</figcaption></figure><p>NPM is now in charge of <strong>fetching the released version</strong> from the public repo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*MrMo0OwJKi8OqpI32IQHsQ.png" /><figcaption>Fetch released version tar.gz</figcaption></figure><p>NPM can now <strong>validate</strong> the checksum by performing a series of actions:</p><ol><li>installing all the dependencies, via <strong>npm install</strong></li><li>building the sources, via <strong>npm run build</strong></li><li><strong>calculating the checksum</strong> of the compiled files</li><li><strong>verifying the checksums</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*ol9SVx6rx0Sx5NIAm-lwbw.png" /><figcaption>Reproduce and verify the checksum</figcaption></figure><p>At this point, NPM has all the information to <strong>reply</strong> with a successful answer or with an error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*bH9nlPlhUfsSLVKL5iTi1Q.png" /><figcaption>Reply to the publish request</figcaption></figure><p>That’s it.<br>Following the summarized algorithm:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*1b7KHDG2St5D-6jepfMhNA.png" /><figcaption>SNPM algorithm</figcaption></figure><p>The main difference between NPM and SNPM is that (compiled) sources are not uploaded any more from the (untrusted) author but downloaded directly from the public repo (trusted), where everyone can reproduce the same procedure and verify the checksum.</p><h3>Conclusions</h3><p>Unfortunately, <em>npm audit</em> doesn’t solve this major leak and the issue is still open, especially for binaries and minified <a href="https://hackernoon.com/tagged/javascript">Javascript</a>.<br>We (as a community) must get verified and validated packages.</p><p>Anyway, I want to thank the NPM team for their awesome work and I hope this article will push them to improve the security of one of the best package manager ever developed.</p><h4>*** Update ***</h4><p>I’ve created <a href="https://github.com/npm/npm/issues/20640"><strong>a new issue</strong></a> on NPM’s repository, asking for a Feature Request.<br>After that, I’ve added <a href="https://github.com/npm/npm/issues/20640#issuecomment-389762201"><strong>another proposal</strong></a> always on the same thread called <strong>npm verify</strong>: as a NPM command, it should reproduce the download-build-checksum verification process, so users can verify packages on the fly.</p><h4>*** Update — July ***</h4><p>I’ve submitted a <a href="https://github.com/npm/rfcs/pull/16"><strong>new RFC for NPM</strong></a> and <a href="https://github.com/yarnpkg/rfcs/pull/94"><strong>one for Yarn</strong></a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca2fe0e9aeff" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/secure-npm-ca2fe0e9aeff">Secure NPM</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[Thanc ye, sir! ⭐️]]></title>
            <link>https://medium.com/hackernoon/thanc-ye-sir-%EF%B8%8F-57d5e99ee869?source=rss-8acefb9561f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/57d5e99ee869</guid>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[thanc]]></category>
            <dc:creator><![CDATA[Wilk]]></dc:creator>
            <pubDate>Sun, 07 Jan 2018 14:27:51 GMT</pubDate>
            <atom:updated>2019-04-26T11:50:34.083Z</atom:updated>
            <content:encoded><![CDATA[<h4>Thank every dependency you use inside your Javascript projects. Yes, all of them. With thanc🤘</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5uoNSJW7ep8YgQLnaFmvZA.png" /></figure><h4>tl;tr 😏</h4><p><a href="https://github.com/wilk/thanc"><strong><em>thanc</em></strong></a><em> is a </em><a href="https://hackernoon.com/tagged/nodejs"><em>Node.js</em></a><em> program that lets you to star the whole dependency tree of a given project containing a package.json manifest or a package-lock.json file.<br>It helps to say thanks to every dependency you’ve used in your projects by starring it on Github.</em></p><h4>Preamble</h4><p>A couple of days before Christmas, a friend of mine told me about <a href="https://github.com/symfony/thanks"><strong>thanks</strong></a>, a Symfony package to:</p><blockquote>Give thanks (in the form of a GitHub ⭐) to your fellow PHP package maintainers (not limited to Symfony components)!</blockquote><p>That was a gorgeous idea and I wanted to have it for <a href="https://hackernoon.com/tagged/javascript">Javascript</a> as well.<br>The only problem was that two packages, named <a href="https://www.npmjs.com/package/thank">thank</a> and <a href="https://www.npmjs.com/package/thanks">thanks</a>, already exist on NPM and I needed to find something else because, you know, <strong>naming things is actually important</strong>.<br>Well, it turned out that the ancient word in English to say thank is <a href="http://www.dictionary.com/browse/thank">thanc (or thancian</a>): I liked it, so I chose it.</p><h4>Hack-a-thanc</h4><p>It was Saturday, December 23, few minutes past midnight when I started coding.<br>Firstly, I designed the workflow of thanc, step by step:</p><ul><li>request Github user credentials (basic auth)</li><li>read package-lock.json dependencies list</li><li>retrieve the package info for each dependency by querying the NPM registry</li><li>star Github repos</li></ul><p>It was quite simple and at 4:00 am I was able to commit the very <a href="https://github.com/wilk/thanc/commit/943b8482b05118dc8571dd2a3257e4b1c23d4362"><strong>first working prototype</strong></a><strong>.<br></strong>I didn’t expect that: I missed those wonderful nights, spent working on pet projects, when I was studying at the university. Great times!<br>But suddenly, it happened! I was thrilled and galvanised!</p><h4>⭐️ Introducing thanc ⭐️</h4><p>Now that I’m writing, it’s the 31st of December, 8 days, 53 commits, 19 releases later.<br><a href="https://github.com/wilk/thanc">thanc</a> evolved quickly but the workflow is quite the same.<br>It supports both <strong>basic</strong> and <strong>user token</strong> authentications and it continues to rely on <strong>package-lock.json: </strong>if it doesn’t exist, thanc generates a temporary one on the fly, so even older projects built with Node.js 0.10 can be thanked.<br>thanc is also <strong>transpiled</strong> to ES5 so it can be ran with older versions of Node.js: in fact, the source code is written in plain ES6+.<br><a href="https://github.com/chalk/chalk"><strong>chalk</strong></a> has been used to make it more user friendly and funny, like the vast usage of emojis: <a href="https://github.com/zwilias/elm-thanks"><strong>elm-thanks</strong></a> inspired me a lot 👊</p><p>I think the most important characteristic of thanc is the capability to thank <strong>the whole dependency tree </strong>and not just the first level defined inside the package.json manifest.<br>In fact, when thanc is launched against a project, it scans the package-lock.json file, parsing every dependency, eventually reaching the tree leaves (those nodes without dependencies).</p><h4>⚙️ Using thanc</h4><p>The very first user of thanc was me and not just for testing but also because I needed it.<br>I’ve been working with Node.js <strong>since version 0.10</strong> and I’ve accumulated so many projects that it would be impossible for me starring all the dependencies and sub-dependencies listed inside the many package.json files.<br>Before starting with thanc, I’ve had <strong>1291</strong> starred repos on Github (collected in <strong>several years</strong>): then, <strong>3294</strong>.</p><p><strong>2000 stars in few days</strong>… astonishing 😲<br>I think you’ll notice how many packages your repos are using and maybe just for a very tiny part: yep, sometimes is just <a href="https://hackernoon.com/whats-really-wrong-with-node-modules-and-why-this-is-your-fault-8ac9fa893823">our fault</a>.</p><p>Anyway, thanc is quite simple to use 🙌<br>Just install it with NPM:</p><pre>$ npm i -g thanc</pre><p><a href="https://github.com/settings/tokens/new">Create a new user token</a> on your Github account, then put it into an environment variable called <strong>GITHUB_TOKEN</strong> and you’re done:</p><pre>$ export GITHUB_TOKEN=&lt;your_github_token&gt;<br>$ thanc</pre><h4>Thank, share and contribute 💛</h4><p>The very first thing you can do to contribute is to thank thanc itself:</p><pre>$ thanc --me</pre><p>thanc is open source and I’m sure you’ve plenty of great ideas to share and to propose: so, don’t forget to PR and to raise new issues!</p><p><em>If you enjoyed this article, please 👏 and share it with your mates 🤘</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57d5e99ee869" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/thanc-ye-sir-%EF%B8%8F-57d5e99ee869">Thanc ye, sir! ⭐️</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[From CSV to Buxfer: an unexpected journey — Conclusions]]></title>
            <link>https://medium.com/hackernoon/from-csv-to-buxfer-an-unexpected-journey-conclusions-b1274aa9841e?source=rss-8acefb9561f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1274aa9841e</guid>
            <category><![CDATA[side-project]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[sharing]]></category>
            <category><![CDATA[training]]></category>
            <dc:creator><![CDATA[Wilk]]></dc:creator>
            <pubDate>Wed, 29 Nov 2017 23:04:35 GMT</pubDate>
            <atom:updated>2019-04-26T11:50:34.474Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 5— conclusions: a recap about this incredible journey</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4opIS0wQqk4QOW0ZXN5XA.jpeg" /></figure><h3>Preamble</h3><p>In <a href="https://hackernoon.com/tagged/goxfer">Goxfer </a>— Part 4, I’ve coded the Goxfer program, pushing stored data online.<br>Now, it’s time to recap this adventure and to understand what I got from it.</p><h4>Journey</h4><p>In this article, I cover the last part of this journey:</p><ol><li><a href="https://medium.com/@wilk/from-csv-to-buxfer-an-unexpected-journey-introduction-ba43ef768fe2">Part 1: Introduction</a></li><li><a href="https://hackernoon.com/from-csv-to-buxfer-an-unexpected-journey-cleaner-c87e8a77fda6">Part 2: Cleaner</a></li><li><a href="https://hackernoon.com/from-csv-to-buxfer-an-unexpected-journey-collector-4dbde92c1e7b">Part 3: Collector</a></li><li><a href="https://hackernoon.com/from-csv-to-buxfer-an-unexpected-journey-goxfer-88d8a14e8905">Part 4: Goxfer</a></li><li>Part 5 (this part): Conclusions</li></ol><h3>Summary</h3><p>At the beginning of this hacking <a href="https://hackernoon.com/tagged/adventure">adventure</a>, I wanted to do something useful, having fun, learning new technologies and documenting everything so it would have been available for sharing.<br>So, firstly I’ve listed the objectives and I tried to follow them as much as possible:</p><ul><li>training on the job</li><li>having fun</li><li>getting things done</li><li>making something useful</li><li>sharing with someone</li></ul><p>Of course I got much more from this adventure but I wanted to stick to this list, in any case.<br>In fact, during the journey, I faced some unexpected situations and experimented unwanted emotions.</p><h4>An unexpected journey</h4><p>When I started, I was quite thrilled and galvanised from the new challenge: taking all of my transactions of 2016 and putting them on Buxfer, using a various and heterogeneous group of technologies and languages, some of them very unusual to me.<br>Albeit goals were well defined and so the main objective (putting my transactions online), some <strong>unexpected complications</strong> came up.</p><p>For instance, <strong>testing</strong>: I didn’t think enough about automated testing on a big dataset. I had to do manual testing many times, by picking bunches of data from the result set, checking if they were ok and then trust them as safety. Obviously, I was wrong: manual testing can give you just a shallow idea of what’s going on underneath.<br>So, that situation was tedious because it would require me to spend a lot of time writing automated tests or performing new manual tests, just to have better results.</p><p>Another example, <strong>Buxfer’s APIs</strong>.<br>As I said in <a href="https://hackernoon.com/from-csv-to-buxfer-an-unexpected-journey-goxfer-88d8a14e8905">Part 4</a>, initially they were bugged and I discovered it later, when I had already written the Cleaner, the Collector and part of the Goxfer program.<br>I had to stop the whole project, raise an issue on Buxfer’s Help Desk and wait at least one month to get the APIs fixed.<br>I was frustrated, demotivated and furious with myself: I should have check the APIs earlier, before starting the project.<br>That’s called <a href="https://en.wikipedia.org/wiki/Feasibility_study">Feasibility study</a>.</p><p>But also <strong>unexpected good side effects</strong> shown up!<br>For instance, <a href="http://hackernoon.com/">Hackernoon</a> accepted this series and published it on their homepage.<br><a href="http://ibuildings.it/">My company</a> helped me sharing my story on social networks.<br>I also had the opportunity to hold a webinar where I talked about this journey to a group of nerds of my city, <a href="https://en.wikipedia.org/wiki/Reggio_Emilia">Reggio Emilia</a>.<br>Those things increased a lot my happiness and motivated me to take new hacking challenges!</p><p>Despite of these good, bad… well just unexpected events, I’ve achieved the main goals.</p><blockquote>Happiness lies in the joy of achievement and the thrill of creative effort</blockquote><blockquote>Franklin D. Roosevelt</blockquote><h4>Training on the job</h4><p>This point was quite necessary.<br>When you do hacking, it’s important to get something from that experience, <strong>something that can enrich you</strong> and your skills set.<br>In this case, I wanted to improve my knowledge about GoLang and Python, languages I don’t generally use in my job.<br>Also parsing CSV data is not a thing I do in my daily duties.<br>So, the goal was training myself with both known and unknown techs during the writing of this project.</p><p>Actually, this training <strong>required more in terms of time</strong>: for example, when I was looking for a solution on Stackoverflow or Google, I could have just copy’n’paste it inside my project but this would have broken the rule of training on the job. So, I checked the documentation, I tried to understand the code of other people and then used it inside my programs, sometimes in different ways.<br>But it worthed. I mean it.</p><h4>Having fun</h4><p>Another interesting point was having fun.<br>Yes, because if you don’t enjoy the hacking moment, it is useless.<br>You do hacking in your spare time so <strong>you‘re entertaining yourself</strong> with something geeky.<br>If you take it seriously, like a job-task, then it’s better to stop and going out for a walk. Your life and the people around you will thank you for that 😬</p><h4>Getting things done</h4><p>But hey, don’t get stuck with just learning and having fun!<br>As I said, those things are ok, but you have to get things done!<br>This point became very useful when I was spending too much time, looking for the best solution for certain problems.<br>It’s ok finding good solutions but if you’re a perfectionist, like me, sometimes you lose the real goal of the project, that in this case wasn’t just learning and implementing like a pro but putting my transactions online.<br><strong>Follow the flow but don’t let it divert you from your destination.</strong></p><h4>Making something useful</h4><p>This was a good point.<br>I don’t mean I was creating something useful just for me but also for someone else.<br>How?<br>Through <strong>sharing</strong>.<br>Yes, if you’ve followed the entire series maybe you’ve found some technologies useful to your job or a good motivation to do hacking and having pet projects, like this one.<br>Keeping this in mind, I was keen to create, document and finish a working program that one day will be useful even for others.</p><h4>Sharing with someone</h4><p>Last but not least, sharing.<br>Even if we (developers) spend much of our time working alone in front of a notebook, sharing remains vital for our existence.<br>We live in a society full of unique and different people that can appreciate, contest, contribute or just take a look to our projects and we need to confront each other.<br>Sharing is the best way to do it, especially with well documented articles, full of code snippets, links to external resources and quotes.<br>So, please, <strong>let the world knows what you’re doing and why you’re doing it</strong> 😉</p><h3>End of this journey</h3><p>Woah, here we are, at the end of this journey: what an adventure 😁<br>Actually, I don’t have anything more to say or to show!<br>I’m just happy for this project and for sharing it with you, dear reader!</p><p>So, if you enjoyed, don’t forget to 👏, comment and/or share it!</p><p>See you in the next adventure!</p><h4>Sources</h4><p>Source code is available here: <a href="https://github.com/wilk/from-csv-to-buxfer">https://github.com/wilk/from-csv-to-buxfer</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1274aa9841e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/from-csv-to-buxfer-an-unexpected-journey-conclusions-b1274aa9841e">From CSV to Buxfer: an unexpected journey — Conclusions</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[From CSV to Buxfer: an unexpected journey — Goxfer]]></title>
            <link>https://medium.com/hackernoon/from-csv-to-buxfer-an-unexpected-journey-goxfer-88d8a14e8905?source=rss-8acefb9561f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/88d8a14e8905</guid>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Wilk]]></dc:creator>
            <pubDate>Wed, 22 Nov 2017 23:28:41 GMT</pubDate>
            <atom:updated>2019-04-26T11:50:35.520Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 4— Goxfer: a story about pushing a transactions dataset online</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cCdSJ0mOqjQkm-soL5hlIw.jpeg" /></figure><h3>Preamble</h3><p>In <a href="https://medium.com/@wilk/from-csv-to-buxfer-an-unexpected-journey-collector-4dbde92c1e7b">Collector — Part 3</a>, I’ve coded the collector program, putting cleaned data inside a <a href="https://hackernoon.com/tagged/mongodb">MongoDB</a> instance.<br>Now, it’s time to use the Buxfer’s APIs to put the whole dataset online!</p><p><a href="https://hackernoon.com/tagged/goxfer">Goxfer</a> is a program that reads structured data from MongoDB and then pushes it online via <a href="http://buxfer.com/help/api">Buxfer’s APIs</a>.</p><h4>Journey</h4><p>In this article, I cover the fourth part of this journey:</p><ol><li><a href="https://medium.com/@wilk/from-csv-to-buxfer-an-unexpected-journey-introduction-ba43ef768fe2">Part 1: Introduction</a></li><li><a href="https://hackernoon.com/from-csv-to-buxfer-an-unexpected-journey-cleaner-c87e8a77fda6">Part 2: Cleaner</a></li><li><a href="https://medium.com/@wilk/from-csv-to-buxfer-an-unexpected-journey-collector-4dbde92c1e7b">Part 3: Collector</a></li><li>Part 4 (this part): Goxfer</li><li><a href="https://medium.com/@wilk/from-csv-to-buxfer-an-unexpected-journey-conclusions-b1274aa9841e">Part 5: Conclusions</a></li></ol><h3>Setup</h3><p>This new program will be coded with GoLang: this means I need to build a custom docker image and to install any dependencies via <a href="https://github.com/Masterminds/glide"><strong>glide</strong></a>, one of the best package manager for Go.</p><p>Ok, let’s start with docker!<br>First, I need to update the <strong>setup-golang</strong> service to build the container image:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b87cc8fd8cc7c1f53d1bb3bce2fe12ee/href">https://medium.com/media/b87cc8fd8cc7c1f53d1bb3bce2fe12ee/href</a></iframe><p>Then, build the image and get inside the container:</p><pre>$ docker-compose build setup-golang<br>$ docker-compose run --rm setup-golang bash</pre><p>Goxfer needs some dependencies, like <a href="https://github.com/go-mgo/mgo/tree/v2"><strong>mgo</strong></a> (the MongoDB driver for GoLang) and <a href="https://github.com/parnurzeal/gorequest"><strong>gorequest</strong></a> (a handful HTTP client): I’ve to get them with glide because it will trace them using lock files, very useful when it comes to restore the project on another system.</p><pre># from inside the setup-golang container<br>$ glide create<br>$ glide get github.com/parnurzeal/gorequest<br>$ glide get gopkg.in/mgo.v2</pre><p>With <strong>glide create</strong> two new files are added to the project:</p><ol><li><strong>glide.yaml</strong>: it’s the glide manifest where all the dependencies are listed and marked with a fixed version, following the semantic versioning specs</li><li><strong>glide.lock</strong>: it’s a lock file to ensure deterministic restore procedure</li></ol><p>With <strong>glide get</strong> the dependencies are downloaded inside the new local <strong>vendor</strong> folder and added inside the glide.yaml and glide.lock files.</p><p>Now, with docker-compose is possible to restore/initialise the project on any system:</p><pre>$ docker-compose run --rm setup-golang</pre><h3>Goxfer: hands on!</h3><p>So, what does Goxfer have to do?<br>Let’s define the program procedure:</p><ol><li>connect to MongoDB</li><li>initialise Buxfer’s session</li><li>retrieve Buxfer’s accounts list</li><li>fetch transactions from the DB and build transactions’ bulks</li><li>push transactions’ bulks online via Buxfer’s APIs</li></ol><p>I‘ve to forge it step by step.</p><h4>Database</h4><p>The very first thing I need to code is the database connection.<br><strong>mgo</strong> is a MongoDB driver and it just need the database host to establish the connection, plus the database name and the name of the collection it will query for the transactions.<br>I need to define those informations inside the <strong>docker-compose.yml</strong> as environment variables for the <strong>goxfer service</strong>, already drafted in <a href="https://hackernoon.com/from-csv-to-buxfer-an-unexpected-journey-introduction-ba43ef768fe2">Part 1</a>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/87cd5767716351ed340cf7da6080dd10/href">https://medium.com/media/87cd5767716351ed340cf7da6080dd10/href</a></iframe><p>Great! Environment variables are always the best to configure things from outside, <a href="https://12factor.net/config">as Twelve Factors App teaches</a>.</p><p>Now, I’ve to use the mgo driver to connect to MongoDB.<br>But first, I’ve got to get those env vars… <strong>os.Getenv</strong> will do it for me:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5abaf7a8635783f66781ce3d215d0a2/href">https://medium.com/media/a5abaf7a8635783f66781ce3d215d0a2/href</a></iframe><p>It’s time to create the MongoDB connection and to get the transactions collection:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c4766033e2e567509dfaa5bc0f0fa0e5/href">https://medium.com/media/c4766033e2e567509dfaa5bc0f0fa0e5/href</a></iframe><p>The database connection is required by the next steps so I’ve to stop the program if this execution fails: <a href="https://golang.org/pkg/builtin/#panic"><strong>panic</strong></a> will be fine.</p><h4>Buxfer’s session</h4><p>Buxfer requires an <strong>authentication token</strong> for each request performed; so, before proceeding, I’ve to establish a new session.<br>I’ll use <a href="https://github.com/parnurzeal/gorequest">gorequest</a> that is an HTTP client with a practical and easy-to-use interface.<br>The <a href="https://www.buxfer.com/help/api#login">login API</a> requires a username and a password, so I’ve to put new environment variables inside the docker-compose.yml file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c5a9b942a001fd2f4085e9a754f35ab/href">https://medium.com/media/0c5a9b942a001fd2f4085e9a754f35ab/href</a></iframe><p>Then, I’ve to perform the HTTP request inside Goxfer:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c8d679a2ee36b256895f44631036a40a/href">https://medium.com/media/c8d679a2ee36b256895f44631036a40a/href</a></iframe><p>I’ve also defined the <strong>LoginResponse</strong> struct to store the login response, of course.<br>Then, I’ve checked for lib and http errors: if everything’s fine, then I can use the token taken from the response.</p><h4>Accounts list</h4><p>Before proceeding with the transactions, I need to get the accounts list because later I will need the id of each account.<br>So, for now, I just have to map the expense and the income accounts with their ids:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/48847a85d42944398c3c93ebbf2b0c74/href">https://medium.com/media/48847a85d42944398c3c93ebbf2b0c74/href</a></iframe><p>Also here, I’ve used gorequest to perform the HTTP GET call.<br>Buxfer’s APIs authentication is done through the session token so I’ve attached it to the querystring (<em>.Query(“token=” + token)</em>).<br>The response is then stored inside the custom struct <strong>AccountsListReponse</strong>: also this step is required by the next ones, so I’ve to panic if at least an error has occurred.<br>If everything went fine, I can check the accounts list.<br>I’ve got only two accounts, so the control can be exclusive.</p><p>Now, I need to update the docker-compose.yml file with <strong>EXPENSE_ACCOUNT_BUXFER</strong> and <strong>INCOME_ACCOUNT_BUXFER</strong> constants, so the code above won’t break:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/123e310b6ff67c6c5ae23aaf769c1448/href">https://medium.com/media/123e310b6ff67c6c5ae23aaf769c1448/href</a></iframe><p>Great!<br>Move on!</p><h4>Transactions’ bulks</h4><p>Now, what I want to do is to get all the transactions from MongoDB and then <br>to push them on Buxfer.<br>But, there’s a problem: Buxfer’s APIs are limited. In fact, it is possible to push just one transaction per time: <a href="https://www.buxfer.com/help/api#add_transaction">https://www.buxfer.com/help/api#add_transaction</a> <br>Well, I don’t want to wait for the end of each request to perform a new one, neither to perform 1000 calls in parallel.<br>So, I think I’ll go for pushing a <strong>bulk of 20 transactions</strong> per time.<br>To do that, I need two things:</p><ol><li>pack the transactions inside a matrix (<strong>array of bulks</strong> (basically, array of arrays))</li><li>(ab)use <a href="https://gobyexample.com/goroutines"><strong>GoLang’s goroutines</strong></a> to perform HTTP calls in parallel</li></ol><p>Each bulk has a fixed size, defined by the environment variable <strong>BULK_LENGTH</strong>, that I’m going to put inside the docker-compose.yml file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/48de0aeac55084687a9c78fbaa9478b4/href">https://medium.com/media/48de0aeac55084687a9c78fbaa9478b4/href</a></iframe><p>And now, let’s define the procedure to get the transactions from the database and to populate the bulks matrix:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/60e5e428e14bde8e469604103316bbb3/href">https://medium.com/media/60e5e428e14bde8e469604103316bbb3/href</a></iframe><p>At the beginning, transactions are stored inside the variable <strong>results</strong> that is an array (a <a href="https://gobyexample.com/slices">slice</a> in GoLang) of <strong>Transaction</strong> (the transaction’s model).<br>Then, I calculate the number of iterations to populate the transactions matrix, by dividing the length of the transactions’ list by BULK_LEN.<br>The second iteration is done if the amount of transactions is not a multiple of BULK_LEN.</p><h4>Pushing to Buxfer</h4><p>Ok, this is <strong>the tough part</strong>.<br>As I said, I want to push bulks of 20 transactions per time. This means I’ve to launch <strong>20 goroutines in parallel</strong> and then wait until they have finished. All of them. Then, I can start with a new bulk and so on.</p><p><a href="https://golang.org/pkg/sync/"><strong>sync</strong></a> will help me handling concurrent goroutines execution: inside this package there’s the <a href="https://golang.org/pkg/sync/#WaitGroup"><strong>WaitGroup</strong></a> that basically provides three methods:</p><ol><li><a href="https://golang.org/pkg/sync/#WaitGroup.Add">Add</a>: increment the workers counter</li><li><a href="https://golang.org/pkg/sync/#WaitGroup.Wait">Wait</a>: stop the main thread until the workers counter is equal to zero</li><li><a href="https://golang.org/pkg/sync/#WaitGroup.Done">Done</a>: decrement the workers counter</li></ol><p>So, what I’ve to do is:</p><ul><li>loop through the bulks’ matrix</li><li>then for each row (aka bulk) I’ve to increment the WaitGroup counter by adding the length of the bulk</li><li>then I need to loop through the current bulk and for each transaction instantiate a new goroutine to push the data on Buxfer</li><li>for each goroutine that has finished, I need to decrement the WaitGroup counter via the Done method</li><li>eventually, I’ve to stop until the entire bulk has finished, using the Wait method of the WaitGroup, so the loop can continue with the next row of the matrix</li></ul><p>During this procedure, I want to store how many transactions have been added and how many haven’t. Later I’ll log this information.</p><p>So, here’s the code, except for the actual request to Buxfer:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2d67d3d278ba7c0d62a5b00ababba050/href">https://medium.com/media/2d67d3d278ba7c0d62a5b00ababba050/href</a></iframe><p>Now, the last thing to code is the <strong>addTransaction</strong> function.<br>This will be a function that may return an error if something goes wrong while pushing the transaction online, following the way <a href="https://blog.golang.org/error-handling-and-go">how GoLang treats errors like errors and not like exception</a>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e102bf7b045b2fe55f2888bc886c85de/href">https://medium.com/media/e102bf7b045b2fe55f2888bc886c85de/href</a></iframe><p>Briefly: the HTTP request payload is composed by the following fields:</p><ul><li><strong>description</strong>: transaction’s description</li><li><strong>amount</strong>: transaction’s amount</li><li><strong>accountId</strong>: calculated matching the Buxfer accounts list, fetched previously</li><li><strong>tags</strong>: transaction’s tags converted into a comma-separated string</li><li><strong>date</strong>: date formatted with <strong>YYYY-MM-DD</strong> format</li><li><strong>token</strong>: session token</li><li><strong>type</strong>: transaction’s type, calculated the same way of accountId</li></ul><p>Then the request is made and the response is stored inside the new struct <strong>AddResponseBody</strong>: if no error occurred, it will return <strong>nil</strong>.</p><p>Putting everything altogether (on github because it is too long to be displayed here): <a href="https://github.com/wilk/from-csv-to-buxfer/blob/master/go/src/goxfer.go">https://github.com/wilk/from-csv-to-buxfer/blob/master/go/src/goxfer.go</a></p><h4>Run it, dude!</h4><p>The final step: launch it 🚀!</p><pre>$ docker-compose run --rm goxfer</pre><p>Yuppie 🎉</p><h3>End of part 4</h3><p>Wow, this last part was tough 😵<br>It requires a lot of work and a lot of testing. In fact, initially the API for adding transactions on Buxfer was different (<strong>and bugged</strong>) and it got changed (<strong>and fixed</strong>) at the end of October. I had to change the source code, performing new tests with <a href="https://www.getpostman.com/">PostMan</a> and <a href="https://curl.haxx.se/">curl</a> before running the program safety.</p><p>However, even if I tested everything beforehand, I got this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*j04Aeb962oBC4ncdvGsrbw.png" /></figure><p>Nothing to say.<br>I was aware of this flaw (in fact, I didn’t prepare any log to trace unpushed transactions) but I wanted to try anyway, putting all of my trust into manual testing I did earlier.<br>That required me to manually search inside thousands of logs: it was quite painful but I deserved it, so it’s ok 😬</p><p>But now, <strong>I’ve all of my transactions of 2016 online on Buxfer</strong> 🎉<br>I would like to spend more words about this part but I’ll do in the next part: <a href="https://medium.com/@wilk/from-csv-to-buxfer-an-unexpected-journey-conclusions-b1274aa9841e"><strong>Conclusions</strong></a>!</p><p>If you enjoyed this article don’t forget to share it!<br>See you in <a href="https://medium.com/@wilk/from-csv-to-buxfer-an-unexpected-journey-conclusions-b1274aa9841e">Part 5: Conclusions</a>!</p><h4>Sources</h4><p>Source code is available here: <a href="https://github.com/wilk/from-csv-to-buxfer">https://github.com/wilk/from-csv-to-buxfer</a></p><h4>Update</h4><p>I’ve improved the unpushed transactions logs and I found that one of the raw transactions was corrupted: its date was <strong>29/11/1898</strong> so that’s why Buxfer refused to accept it.<br>Anyway, Cleaner, Collector and Goxfer did the job and they did it really well!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88d8a14e8905" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/from-csv-to-buxfer-an-unexpected-journey-goxfer-88d8a14e8905">From CSV to Buxfer: an unexpected journey — Goxfer</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>
    </channel>
</rss>