<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Development on Antomor</title><link>https://antomor.com/categories/development/</link><description>Recent content in Development on Antomor</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>dev@antomor.com (Antonio Morrone)</managingEditor><webMaster>dev@antomor.com (Antonio Morrone)</webMaster><copyright>© 2026 Antonio Morrone</copyright><lastBuildDate>Sun, 25 Oct 2020 16:27:12 +0100</lastBuildDate><atom:link href="https://antomor.com/categories/development/index.xml" rel="self" type="application/rss+xml"/><item><title>Iterators &amp; Generators in Python</title><link>https://antomor.com/blog/python-iterators-generators/</link><pubDate>Sun, 25 Oct 2020 16:27:12 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/python-iterators-generators/</guid><description>&lt;p&gt;This post aims to describe the basic mechanisms behind iterators and generators.&lt;/p&gt;&#10;&#10;&lt;h2 class="relative group"&gt;Iterator protocol&#10; &lt;div id="iterator-protocol" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#iterator-protocol" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;As in many programming languages, Python allows you to iterate over a collection. The iteration mechanism is often useful when we need to scan a sequence, an operation that is very common in programming.&#10;In Python, the iterator protocol involves two components: an &lt;em&gt;iterable&lt;/em&gt; and an &lt;em&gt;iterator&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Angular Dynamic Content</title><link>https://antomor.com/blog/angular-dynamic-content/</link><pubDate>Sat, 11 Apr 2020 10:51:42 +0200</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/angular-dynamic-content/</guid><description>&lt;p&gt;In many cases we need to change the content of a component dynamically — for instance, to allow the user to change view, or to let the children render data retrieved and processed by its parent component. Below, we are going to show some techniques for creating a component without deciding in advance how the data will be shown. According to the application&amp;rsquo;s needs, each technique has its own strengths, but all of them encourage component reusability. We are going to describe:&lt;/p&gt;</description></item><item><title>Angular and Rxjs Http Requests: Common scenarios</title><link>https://antomor.com/blog/angular-rxjs-http-requests/</link><pubDate>Thu, 09 Apr 2020 19:40:48 +0200</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/angular-rxjs-http-requests/</guid><description>&lt;p&gt;Any modern web application needs, sooner or later, to perform some http requests to retrieve data.&#10;Below, I&amp;rsquo;ll describe some common scenarios and how to perform such requests using &lt;a href="https://rxjs.dev" target="_blank" rel="noreferrer"&gt;RxJS&lt;/a&gt;.&lt;/p&gt;&#10;&#10;&lt;h2 class="relative group"&gt;Single request&#10; &lt;div id="single-request" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#single-request" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;The most common scenario, no special rxjs handling needed, since Angular provides an Http service that returns an &lt;a href="https://rxjs.dev/api/index/class/Observable" target="_blank" rel="noreferrer"&gt;Observable&lt;/a&gt;.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-typescript" data-lang="typescript"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#a6e22e"&gt;services&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;getItems&lt;/span&gt;().&lt;span style="color:#a6e22e"&gt;subscribe&lt;/span&gt;();&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;p&gt;Is that easy? Yes. In the particular example, I assumed the http service call was inside the &lt;code&gt;service.getItems&lt;/code&gt; method, but it could be a &lt;code&gt;fetch&lt;/code&gt; or anything else returning an observable.&lt;/p&gt;</description></item><item><title>Git: Move Files Retaining History</title><link>https://antomor.com/blog/git-move-file-with-history/</link><pubDate>Sat, 14 Mar 2020 12:28:03 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/git-move-file-with-history/</guid><description>&lt;p&gt;Some time ago we needed to create a new product that shares many features with the existing one. The first idea was to extract some of the code into a library, to be then imported and used independently in the two projects.&lt;/p&gt;&#10;&lt;p&gt;After creating the repository for the library, the first thing I would have done was copy the files from one repo to another. Well, it works like a charm, it&amp;rsquo;s fast, and it doesn&amp;rsquo;t require any particular expertise — a normal drag-and-drop operation. What&amp;rsquo;s more? It could be a very effective approach, but &amp;hellip;&lt;/p&gt;</description></item><item><title>Mongodb Query Profiler</title><link>https://antomor.com/blog/mongodb-query-profiler/</link><pubDate>Sat, 28 Dec 2019 18:06:38 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/mongodb-query-profiler/</guid><description>&lt;p&gt;Some months ago, I was creating a web page to show some aggregated data, but I soon noticed the API used to retrieve the data was very slow. After investigating the possible issue, we discovered the bottleneck: the database. The solution was to restructure the data to make it consumable from a web page.&lt;/p&gt;&#10;&lt;p&gt;Although I had sometimes used the SQL Server profiler, I had no experience with the MongoDB profiler, so here are the steps involved in analysing a MongoDB query.&lt;/p&gt;</description></item><item><title>SPA deployment with GitLab</title><link>https://antomor.com/blog/gitlab-cd/</link><pubDate>Fri, 13 Dec 2019 10:53:54 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/gitlab-cd/</guid><description>&lt;p&gt;In the last few projects, I started using &lt;a href="https://about.gitlab.com/" target="_blank" rel="noreferrer"&gt;GitLab&lt;/a&gt;, not only as a git repository server, but also as a DevOps platform. So here I am going to describe a very simple architecture for deploying a single-page application using &lt;a href="https://www.docker.com/" target="_blank" rel="noreferrer"&gt;Docker&lt;/a&gt;, &lt;a href="https://docs.docker.com/compose/" target="_blank" rel="noreferrer"&gt;docker-compose&lt;/a&gt;, and &lt;a href="https://www.nginx.com/" target="_blank" rel="noreferrer"&gt;nginx&lt;/a&gt;.&#10;In this specific project I also used &lt;a href="https://docs.microsoft.com/en-us/dotnet/core/" target="_blank" rel="noreferrer"&gt;dotnet-core&lt;/a&gt; for the back-end API and &lt;a href="https://vuejs.org/" target="_blank" rel="noreferrer"&gt;VueJS&lt;/a&gt; as the front-end framework, but it is language-agnostic, meaning that you can replace whatever back-end or front-end you prefer.&lt;/p&gt;</description></item><item><title>Browser Extension Development</title><link>https://antomor.com/blog/browser-extension/</link><pubDate>Wed, 20 Nov 2019 17:15:01 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/browser-extension/</guid><description>&lt;p&gt;Web extensions or browser plugins can be used to improve browser functionalities. The following examples summarize the different goals they can have:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://noscript.net/" target="_blank" rel="noreferrer"&gt;no-script&lt;/a&gt; - to block script served from not-trusted domains&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/gorhill/uBlock#ublock-origin" target="_blank" rel="noreferrer"&gt;ublock Origin&lt;/a&gt; - it is &amp;ldquo;a wide-spectrum blocker&amp;rdquo;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://addons.mozilla.org/it/firefox/addon/dark-mode-zen/" target="_blank" rel="noreferrer"&gt;dark-mode&lt;/a&gt; - it changes the appearance of web pages&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://addons.mozilla.org/it/firefox/addon/react-devtools/" target="_blank" rel="noreferrer"&gt;React Developer Tools&lt;/a&gt; - to inspect react-specific properties of a page that makes use of React.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&#10;&lt;h2 class="relative group"&gt;Anatomy of an extension&#10; &lt;div id="anatomy-of-an-extension" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#anatomy-of-an-extension" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;The main components of a browser extension are:&lt;/p&gt;</description></item><item><title>Let's Test</title><link>https://antomor.com/blog/lets-test/</link><pubDate>Sun, 25 Aug 2019 10:48:40 +0200</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/lets-test/</guid><description>&lt;h2 class="relative group"&gt;Preamble&#10; &lt;div id="preamble" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#preamble" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;This article is not intended to cover the whole &lt;em&gt;testing process&lt;/em&gt; due to its vastness. Having a glance at its &lt;a href="https://en.wikipedia.org/wiki/Software_testing" target="_blank" rel="noreferrer"&gt;Wikipedia page&lt;/a&gt; could give an idea of it. I am going to cover only the tip of the iceberg, but it is important to remember that bugs cannot be entirely eliminated from software — instead, they &lt;strong&gt;must&lt;/strong&gt; be discovered as soon as possible.&lt;/p&gt;</description></item></channel></rss>