<?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 Nicolas Petras on Medium]]></title>
        <description><![CDATA[Stories by Nicolas Petras on Medium]]></description>
        <link>https://medium.com/@nicolaspetras?source=rss-39c887a432ab------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MSCN0SsyY-QQZEDVe2VhEw.jpeg</url>
            <title>Stories by Nicolas Petras on Medium</title>
            <link>https://medium.com/@nicolaspetras?source=rss-39c887a432ab------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:57:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nicolaspetras/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[Are Super Apps the future?]]></title>
            <link>https://nicolaspetras.medium.com/are-super-apps-the-future-137fd900c1c2?source=rss-39c887a432ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/137fd900c1c2</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[super-apps]]></category>
            <category><![CDATA[podcasting]]></category>
            <category><![CDATA[mobile-app-design]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Nicolas Petras]]></dc:creator>
            <pubDate>Sun, 21 Jan 2024 19:03:39 GMT</pubDate>
            <atom:updated>2024-01-21T19:03:39.825Z</atom:updated>
            <content:encoded><![CDATA[<p>I have always preferred dedicated apps, but I decided to re-evaluate my opinions after Google’s latest addition to its graveyard of apps: Google Podcasts. A sleek, simple, user-friendly and functional podcasting app for Android. It became the natural default for Android users after its release in 2018, offering the same simplicity and ease of use that Apple Podcasts did on iOS. The app’s popularity and success seem to suggest Google’s decision is misguided, nevertheless, it’s the decision they chose to make. They want to focus all their effort on podcasts within YouTube Music. With the sunsetting of the app imminent I needed to look for an alternative. My initial plan was to find the next best thing, an app that provide the closest design and features. However none of the apps stood out to me, they all had some kind of flaw that put me off using them. Since the dedicated podcasting apps were not that promising, I decided to expand my search and consider audio (super) apps like YouTube Music and Spotify. Apps that both offer feature-rich podcasting but it’s not their only or main focus. I did not consider these apps initially because my experience with super apps like them has always been negative. The usability is always worse than a dedicated app, and the convenience they provide has never outweighed the negatives for me. Despite this past experience, I was willing to give it another go and landed on Spotify. I already used it for music and the occasional exclusive podcast or audiobook, so it seemed like the natural choice. The app also has a great interface, my favourite of all the choices I had explored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5iL8H0nz-ojogS31C39L_g.jpeg" /><figcaption>The most popular podcasting applications</figcaption></figure><p>The clutter of mixing both music and podcasts and reduced usability were still annoying me, but I was enjoying the convenience the app offered, and embracing super app life. I assumed my annoyances would fade into the background as I got more used to using the app daily, but the opposite happened. I got more and more frustrated with the experience and found that listening to both music and podcasts had become more frustrating. So I was back to looking for a dedicated app, and I found one that satisfied my needs AntennaPod. It does well to recreate the simple and user-friendly interface that Google Podcasts provides.</p><p>That brings me to the wider landscape of super apps used in the West. I have called Spotify and YouTube Music super apps, but both of them are still only restricted to one medium: audio. Many people would not even consider them to be super apps. They are still far from the likes of WeChat, AliPay, Grab or Rappi. The closest thing we have to those apps in the West are apps like Uber and Revolut. Both these apps have expanded their offerings to include a large variety of features from many different dedicated apps in one place. Uber is aiming to be the go-to app for any travel, transportation or delivery needs. The app has expanded beyond ride-sharing, to food delivery, flights, trains, busses, scooters, and car rental. Revolut provides a variety of financial and related services like bank accounts, budgeting, international payments, insurance and more.</p><p>Even if I am not on board super app train, many other users are embracing them, and with further usability improvements, they might even convince me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=137fd900c1c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An brief overview of C Strings: how they work, how to use them, and their benefits.]]></title>
            <link>https://nicolaspetras.medium.com/an-brief-overview-of-c-strings-how-they-work-how-to-use-them-and-their-benefits-d153efc22ece?source=rss-39c887a432ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/d153efc22ece</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[c-programming]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Nicolas Petras]]></dc:creator>
            <pubDate>Sun, 25 Oct 2020 19:36:34 GMT</pubDate>
            <atom:updated>2020-10-31T11:46:36.828Z</atom:updated>
            <content:encoded><![CDATA[<h3>How do C Strings Work?</h3><p><strong>Re-post, with edits, originally posted on nicolaspetras.wordpress.com August 18th, 2018</strong></p><h3>Introduction</h3><p>C does not have a <strong>string data type</strong> like other languages including C++, Java and Python. The reason for this is the low-level nature of the C language. Since strings are just a sequence of characters that is how C stores them as an array (sequence) of type <em>char</em>.</p><h3>How do they work?</h3><p>C-strings work by storing each character as an individual element of an array and the end of a string is signified by a <strong>null zero character</strong>, which terminates the string. This null zero is a special type of character and is also known as an <strong>ASCII zero</strong> because it has an ASCII code of 0. It is not the same as a regular numeric zero.</p><h3>Creating C-strings</h3><p>To create a C-string you simply enclose a sequence/set of characters inside double quotes (quotation marks), when you do this the null zero is automatically added to the end of the string. For example:</p><pre>&quot;Hello&quot;;</pre><p>Will become, in memory:</p><pre>&#39;H&#39;, &#39;e&#39;, &#39;l&#39;, &#39;l&#39;, &#39;o&#39;, &#39;\0&#39;</pre><p>The string will be stored as a character (char) array inside memory, with each individual character stored separately as a byte of memory (the commas represent the separation of each byte), but in a sequence with no other data in-between. The end of the string is signified by the <strong>null zero</strong>, which is represented as ‘\0’ in C.</p><h3>Storing a String in a Variable</h3><p>To store a string in a variable, simply declare a char array with an accompanying variable name that equals a sequence of characters once again enclosed in double quotes, like so:</p><pre>char [6] str1 = &quot;Hello&quot;;</pre><p>Above I have created a char array called ‘str1’ with a size of 6 with the string “Hello” contained inside of it. The size of the array is 6 because “Hello” is made up of 5 characters and we also <strong>need include an extra character byte for the null zero</strong>. The length of the string is still considered to be 5, by the <em>strlen() </em>function, because the null zero is not counted since it is just signifying the end of the string. But it still needs to be stored as part of the string and we need to explicitly reserve this extra space when declaring a set size of a char array, C will not do it for us.</p><p>In the above declaration, I specify the size of the string (char array), but this is not required if I were to exclude that ‘6’ from the code, it would still operate the same. The char array ‘str1’ would automatically be set to a size of 6, by the C compiler.</p><pre>char [6] str1 = &quot;Hello&quot;;<br>char [] str1 = &quot;Hello&quot;;</pre><p>Both of the two declarations above provide the same result. Declaring the size of the array explicitly, matters more when the contents of the array may change, and increase in size. In this case, you might want to create a large array — larger than the initial string being stored in the array. For example, if you plan on storing “Hello World” inside the same string in the future. The size of ‘str1’ should be set to at least the size of any strings that the variable will hold, in this case at least 12 (11 characters for Hello World, and 1 for the null zero):</p><pre>char [12] str1 = &quot;Hello&quot;;</pre><p>If an array includes fewer elements than its size, it will still work without any problems. The space that is not used up by <strong>str1</strong>, when a string smaller than its size is stored in the array will still be allocated as the memory for the array but may contain some random content that was there previously or be filled with zeros, by certain compilers. But if you try to store a string larger than the array size then the this could cause memory corruption. The compiler will not report an error, instead it will overwrite whatever is in memory past the char array’s bound. So make sure to always create a char array big enough to store any strings that will be stored inside it.</p><h3>Assigning Values to Strings</h3><p>A typical assignment like we have done above with an equals sign is not permitted outside of <strong>initialisation</strong> (when the string is created). To assign a value to the string after initialisation, the ‘new’ string needs to be added character by character or with the use of the <strong>strcpy()</strong> function.<br>This would not be allowed:</p><pre>str1 = &quot;Hello World&quot;;</pre><p>Whereas this:</p><pre>str1[0] = &#39;H&#39;;<br>str1[1] = &#39;e&#39;;<br>str1[2] = &#39;l&#39;;<br>str[3] = &#39;l&#39;;<br>str[4]= &#39;o&#39;;<br>str[5] = &#39; &#39;;<br>str[6] = &#39;W&#39;<br>str[7] = &#39;o&#39;<br>str[8] = &#39;r&#39;<br>str1[9] = &#39;l&#39;;<br>str1[10] = &#39;d&#39;;<br>str1[11] = &#39;/0&#39;;</pre><p>Note: when manually replacing every character in the string, you have to make sure to add the null terminator or C will not know where the string ends.</p><p>This would also be allowed, and is a lot more convenient than replacing every index of the char array:</p><pre>strcpy(str1, &quot;Hello World&quot;);</pre><p>Since strings are stored as arrays in C, which do not allow direct access to the whole array after initialisation, each element needs to be accessed separately. Both of the methods above do that, in the first method you manually access each element. While strcpy() simply does that for you by placing each character in “Hello World” at the appropriate position in str1, using a loop. Making sure to add the null terminator at the end to signify the end of the string.</p><h3>C-strings vs String Objects</h3><p>C-strings use up less memory and are not dynamically allocated like string objects, meaning the space they taken up is known at runtime. This space can be set by the programmer, meaning there is finer control over memory management. Even though C-strings offer these benefits they are a lot less intuitive and harder to use than string objects, which can lead to a lot more bugs in the code. String objects also provide more flexibility (they don’t have a fixed size) and the length of the string can be obtained in less time, because the length of a String object is stored in a variable, whereas in C the whole string (up until the null terminator) needs to be iterated over to get its length.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d153efc22ece" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why we should all be using Test-Driven Development]]></title>
            <link>https://nicolaspetras.medium.com/why-we-should-all-be-using-test-driven-development-26215974b7a5?source=rss-39c887a432ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/26215974b7a5</guid>
            <category><![CDATA[test-driven-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[tdd]]></category>
            <dc:creator><![CDATA[Nicolas Petras]]></dc:creator>
            <pubDate>Fri, 27 Mar 2020 16:36:35 GMT</pubDate>
            <atom:updated>2020-03-27T16:41:09.336Z</atom:updated>
            <content:encoded><![CDATA[<p>For me, the main two reasons for employing the Test-Driven Development (TDD) process in a development workflow are better design and increased confidence.</p><p>The small steps you take during the process of first writing a test, making it pass, and refactoring leads to an iterative approach, in which you are a lot more thoughtful about the design you are constructing. That coupled with the idea of TDD that you should make the test pass as quickly as possible, even if the implementation is dirty, leads to minimal code being written leading to simple effective solutions — where no line of code can be changed or deleted without the tests failing and in turn the functionality of the program changing.</p><p>In terms of confidence, TDD increases it in three ways: tests are the developer’s first thought and focus before implementation, leading to tests actually existing for the code; required functionality is defined in the test(s) making sure the implementation is in scope, and tests produced using TDD are higher quality and better thought out.<br> <br>Since the developers first focus is to create a test for the functionality he/she is about to implement, tests actually get written. Even though I and others would not like to think so, the stark reality in the software industry is that tests are usually an afterthought and far too frequently do not even get written. This is something I was surprised by when I experienced it in my short time being an intern, but have now realised it seems to widespread throughout the industry. Employing TDD, eliminates this issue, by the simple process of asking the developer to write the tests first before writing any implementation code. These tests then provide confidence in the program’s functionality.</p><p>TDD allows and encourages the developer to first define the functionality and interface needed before writing any implementation code, which puts a focus on the requirements received from the user. This leads to the implementation code that is more tailored to the requirements and a better interface. This test first approach also often leads to much better tests, because they are the developer’s focus, instead of being an after-thought — developers are likely to think through the test, the required interface and functionality much more, than if they were working in the traditional ‘code first, test second’ approach.</p><p>To conclude, I think TDD has the great benefits of resulting in better code that developers can have more confidence in when compared to the traditional software engineering approach of ‘code first, test second’, and the approach has no real drawbacks in my mind. Even if it takes more time to write the implementation and test code with the TDD approach. The existence of high-quality tests and implementation code will save the team a lot of time in future related to debugging, incidents, bug fixing, refactoring and more. So I would encourage all developers to at least try out the approach.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26215974b7a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who’s Life Should Be Prioritised? The Majority, Passenger, or Pedestrian?]]></title>
            <link>https://nicolaspetras.medium.com/whos-life-should-be-prioritised-the-majority-passenger-or-pedestrian-c73b2064c250?source=rss-39c887a432ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/c73b2064c250</guid>
            <category><![CDATA[self-driving-cars]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[morality]]></category>
            <category><![CDATA[moral-responsibility]]></category>
            <category><![CDATA[autonomous-cars]]></category>
            <dc:creator><![CDATA[Nicolas Petras]]></dc:creator>
            <pubDate>Thu, 26 Apr 2018 07:41:01 GMT</pubDate>
            <atom:updated>2019-02-02T15:31:54.324Z</atom:updated>
            <content:encoded><![CDATA[<p>Should the AI in driverless cars prioritise their passengers over pedestrians, and to what point should either group be protected?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rVi4CVnYUN11EVPnUx9fow.jpeg" /></figure><p>The question of who should be live in an ultimatum situation, like the one posed by ‘<a href="https://en.wikipedia.org/wiki/Trolley_problem">The Trolley Problem</a>’ is hot on philosophers, lawmakers, and car manufacturers minds. Should the passenger be protected over the pedestrian, or should the pedestrian be protected, over the passengers? And to what extent should each group be protected: are two lives of passengers more important than the lives of one pedestrian? All of these questions and others will need to be answered before driverless cars come to market. Within the philosopher community, there are several diverging views on these questions.</p><h4>Option 1: Reduce Human Casualties (Utilitarianism)</h4><p>The first option is a theory proposed by John Stuart Mill (1863) called <a href="https://www.utilitarianism.com/mill1.htm">Utilitarianism</a>, which says that the most pleasure for the most amount of people is essential. And would thus lead us to try to reduce the causalities, saving the most people possible — resulting in the most happiness for the most people. So, in the case of the trolley problem, which asks if there is a train car rolling down the tracks at five people, should we let this course of action take place. Or actively the amount of hard that will take place, and flip the switch onto the other track, where only one pedestrian is present. This leads to less death, but also means you are proactively killing that person, instead of letting things take their course. Utilitarianism encourages actively causing harm to fewer people rather than doing nothing.</p><p>An issue with this theory is that it does not consider who is morally responsible. If the five pedestrians are responsible for causing the crash for the one passenger, should the passenger still be punished for their misdeeds?</p><h4>Option 2a: Pedestrians over Passengers</h4><p>Helen Frowe, a professor of practical philosophy at Stockholm University, argues that driverless cars should in nearly all cases protect ‘innocent’ bystanders, because according to her those in the car have more responsibility for any danger that takes place. “We have a pretty stringent obligation not to kill people”, <a href="https://qz.com/536738/should-driverless-cars-kill-their-own-passengers-to-save-a-pedestrian/">she told Quartz</a>. “If you decide to get into a self-driving car, then that is imposing the risk.”</p><p>Since Frowe is considering responsibility, she thinks if the passengers are adults, they should all die to save even one pedestrian, unless there is “more than ten, maybe a busload — too make it moral to kill one”. Frowe believes children are not morally responsible, but she still would not consider it to be morally permissible to kill one pedestrian to save the lives of two child passenger. But seems to be more likely to value a child’s life over the life of an adult passenger. This position of prioritising pedestrians over passengers is supported by the wider public, according to a <a href="https://arxiv.org/pdf/1510.03346v1.pdf">study published to the scientific research site Arxiv</a>. With 75% people thinking the car should always swerve and kill the passenger, even to save just one pedestrian, but this study also provides evidence to the contrary. The participants also stated they would be a less likely to buy a car that would self-sacrifice their lives in order to save pedestrians. Participants were also split amongst what type of autonomous vehicle (AV) they would buy: AVs that would self-sacrifice, AVs that would not, and AVs that would randomly pick a course of action.</p><p>Frowe’s argument is also ‘crude’ in the similar sense to utilitarianism, it puts all moral responsibility on the passengers of a car they are not controlling. Implying they have a moral responsibility, just because they got in the car. Does a passenger on a bus today, have more moral responsibility than a pedestrian on the street? And if they don’t, I don’t think this is the right approach, it puts an overwhelming amount of moral responsibility on the passengers of a vehicle they are not controlling.</p><h4>Option 2b: Passengers over Pedestrians</h4><p>That takes us to option 2b, which would prioritise the passenger’s safety over the safety of a pedestrian. This is a more logical option since driverless technology should reduce vehicle accidents by a significant margin. With AI being much less susceptible to making mistakes that would lead to such an accident, and since autonomous cars of the foreseeable future, won’t be able to judge the intent of a pedestrian or another driver. They should protect the lives of the passengers in the case of a malicious or non-malicious human pedestrian or driver causing an accident, and thus that individual being morally responsible for the crash, not the passenger. Another reason, why this option is more plausible is if manufacturers don’t want to put off consumers from buying cars that might kill them, instead of protecting them in the case of a crash. <a href="http://fortune.com/2016/10/15/mercedes-self-driving-car-ethics/">Mercedes seems to agree</a>, stating that their cars will prioritise the lives of the passengers/drivers. Von Hugo (Mercedes-Benz executive member), also puts forward another argument for AVs prioritising the lives of the passengers. He argues that crash situations, which he says are very chaotic, and thus AI should prioritise the lives it has the most direct control over. “You could sacrifice the car. You could, but then the people you’ve saved initially, you don’t know what happens to them after that,” <a href="https://www.caranddriver.com/news/self-driving-mercedes-will-prioritize-occupant-safety-over-pedestrians">he told Car and Driver</a>, “So you save the ones you know you can save.” Even though Mercedes has since retracted this statement, likely due to the regulations introduced in Germany, preventing manufacturers from discriminating against any one group or individual. I still think his point is a compelling one.</p><h4>Conclusion</h4><p>With all of this considered pedestrian lives should not be neglected in favour of protecting the passengers at all costs. AVs should try and ensure that both parties: pedestrians and passengers succumb to the least harm possible. If the passenger is likely to be injured, but not killed, and a pedestrian can be saved, then that’s obviously a better option and killing the pedestrian, and the passenger not suffering any harm. But in a scenario, where the AV needs to make the decision whether to prioritise the life of its passenger or a pedestrian. I believe they should prioritise the passenger, ensuring their safety for three main reasons. The first being the AI has control of what happens to the passengers, whereas its control of what happens to the pedestrian is limited. A second reason is when you are buying a car, you are buying it for your self-interest, and would likely want it to prioritise your self-interest, over the likes of others. And lastly, if human drivers or pedestrians who are more likely to cause a crash, than the AI. The life of the passenger(s) should not be sacrificed to save the life of the person (who is more likely to be) responsible for the accident. Especially if that individual was malicious in their intent.</p><p>Tell me what you think in the comments below. And what about <a href="https://www.newscientist.com/article/2150330-driverless-cars-could-let-you-choose-who-survives-in-a-crash/">giving the power to the passengers</a>. Depending on the passenger’s preference they could choose whose life should be prioritised: their’s, the pedestrians, or they can also take a neutral approach. While this is not as likely as AVs being programmed a set way. It would give the power to consumer to make their own choice, about the morality of their vehicle.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c73b2064c250" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Look at the Blockchain Digital Platform]]></title>
            <link>https://nicolaspetras.medium.com/a-look-at-the-blockchain-digital-platform-aa0d7378d56?source=rss-39c887a432ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa0d7378d56</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[internet-of-value]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Nicolas Petras]]></dc:creator>
            <pubDate>Tue, 27 Mar 2018 18:02:55 GMT</pubDate>
            <atom:updated>2018-03-30T19:54:55.510Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_3lUOHDQoSjpoRemZsJHw.jpeg" /><figcaption>Source: <a href="https://commons.wikimedia.org/wiki/File:Blockchain_Illustration.jpg">Wikimedia Commons</a>, Author: Davidstankiewicz</figcaption></figure><h3>Introduction</h3><p>The <strong>blockchain</strong> is a popular term that is currently floating around the internet, mainly because of the massive rise in the value of the cryptocurrency <a href="https://bitcoin.org/en/"><em>bitcoin</em></a>, which was followed by a relatively swift decline in value. This media coverage has prompted lots of discussions about digital currencies, and the other applications of the technology used by bitcoin beyond finance. I’m going to delve into and explain this technology, how it works.</p><p>I will cover: what is the blockchain; the origins and history of the blockchain; briefly examine blockchain’s intricate security system and take a quick look at the current development of applications built on the blockchain.</p><h3>What is the Blockchain?</h3><h4>A Definition of Blockchain</h4><p>The <strong>blockchain</strong> is a <em>digital platform </em>that supports a (<em>distributed) ledger</em>, it also represents and allows for the ‘internet of value’ in many retrospects. Its initial purpose was to solve the double-spending problem, creating the first viable crypto-currency, functioning without any centralised authority.</p><h4>Deconstructing the Definition</h4><p>The <strong>blockchain,</strong> which is a <strong>distributed ledger</strong> meaning a collection of agreed on digital data (database) that is replicated, shared and synchronised across multiple locations or sites. Creating a peer-to-peer system to maintain the digital data, instead of a centralised system. That is very common in today’s world, most of our digital information is all held in centralised organisations in centralised servers in centralised databases. Blockchain applications hope to decentralise data storage, improving security, and create systems that previously relied on government and other centralised authorities, independent of these entities. Such as currency, which previously wholely depended on government, but with the rise of blockchain came the rise of cryptocurrencies like <a href="https://bitcoin.org/en/"><em>bitcoin</em></a> and <a href="https://www.ethereum.org/ether"><em>ether</em></a><em> (ethereum).</em></p><p>The ‘<strong>internet of value’</strong> represents the exchange of assets over the internet. The act of sending an actual asset over the internet instead of a copy of that asset, akin to what currently occurs with information. Over the current internet (‘<strong>internet of information’</strong>), which includes the World Wide Web (WWW), its slew of websites (e.g. Google, Wikipedia, Facebook), and other internet-based applications like email. When a user sends a file to another user in this ‘internet of information’. The receiving user will receive a <em>copy</em> of that file, while the internet of value allows users to send the<em> actual file</em>, allowing monetary and assets transfer to take place.</p><p>One of the factors that held back the establishment of an ‘internet of value’ was the <strong>double spending problem</strong>. The double spending problem meant that users could spend the same money, or transfer the same assets two or more times, by duplicating or falsify digital files. This problem was solved by the <em>blockchain </em>technology, by making it very difficult to practically impossible to commit fraud on the system.</p><h4>The Intricacies of the Blockchain</h4><p>The ledger itself consists of lists of information known as ‘<em>blocks</em>’, each block is secured and linked to a ‘<em>chain</em>’, using <a href="https://en.wikipedia.org/wiki/Cryptography"><strong>cryptography</strong></a>, specifically cryptographic <em>hashes</em>, which is where the name ‘blockchain’ originates. Each of the blocks typically contains a <em>hash pointer</em> to the next block, time stamp, and the actual data e.g. transaction data. Creating a <em>ledger</em> that is part of a <em>distributed</em> peer-to-peer system, mentioned above. This is the basic premise of the blockchain, which can be modified to include certain rules(i.e. <a href="https://en.wikipedia.org/wiki/Smart_contract">smart contracts</a>, <a href="https://en.wikipedia.org/wiki/Digital_signature">digital signatures </a>and other tools). These are showcased in various blockchain applications, most applications either create their own blockchain or build on top of an existing blockchain platform like <a href="https://www.ethereum.org/">Ethereum</a>.</p><h3>The Origins &amp; History of Blockchain</h3><p>The blockchain was conceived by an online individual going by the alias <strong>Satoshi Nakamoto</strong> in an online paper. This paper detailed the cryptocurrency bitcoin, and it’s underlying blockchain technology, which solved the double spending problem that plagued the establishment of a decentralised digital currency for years.</p><h4>Satoshi Nakamoto</h4><p>The identity of Satoshi has never been revealed to be public, and we have no details about Satoshi. The elusive billionaire(s), said to be worth at least $13 billion, and even as much as $20 billion at the time bitcoin was valued close to $20,000 per bitcoin (making him the 44th richest individual in the world). This valuation is based on the 980,000 bitcoins, he, she or they are said to own, and doesn’t consider any other assets Satoshi might own.</p><p>This worth and Satoshi’s accomplishments have prompted lots of speculation and theories about Satoshi’s true identity. It has been speculated that he is of British Commonwealth origin, because of his occasional use of British English, relating to spelling and terminology. Further speculations by Stefan Thompson (a Swiss coder), who analysed time-stamps of the various posts made by Satoshi, and timestamps on the bitcoin.org website. Made him believe that Satoshi was residing in the UTC-5 or UTC-6 time zones, which cover parts of North, South and Central America.</p><p>The most convincing evidence points to Satoshi, being Nick Szabo, a computer scientist, legal scholar and cryptographer, known for his research in the world of digital currencies. He designed a concept for a decentralised cryptocurrency called ‘bit gold’, which was never developed, but is seen as a direct predecessor to bitcoin. This evidence is still all circumstantial, and there is no solid proof that Nick is Satoshi. Other suggestions and evidence point to several other individuals, including a Japanese man claiming to be Satoshi, and even <a href="https://hackernoon.com/elon-musk-probably-invented-bitcoin-9d6c7b7f9c3b">Elon Musk</a>, but no concrete evidence has been provided. <a href="https://medium.com/cryptomuse/how-the-nsa-caught-satoshi-nakamoto-868affcef595">Another Medium article</a> has even hinted at the NSA revealing Satoshi’s identity using stylometry but didn’t provide any concrete proof either.</p><h3>Blockchain’s Intricate Security System</h3><p>There is a multitude of blockchains that exist, which vary in different ways, and there is a broad scope of applications using the blockchain. I will be looking at the general fundamentals behind blockchain. I will look at some specifics from the bitcoin blockchain, which are a good indicator of the security capabilities, but other blockchains might be using different types of security measures/algorithms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESv0700dkgU1x9mqy9xfPw.png" /><figcaption>Market Cap trend for all cryptocurrencies in the last 6 months. Source: <a href="https://coinmarketcap.com/charts/">CoinMarketCap</a></figcaption></figure><p>The blockchain’s security is based on cryptography, particularly cryptographic hashes, which are one-way irreversible functions. Meaning there is no easy way use the output (hash) to get the input (digital data), that was encrypted. These hash functions are used to sign transactions, link the different blocks, and to prove which blockchains (ledgers) are legitimate.</p><p>In the case of bitcoin — the ledger holds a list of transactions that have been made on the network, and it also includes a list of account numbers, that are public, allowing anyone to see them. To prevent fraud/identity theft, by malicious users trying abuse this public information, and send money to themselves from accounts that they don’t own. Each transaction is signed with a key, which is mathematically linked to the account number. This key is used to encrypt transactions, using a hash function, and is then verified by another function. The verification process involves maintainers on the network solving mathematical problems to prove the legitimacy of the transaction, when they prove its legitimacy they add the transaction onto their version of the blockchain ledger, which is then checked against other ledgers on the network, by other maintainers.</p><p><strong>Maintainers </strong>are private individuals, companies or even governments, who maintain the network, and verify transactions. Using any type of computing device.</p><p>Since there might be several versions of the ledger, a vote will take place to determine the legitimate version of the ledger. This voting system involves solving a mathematical hash, which requires brute force (guessing) to solve. The maintainers are given the output of a hash function, and they have to solve it – find out the inputs that were used to create the hash. This can only be done by inserting random inputs into the function. The actual votes are solutions to the specified hash, the more solutions there are, the higher the position in the ‘leaderboard’. The only way to speed up the solving process is to use more computing power. Making it difficult for any fraudster to legitimise their version of the ledger since they would have to out ‘compute’ the majority of the network. A very unlikely event, with the bitcoin blockchain, being one of the biggest computer networks in existence – larger than the whole of Google’s computer network.</p><h3>Current Blockchain Applications</h3><p>There are a variety of established and promising developing applications that cover a variety of different industries including finance, real estate, identity, music, gaming, and dating.</p><p>The cryptocurrency market is still expanding, with new additions such as Bunny Token, but is still highly volatile, with very big fluctuations in the market. On a day by day, week by week basis. Within a span of six months (September 2017 — March 2018) bitcoin, has risen in price from $4,000 to $19,000 per bitcoin (in three months), and then fell back down again to $8,000 per bitcoin (in the following three months). This and several other problems are stopping cryptocurrency from being successful on a worldwide scale. A similar, but less drastic trend occurred with Ether (Ethereum’s cryptocurrency)— the second largest cryptocurrency, behind bitcoin.</p><p>Apart from finance, there are several industries that provide very exciting potential but get less media coverage. One of these is applications that use the blockchain to register birth certificates, titles (deeds), and other unique personal information relevant to an individual. Could be held in the blockchain, independent of central authority, boasting security benefits, reducing the risk of fraud, and allowing users to showcase and store this data digitally. Other industries that could benefit include the music industry — freeing artists from publishing labels, thus increasing their revenue and profits. The housing industry — an Airbnb like blockchain application, could bring down costs, with no central authority needed to enforce contracts. Instead the blockchain itself would enforce these contracts through the use of smart contracts.</p><h3>Additional Resources</h3><h4>Websites</h4><ul><li><a href="https://en.wikipedia.org/wiki/Blockchain">Blockchain - Wikipedia</a></li><li><a href="https://www.blockchain.com/about/index.html">About &gt; Blockchain</a></li></ul><h4>Videos</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPl8OlkkwRpc%3Fstart%3D67%26feature%3Doembed%26start%3D67&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPl8OlkkwRpc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPl8OlkkwRpc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/18cbf0f1b63f6ac4fe2bb93e4fa40c9f/href">https://medium.com/media/18cbf0f1b63f6ac4fe2bb93e4fa40c9f/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Ft5JGQXCTe3c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dt5JGQXCTe3c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Ft5JGQXCTe3c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/032f77ae9492d280754ab9d7c7feeebd/href">https://medium.com/media/032f77ae9492d280754ab9d7c7feeebd/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fl9jOJk30eQs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dl9jOJk30eQs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fl9jOJk30eQs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/14e45d96eb00ad4ceab74994eb7570d9/href">https://medium.com/media/14e45d96eb00ad4ceab74994eb7570d9/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWfULutvxvzY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWfULutvxvzY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWfULutvxvzY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8eda475ed9e36e7929c7e36ebf466575/href">https://medium.com/media/8eda475ed9e36e7929c7e36ebf466575/href</a></iframe><h4>Books</h4><p>Understanding Blockchain: Explore the Full-Circle Effect Blockchain Technology Has on the World and Our Future Generations (Books on Bitcoin, Cryptocurrency, Internet Money, Invest Ethereum, FinTech); Published: October 6, 2017; Author: Richard Daniel</p><p>The Business Blockchain: Promise, Practice, and Application of the Next Internet Technology; Published: May 9, 2016; Authors: <a href="https://www.amazon.com/William-Mougayar/e/B01E7YJ3FM/ref=dp_byline_cont_book_1">William Mougayar</a> (Author),‎ Vitalik Buterin (Foreword)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa0d7378d56" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>