<?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 Lisandro Iraguen on Medium]]></title>
        <description><![CDATA[Stories by Lisandro Iraguen on Medium]]></description>
        <link>https://medium.com/@lisandroiraguen?source=rss-194743281fa8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*TOZaf0tekXDzJrho.jpg</url>
            <title>Stories by Lisandro Iraguen on Medium</title>
            <link>https://medium.com/@lisandroiraguen?source=rss-194743281fa8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:46:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lisandroiraguen/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[Functional Programming and Blockchain]]></title>
            <link>https://lisandroiraguen.medium.com/functional-programming-and-blockchain-e0e3370af811?source=rss-194743281fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0e3370af811</guid>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Lisandro Iraguen]]></dc:creator>
            <pubDate>Sat, 09 Jan 2021 12:57:51 GMT</pubDate>
            <atom:updated>2021-01-09T12:57:51.313Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>some initial words</strong></blockquote><p>As a software developer when I started to enter the blockchain world I notice something strange, the world was divided into two, from one side it was the Functional Programming Paradigm, and from the other side the Object-Oriented paradigm so the purpose of this article is to explain with common words why functional programming is useful in the new blockchain technology, it is not a technical document, but you need to know something about programming.</p><blockquote><strong>a bit of story</strong></blockquote><p>The world of programming is driven by the Object-Oriented Paradigm (POO) because it is easy to use, and maintain, so the natural way is to use it on the blockchain as the main programming language, that is because most of the programmers know POO then when they start to work, they think that this paradigm is the ultimate paradigm for all, and it was for a long time, then the blockchain technology appears on the stage and programmers keep working on the POO paradigm, and then the problems started.</p><p>As a web developer when you have a problem in the code, you only need to redeploy your or release a patch code then the problem will be fixed, that is the way to work in software development.</p><p>but in blockchain this is not possible, you can not redeploy your code easily, imagine a distributed system with your code replicated in a lot of nodes, it is not easy to fix a bug as in the normal software deployment, so, in this part is when <strong>functional programming</strong> paradigm becomes popular.</p><blockquote><strong>why use functional programing</strong></blockquote><p>Functional programming has two main things, it is not executed step by step as a normal program such as C or C++, so it fits better in distributed systems because it doesn&#39;t need to sync the running process, and second, it is hard to introduce a logic bug inside, at this point you should understand that programmers are humans, and humans made mistakes, so we must reduce it as much as possible in blockchain technology because a mistake is a lot harmful than in another system, you can lose millions of dollars if you made a mistake in the blockchain technology. There are a lot of real-world samples there that you can check.</p><blockquote><strong>Conclusion</strong></blockquote><p>Functional programming is not new, but it is very unpopular yet but is gaining momentum in the blockchain world because is nature, this paradigm fits better in this ecosystem than POO, so if you are interested in the crypto world, you should start to learn it</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0e3370af811" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vue + Cordoba in Android]]></title>
            <link>https://lisandroiraguen.medium.com/vue-cordoba-in-android-14e8d90fab81?source=rss-194743281fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/14e8d90fab81</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[pwa]]></category>
            <category><![CDATA[vue]]></category>
            <dc:creator><![CDATA[Lisandro Iraguen]]></dc:creator>
            <pubDate>Fri, 28 Feb 2020 00:07:01 GMT</pubDate>
            <atom:updated>2020-02-28T00:07:01.372Z</atom:updated>
            <content:encoded><![CDATA[<p>Using Cordoba to make a mobile android app</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UqM1eCGgi5rPtDFe.jpg" /></figure><p>today it’s really easy to build an APK running in your phone as a web embed application. First of all, you must follow the next steps one by one whiteout miss anyone.</p><p>1- Create your Cordoba application, I will use visual studio code, but you can do it using your favorite shell.</p><p>I have created an empty folder called MediumSample</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*dQiCg_nGKUL_TA_hxBZltg.png" /></figure><p>and I opened Visual Studio Code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-RPC6aQSMxQZeXrKiahvxA.png" /></figure><p>Then open your terminal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pyPb9Y-IwxB8MMu_HtPUrA.png" /></figure><p>then type</p><blockquote>cordova create Medium</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*wm_pCeh40jCljuVXWmkB7Q.png" /></figure><p>then you get this files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*yQMiPlURrKm0HuzAMnPnrw.png" /></figure><p>the full codova project is set.</p><p>now you must create a vue project in the same folder</p><p>vue init webpack Medium</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*a7we5lA80TpFxfnrML3A9w.png" /></figure><p>Choose Y (Yes)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fUEr_2U1wqgFJfqgOOI_yA.png" /></figure><p>and wait until all where installed.</p><p>the project should be like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dMa8YClIZoG0BJn2RPLuIQ.png" /></figure><p>you can check if all is going wheel doing</p><p>cd Medium</p><p>npm run dev</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bgXT5iGHg2rpM4YTM4aoTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*42O1oeQjgG7-kj2WmPADoQ.png" /></figure><p>all looks good at the moment.</p><p>now the secret is to remove the www folder and re-build it with cordova.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*P90ktvL9339s2oKQze6vhQ.png" /></figure><p>now we must change the config/index.js</p><p>with</p><p>/www</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7VJqwBz4UsgbLMM0Ly0ckQ.png" /></figure><p>the final indes.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AeKlQhls1JWQpA8E1Ra74w.png" /></figure><p>and change also /config.xml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nqpLllGcoDhRaBX6Cyw34Q.png" /></figure><p>for <strong>www/dist/index.html</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EpQcHfNsCp-1sr6grpLSwg.png" /></figure><p>then build it</p><p>npm run build</p><p>the final folder should be like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iuux2isbcK6zZv-eMUNlWw.png" /></figure><p><strong>and finally</strong></p><blockquote>cordova platform add android</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B5xme8whxbZv_H_tXEHucw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5tEvYkw5WVE-gPr5XyAJjA.png" /></figure><p>and the last step is</p><p>cordova run android</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hKUfsoJTz7zEpBLETucU5g.png" /></figure><p>That is all you need, remember to put your phone in developer mode :D</p><p>Cheers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14e8d90fab81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Containers with .NET Core, Worth it?]]></title>
            <link>https://lisandroiraguen.medium.com/docker-containers-with-net-core-worth-it-f8d991141d2b?source=rss-194743281fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8d991141d2b</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[net-core]]></category>
            <dc:creator><![CDATA[Lisandro Iraguen]]></dc:creator>
            <pubDate>Sat, 03 Aug 2019 12:24:22 GMT</pubDate>
            <atom:updated>2019-08-03T12:24:22.601Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker Containers with .NET Core, Worth it?</h3><h4>.net core and docker</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*mXv-tsAIx86hmXPkaueatA.png" /></figure><h4>What is .Net Core?</h4><p>.NET Core is a cross platform, open source re-implementation of the .NET Framework. It is actively maintained by Microsoft and a huge community of developers over on GitHub.</p><p>and the main difference between the traditional .net framework is</p><ul><li>cross platform</li><li>open source</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*Zbjp_obPdkJj3M4L.png" /></figure><p>read more from <a href="https://docs.microsoft.com/en-us/aspnet/core/?view=aspnetcore-2.2">here</a> if you want</p><p>also you will need .net core, download it from here and fallow the install instructions</p><p><a href="https://dotnet.microsoft.com/download">Download .NET (Linux, macOS, and Windows)</a></p><p>you will need visual studio 2019 free community edition also</p><p><a href="https://visualstudio.microsoft.com/vs/?rr=https%3A%2F%2Fwww.google.com%2F">Visual Studio 2019 | Download for free</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/207/1*hdwR7th02-L-GrgzP2m6yA.png" /><figcaption>remember to set on when you install it 😃</figcaption></figure><h4>And, what is Docker?</h4><p>A Package Software into Standardized Environment for Development, Shipment and Deployment.</p><p>You must know that the you can deploy a protect in a controlled environment and share it throughout different places and ensure that it works uniformly in all places, for example, you can deploy your code in .net core with docker in a Linux container but running in a windows machine with visual studio!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lRayMjMLmNmZvpRDadSBOw.png" /></figure><blockquote>The containers virtualize the operating system, not the hardware, or the functionality of a physical computer. Then are, more portable and more efficient.</blockquote><p>and of course the docker engine, download from the link below and fallow the install instructions</p><p><a href="https://www.docker.com/">Docker: Accelerated Container Application Development</a></p><p>once you have all installed, you can start to containerize your code</p><h4>Hello World!</h4><p>run the fallowing code in your windows power shell or Linux bash, remember that .net core it’s cross platform, so it can run in both.</p><p>for practical use we will use windows, then open your power shell and run</p><pre>dotnet new console -o HelloWorld -n HelloWorld</pre><p>now a folder with the next structure will appear</p><pre>HelloWorld<br> -obj<br> -HelloWorld.csproj<br> -Program.cs</pre><p>now let’s run the simple program doing this</p><pre>dotnet run</pre><p>if you did all correctly you should see a Hello World! message in the console.</p><p>Now Replace the file with the following code that counts numbers every second:</p><pre>using System;<br><br>namespace MyFirstProgram<br>{<br>    class Program<br>    {<br>        static void Main(string[] args)<br>        {<br>            var counter = 0;<br>            var max = args.Length != 0 ? Convert.ToInt32(args[0]) : -1;<br>            while(max == -1 || counter &lt; max)<br>            {<br>                counter++;<br>                Console.WriteLine($&quot;Counter: {counter}&quot;);<br>                System.Threading.Tasks.Task.Delay(1000).Wait();<br>            }<br>        }<br>    }<br>}</pre><p>and again dotnet run</p><p>you will see a counter in your console, hit ctrl+x to stop the program.</p><p>and finally</p><p>dotnet publish -c Release</p><p>you will see the new dll release files, where is your running copy of the time counter.</p><h4>Let’s Dockerize</h4><p>now you have your first program working and running we will create a new container and docker it to see the magic!</p><blockquote>you can start setting up docker for .net core and for that create a file named Dockerfile in your working folder and add the following line inside</blockquote><pre>FROM mcr.microsoft.com/dotnet/core/aspnet:2.2<br>COPY HelloWorld/bin/Release/netcoreapp2.1/publish HelloWorld/<br>ENTRYPOINT [&quot;dotnet&quot;, &quot;HelloWorld/HelloWorld.dll&quot;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*rCoUIP4IQgNlwN9aV49DEQ.png" /></figure><p>and now you must dockerize your program with the next command line</p><pre>docker build -t myimage -f Dockerfile .</pre><p>you will see something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*EohbQEwDTt3RxcRCzqFUYg.png" /></figure><p>use docker images</p><p>to see your docker images we will use myimage that we created above and type</p><p>docker create</p><p>and finally we will see our created image with this command</p><p>docker ps -a</p><p>The final result must similar to this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Y2uH6LyTfMDLvC71jpXcw.png" /></figure><p>in white text you will see the name of the container, it will be used to run the dockerfile in this way</p><p>docker start dreamy_ritchy</p><p>docker ps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*dxyTKYfoCfJBE32BUp8p4g.png" /></figure><p>once the project it’s running in a docker container you will see this finally</p><p>and with this command you can see it in action running inside a docker container</p><pre>docker attach --sig-proxy=false dreamy_ritchie</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*GGQpj6k26T0Bnp4FLXFbMQ.png" /></figure><p>if you miss something you can follow this great tutorial</p><p><a href="https://docs.microsoft.com/en-us/dotnet/core/docker/build-container#create-the-dockerfile">Containerize an app with Docker tutorial - .NET Core</a></p><p><em>you can download the full code from link below</em></p><p><a href="https://github.com/puelogames/.netcoredocker">puelogames/.netcoredocker</a></p><h4>Let’s Do Some Magic! ⚡️</h4><p>at this point it starts to become interesting, because instead share your code and re-complie it again and again in another machine, you will share your container, and run it in different places, for instance, I want to move my code from windows tho a Linux machine and run my application, or from my computer and Azure, you can divide your code in different containers to keep more control over it, does it sound familiar to you? it’s called <a href="https://www.bluepiit.com/blog/going-across-the-board-refactoring-from-monolithic-to-microservices/"><strong>microservices</strong></a>, keep different containers with different services of your program running isolated from the main core of the program.</p><h4>Microservices are amazing!</h4><p>let’s write some code to see it in action with visual studio</p><p>Create a Microservice (.NET Core Web API) with Docker support as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7H3Xt7yeDJ-wpY352b_JxQ.png" /></figure><p>Be secure that tick enable docker support</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*thFnOymWESIqMNbIomA1Ng.png" /></figure><p>The following Application Structure will be created along with “Docker File.” and also add Docker Compose to manage all containers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*bkHtZzpkqPI3kUQdb0UAwg.png" /></figure><p>For the MicroService1 you should have</p><pre>FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base<br>WORKDIR /app<br>ENV ASPNETCORE_URLS http://+:81<br>EXPOSE 81<br><br>FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build<br>WORKDIR /src<br>COPY [&quot;MicroService1/MicroService1.csproj&quot;, &quot;MicroService1/&quot;]<br>RUN dotnet restore &quot;MicroService1/MicroService1.csproj&quot;<br>COPY . .<br>WORKDIR &quot;/src/MicroService1&quot;<br>RUN dotnet build &quot;MicroService1.csproj&quot; -c Release -o /app<br><br>FROM build AS publish<br>RUN dotnet publish &quot;MicroService1.csproj&quot; -c Release -o /app<br><br>FROM base AS final<br>WORKDIR /app<br>COPY --from=publish /app .</pre><pre>ENTRYPOINT [&quot;dotnet&quot;, &quot;MicroService1.dll&quot;]</pre><p>For the MicroService2 you should have</p><pre>FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base<br>WORKDIR /app<br>ENV ASPNETCORE_URLS http://+:82<br>EXPOSE 82<br><br>FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build<br>WORKDIR /src<br>COPY [&quot;MicroService2/MicroService2.csproj&quot;, &quot;MicroService2/&quot;]<br>RUN dotnet restore &quot;MicroService2/MicroService2.csproj&quot;<br>COPY . .<br>WORKDIR &quot;/src/MicroService2&quot;<br>RUN dotnet build &quot;MicroService2.csproj&quot; -c Release -o /app<br><br>FROM build AS publish<br>RUN dotnet publish &quot;MicroService2.csproj&quot; -c Release -o /app<br><br>FROM base AS final<br>WORKDIR /app<br>COPY --from=publish /app .<br>ENTRYPOINT [&quot;dotnet&quot;, &quot;MicroService2.dll&quot;]</pre><p>and for MisroService3</p><pre>FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base<br>WORKDIR /app<br>ENV ASPNETCORE_URLS http://+:83<br>EXPOSE 83<br><br>FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build<br>WORKDIR /src<br>COPY [&quot;MicroService3/MicroService3.csproj&quot;, &quot;MicroService3/&quot;]<br>RUN dotnet restore &quot;MicroService3/MicroService3.csproj&quot;<br>COPY . .<br>WORKDIR &quot;/src/MicroService3&quot;<br>RUN dotnet build &quot;MicroService3.csproj&quot; -c Release -o /app<br><br>FROM build AS publish<br>RUN dotnet publish &quot;MicroService3.csproj&quot; -c Release -o /app<br><br>FROM base AS final<br>WORKDIR /app<br>COPY --from=publish /app .<br>ENTRYPOINT [&quot;dotnet&quot;, &quot;MicroService3.dll&quot;]</pre><p>Docker Compose</p><blockquote>Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration. To learn more about all the features of Compose, see <a href="https://docs.docker.com/compose/overview/#features">the list of features</a>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*IjSmlEkgdw1TCqGiYfyLXw.png" /></figure><p>and finally you must have as the image below 🔽</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c5y41b4GQ-Cm0aRoRvD72Q.png" /></figure><p>now you are ready to run the protect, if you did all well, docker compose will dockerize all and run in 3 different micro services like image below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvJ63RN-qaqTgHwynekvPQ.png" /></figure><p>and in the browser now you have your 3 micro services 👊</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*YgiTIuZ9LvT_-2AMoOupbw.png" /></figure><blockquote>keep in mind that you can add as many services as you want running in an isolated environment.</blockquote><p><em>you can download the full code from link below</em></p><p><a href="https://github.com/puelogames/.netdockermicroservices">puelogames/.netdockermicroservices</a></p><blockquote>.net Core and Docker gives you a amazing solution to port your projects to a different environments and also gives you the power of separate the solution in parts to work with teams in separate solutions. also gives the power of scale out and up a just a part of the application instead the whole one</blockquote><p>some useful links:</p><ul><li><a href="https://www.3pillarglobal.com/insights/develop-microservices-net-core-docker">How to Develop Microservices Using .NET Core &amp; Docker</a></li><li><a href="https://docs.microsoft.com/en-us/dotnet/core/docker/build-container#create-the-dockerfile">Containerize an app with Docker tutorial - .NET Core</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8d991141d2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>