<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>João Porto</title>
  <link href="https://joaovaporto.blog/feed.xml" rel="self" type="application/atom+xml"/>
  <link href="https://joaovaporto.blog/" rel="alternate" type="text/html"/>
  <id>https://joaovaporto.blog/feed.xml</id>
  <updated>2026-11-16T20:20:35+00:00</updated>
  <author><name>João Porto</name></author>
  <entry>
    <title>Challenging the AI</title>
    <link href="https://joaovaporto.blog/2026/03/04/challenging-ai.html" rel="alternate" type="text/html"/>
    <id>https://joaovaporto.blog/2026/03/04/challenging-ai.html</id>
    <published>2026-03-04T00:00:00+00:00</published>
    <updated>2026-03-04T00:00:00+00:00</updated>
    <author><name>João Porto</name></author>
    <summary type="html">Challeging the AI day after day</summary>
    <content type="html" xml:base="https://joaovaporto.blog/2026/03/04/challenging-ai.html">&lt;p&gt;&lt;em&gt;Challeging the AI day after day&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;challenging&quot;&gt;Challenging&lt;/h2&gt;

&lt;p&gt;Once AI drew my attention, I have been in a mixed state of skepticism and excitement. My &lt;a href=&quot;https://joaovaporto.blog/2024/08/19/ai-impressions.html&quot;&gt;initial impressions&lt;/a&gt; were skeptic and not long time after pivoted to &lt;a href=&quot;https://joaovaporto.blog/2025/08/09/ai-agents-for-coding.html&quot;&gt;excitement with AI agents for coding&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Currently, I am in a constant state of “challeging” it. That is, I have been using AI in a daily basis as much as I can for coding and to solve problems that were not possible to tackle with conventional programming. For both cases, I have been facing problems that I do not see any clue that will be solved via AI in a mid (or even long) term perspective.&lt;/p&gt;

&lt;p&gt;Regarding to use AI for coding, although some recent impressive milestones as Anthropic’s Claude building a complete C compiler &lt;a href=&quot;https://www.youtube.com/watch?v=6QryFk4RYaM&quot;&gt;“from scratch”&lt;/a&gt;, my experience with AI agents and vibe coding reached a ceiling point that contradicts all these fency showcases. That is because, in most of the cases, when I am vibe coding I reach a plateau state where to prompt “do this”, “fix that” etc is not enough and then I have to read and edit the code to unlock progress. Even without this plateau state, I do not trust non-reviewed AI code anyway, then I always read the code to ensure consistency and security, to avoid architectural flaws etc.&lt;/p&gt;

&lt;p&gt;In the end of the day, I am basically writing prompts and reviewing what AI produces (just as before with conventional coding: writing ~20% of time and reading ~80%). Of course, this ceiling point is far better than what I had before with conventional coding, the &lt;strong&gt;productivity&lt;/strong&gt; indeed increased. However there is no such thing as to prompt “do X” and got X instantly if X is a fairly complex app that contains some &lt;strong&gt;novelty&lt;/strong&gt; — that is, a C compiler is much more complex software than any of my side-projects, but it is not quite new.&lt;/p&gt;

&lt;p&gt;On the other hand, I am trying to use AI to solve problems that deterministic programs would not solve solely at all, but that would be feasible when we integrate AI into program’s pipeline. One of these problems is Discourse analysis (DA) and, even using AI, I have not reached the quality I aimed yet, because is very hard to ensure consistent results for non-deterministic stages of program’s pipeline just consuming responses from regular LLMs in the market. Of course, “use AI” is quite broader than “consume LLMs”, however that is exactly the point: for the general public, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AI = LLM&lt;/code&gt;, but there is no such thing as “plug X stage to a LLM to solve the problem” and got the expected result instantly for hard problems as DA.&lt;/p&gt;

&lt;p&gt;In summary, I think AI progress would be represented by a logarithmic function and we are reaching the point of diminishing returns, though I can see progress beyond what we have fostered by AI.&lt;/p&gt;

&lt;p&gt;In fact, since the first computer machines were built in the mid of 20th century (in some way, even before, with Babbage and Ada), we have been evolving progressively the Human–computer interaction (HCI) to extract from machines what we need. Such extraction was feasible in the past via punched cards, later via the first programming languages and compilers and currently by modern coding tooling boosted with AI.&lt;/p&gt;

&lt;p&gt;Nonetheless, the different essences of natural and formal languages will always produce a noise when we are trying to translate from the former to the later. Currently AI is not able to solve this noise for us. It does can help us, as punched card once did and programming languages still do alongside AI, but it can not solve the noise entirely for us.&lt;/p&gt;

&lt;p&gt;I dream with the day where HCI will be we thinking and the machine processing the signals to produce what we want throught a fair interface. But I think we are far distant of that, even with AI.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href=&quot;/2025/11/25/human-writing.html&quot;&gt;100% human written&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;blockquote&gt;
  &lt;p&gt;Thanks to my fellow co-workers José, Ale and Lucas that sparked this topic.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;p&gt;“Building a c Compiler with a Team of Parallel Claudes.” Anthropic.com, 2026, www.anthropic.com/engineering/building-c-compiler.&lt;/p&gt;

&lt;p&gt;Quora contributors. “Where Do Natural Languages (like English) Fit on the Chomsky Hierarchy?”&lt;/p&gt;

&lt;p&gt;Quora, 2019, &lt;a href=&quot;www.quora.com/Where-do-natural-languages-like-English-fit-on-the-Chomsky-hierarchy&quot;&gt;www.quora.com/Where-do-natural-languages-like-English-fit-on-the-Chomsky-hierarchy&lt;/a&gt;. Accessed 4 Mar. 2026.&lt;/p&gt;

&lt;p&gt;Wikipedia contributors. “Chomsky Hierarchy.” Wikipedia, 9 Dec. 2021, &lt;a href=&quot;en.wikipedia.org/wiki/Chomsky_hierarchy&quot;&gt;en.wikipedia.org/wiki/Chomsky_hierarchy&lt;/a&gt;. Accessed 4 Mar. 2026.&lt;/p&gt;

&lt;p&gt;Wikipedia contributors. “Formal Language.” Wikipedia, 8 Oct. 2021, &lt;a href=&quot;en.wikipedia.org/wiki/Formal_language&quot;&gt;en.wikipedia.org/wiki/Formal_language&lt;/a&gt;. Accessed 4 Mar. 2026.&lt;/p&gt;

&lt;p&gt;Wikipedia contributors. “Human–computer interaction.” Wikipedia, 4 Mar. 2026, &lt;a href=&quot;en.wikipedia.org/wiki/Human–computer_interaction&quot;&gt;en.wikipedia.org/wiki/Human–computer_interaction&lt;/a&gt;. Accessed 4 Mar. 2026.&lt;/p&gt;

&lt;p&gt;Wikipedia contributors. “Discourse analysis.” Wikipedia, 4 Mar. 2026, &lt;a href=&quot;en.wikipedia.org/wiki/Discourse_analysis&quot;&gt;en.wikipedia.org/wiki/Discourse_analysis&lt;/a&gt;. Accessed 4 Mar. 2026.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Human Writing</title>
    <link href="https://joaovaporto.blog/2025/11/25/human-writing.html" rel="alternate" type="text/html"/>
    <id>https://joaovaporto.blog/2025/11/25/human-writing.html</id>
    <published>2025-11-25T00:00:00+00:00</published>
    <updated>2025-11-25T00:00:00+00:00</updated>
    <author><name>João Porto</name></author>
    <summary type="html">A decision about writing</summary>
    <content type="html" xml:base="https://joaovaporto.blog/2025/11/25/human-writing.html">&lt;p&gt;&lt;em&gt;A decision about writing&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;the-decision&quot;&gt;The decision&lt;/h2&gt;

&lt;p&gt;From now on, all posts in this blog will be written 100% by human. Actually that has already been the case for previous posts, except for one translated from Portuguese to English via AI.&lt;/p&gt;

&lt;p&gt;Why? Because it is pointless to have a blog whose content is co-authored by AI, let alone &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AI copy &amp;amp; paste&lt;/code&gt; as I noticed in some texts. Anyone can access AI chatbots, hence one could get its own AI content any time.&lt;/p&gt;

&lt;p&gt;AI content is pervasive, thus to provide human written content is not only a way to keep exercising thought process, but also a way to offer real value for readers.&lt;/p&gt;

&lt;p&gt;Is that about competion with AI? Not at all, since it is &lt;em&gt;hors-concours&lt;/em&gt; and amazing in many levels. The point is: AI content conveys referential content; human content, even defective as mine, conveys novelty.&lt;/p&gt;

&lt;p&gt;That said, the idea is not to exclude AI of writing process, rather is limit it to the role of information source and do not delegate to it text’s idea, structure, and style.&lt;/p&gt;

&lt;p&gt;The following note will be appended to the end of posts reflecting that decision.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href=&quot;/2025/11/25/human-writing.html&quot;&gt;100% human written&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
</content>
  </entry>
  <entry>
    <title>AI Agents for Coding</title>
    <link href="https://joaovaporto.blog/2025/08/09/ai-agents-for-coding.html" rel="alternate" type="text/html"/>
    <id>https://joaovaporto.blog/2025/08/09/ai-agents-for-coding.html</id>
    <published>2025-08-09T00:00:00+00:00</published>
    <updated>2025-08-09T00:00:00+00:00</updated>
    <author><name>João Porto</name></author>
    <summary type="html">A brief report about testing AI agents for coding</summary>
    <content type="html" xml:base="https://joaovaporto.blog/2025/08/09/ai-agents-for-coding.html">&lt;p&gt;&lt;em&gt;A brief report about testing AI agents for coding&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;the-spark&quot;&gt;The spark&lt;/h2&gt;

&lt;p&gt;Yesterday I watched OpenAI’s video promoting &lt;strong&gt;GPT-5&lt;/strong&gt; and highlighting how it leverages &lt;strong&gt;Cursor&lt;/strong&gt;. I was very skeptical initially, but interested. Then I did a little experiment: I got Cursor’s trial plan, installed its IDE in my personal environment and inserted the exact same inputs that I saw on video (a wireframe and a prompt asking for an email app for devs). As I expected, the result was not equal to video; actually, the first result was not acceptable at all, but after some additional prompts asking to it fix the issues, it really provided a good prototype for an email app using Vite + Tailwind. The result was not as refined as video’s result and took considerable time (maybe it would be faster using background mode), but was pretty good for me. Hence, my excitement with AI agents for code increased in that moment.&lt;/p&gt;

&lt;h2 id=&quot;testing&quot;&gt;Testing&lt;/h2&gt;

&lt;p&gt;After that, I came back for another personal side experiment: use Prolog to solve a problem that I found. I was wondering how to set it up again in Emacs and was using &lt;a href=&quot;https://joaovaporto.blog/2024/10/06/emacs-for-prolog.html&quot;&gt;my blog post about that&lt;/a&gt; as a reference. When reading, I noticed some issues on my blog’s UI that I already knew but ignored previously because I had other priorities. But, since the excitement about AI agents for coding increased, I thought it would be good to use them to solve those issues.&lt;/p&gt;

&lt;p&gt;Actually, I had already used &lt;strong&gt;Claude Code&lt;/strong&gt; (CC) to improve some UI issues in the past, then, I naturally turned to it again. The main issue was related to heading behavior on scroll events and, after some prompts, CC indeed solved it. But I tried to go further, solving color and typography issues, and it was not satisfactory after several prompts.&lt;/p&gt;

&lt;p&gt;Then I tried Cursor and it was incredibly good at solving these issues. I did not need to create detailed prompts regarding colors; with a few statements it understood and adjusted header buttons and background colors for dark mode and also enhanced contrast for reading in light mode. Adjusting typography was a bit harder and needed more prompts, but I also reached a satisfactory point. On the other hand, maybe I would achieve the same with CC, since the prompts that I provided to Cursor were more refined based on CC’s prompts.&lt;/p&gt;

&lt;p&gt;I tested Cursor using its IDE, web, and CLI versions, exclusively with GPT-5. Using its IDE is like using &lt;strong&gt;VS Code + Copilot extension&lt;/strong&gt; (Code+Pilot) and its CLI is like CC, so they are good, but not a great surprise up to the point that I tested. Actually, I did the test using Code+Pilot (with GPT-5) to create the email app with the same input that I provided to Cursor and the UI was quite better and did not require additional prompts – an unique prompt was enough to produce a much better result.&lt;/p&gt;

&lt;p&gt;However, Cursor web version was a valuable find, because I was able to prompt and deploy from my mobile device (its integration with GitHub is very good). I had already reached that before (in March) using CC, but I needed to install Termux in Android and within it install Node.js, install CC, create a new Anthropic API Key to set up CC, and create GitHub SSH Key to clone from and push to the remote repo. That was almost replicate my desktop environment in Android, so Cursor web is very handy. Excited with it, I also tested &lt;strong&gt;Google Jules&lt;/strong&gt; that is great too and finally I remembered that I had already tested &lt;strong&gt;Codex&lt;/strong&gt; recently (in June), but for some reason I did not engage in using it in that moment. Now is clear to me that all three of these are very useful and I will keep using them.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Solving minor issues &lt;em&gt;vibe coding&lt;/em&gt; from mobile while lying in my hammock was great; I enjoyed it and I will extend this experience to my other projects. Furthermore, I will try to see to what extent AI agents can solve my programming issues and then delegate as many as possible to them, because my interest now is in things that they cannot solve (or almost that, there are a couple of things they do that I still enjoy to doing as leisure).&lt;/p&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;p&gt;OpenAI. “Coding with GPT-5.” Www.youtube.com, 7 Aug. 2025, &lt;a href=&quot;https://www.youtube.com/watch?v=PQUcIbSEBCM&quot;&gt;www.youtube.com/watch?v=PQUcIbSEBCM&lt;/a&gt;. Accessed 8 June 2025.&lt;/p&gt;

&lt;p&gt;Cursor. “Cursor on Web and Mobile.” Www.youtube.com, 30 June 2025, &lt;a href=&quot;https://www.youtube.com/watch?v=hHTKtrSO6os&amp;amp;t=4s&quot;&gt;www.youtube.com/watch?v=hHTKtrSO6os&amp;amp;t=4s&lt;/a&gt;. Accessed 8 Aug. 2025.&lt;/p&gt;

&lt;p&gt;Anysphere, Inc. “Cursor.” Cursor.com, &lt;a href=&quot;https://cursor.com/home&quot;&gt;cursor.com/home&lt;/a&gt;. Accessed 8 Aug. 2025.&lt;/p&gt;

&lt;p&gt;Anthropic PBC. “Claude Code: Deep Coding at Terminal Velocity \ Anthropic.” Anthropic.com, &lt;a href=&quot;https://www.anthropic.com/claude-code&quot;&gt;www.anthropic.com/claude-code&lt;/a&gt;. Accessed 9 Aug. 2028.&lt;/p&gt;

&lt;p&gt;Microsoft. “Visual Studio Code.” Visualstudio.com, Microsoft, &lt;a href=&quot;https://code.visualstudio.com/&quot;&gt;code.visualstudio.com&lt;/a&gt;. Accessed 9 Aug. 2025.&lt;/p&gt;

&lt;p&gt;GitHub. “GitHub Copilot · Your AI Pair Programmer.” GitHub, &lt;a href=&quot;https://github.com/features/copilot&quot;&gt;github.com/features/copilot&lt;/a&gt;. Accessed 9 Aug. 2025.&lt;/p&gt;

&lt;p&gt;OpenAI. “Introducing Codex.” Openai.com, 3 June 2025, &lt;a href=&quot;https://openai.com/index/introducing-codex/&quot;&gt;openai.com/index/introducing-codex&lt;/a&gt;. Accessed 9 Aug. 2025.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Setting up Emacs for Prolog</title>
    <link href="https://joaovaporto.blog/2024/10/06/emacs-for-prolog.html" rel="alternate" type="text/html"/>
    <id>https://joaovaporto.blog/2024/10/06/emacs-for-prolog.html</id>
    <published>2024-10-06T00:00:00+00:00</published>
    <updated>2024-10-06T00:00:00+00:00</updated>
    <author><name>João Porto</name></author>
    <summary type="html">How to set up Emacs for Prolog</summary>
    <content type="html" xml:base="https://joaovaporto.blog/2024/10/06/emacs-for-prolog.html">&lt;p&gt;&lt;em&gt;How to set up Emacs for Prolog&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;set-up&quot;&gt;Set up&lt;/h2&gt;

&lt;p&gt;First of all, I installed the &lt;strong&gt;GNU Prolog&lt;/strong&gt; via
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt install gprolog&lt;/code&gt;. Prolog per se worked fine, but I was
struggling to make &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.pl&lt;/code&gt; files be recognized by Emacs, because it was
considering &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.pl&lt;/code&gt; as Perl files, not Prolog files.&lt;/p&gt;

&lt;p&gt;Then I thought that I could install a major mode package for Prolog,
just like I did for Go, Elixir and PHP (via, e.g.,
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;M-x package-install RET go-mode&lt;/code&gt;). But apparently there was no ELPA
package &lt;strong&gt;prolog-mode&lt;/strong&gt; or something like that available, at least no
one that I would find through the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;M-x list-packages&lt;/code&gt;. The list just
shown the packages &lt;strong&gt;ediprolog&lt;/strong&gt; and &lt;strong&gt;sweeprolog&lt;/strong&gt;. Both of these two
enable query Prolog directly from Emacs&apos;s buffer, but the last one
specifically for the &lt;strong&gt;SWI-Prolog&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Then I thought &quot;Well, maybe installing the sweeprolog I can get Prolog
syntax hightlight as a side effect.&quot;. Therefore, I asked to Gemini what
is the difference between &lt;strong&gt;GNU Prolog&lt;/strong&gt; and &lt;strong&gt;SWI-Prolog&lt;/strong&gt;. In short,
both are implementations of Prolog, being the first one faster and the
second one popular.&lt;/p&gt;

&lt;p&gt;Thereafter, I uninstalled &lt;strong&gt;GNU Prolog&lt;/strong&gt;, because I was going to install
&lt;strong&gt;SWI-Prolog&lt;/strong&gt;, but first I read the description of &lt;strong&gt;ediprolog&lt;/strong&gt;, and I
found &lt;a href=&quot;https://www.youtube.com/watch?v=jMg8sY2R930&quot;&gt;this video&lt;/a&gt; that
demonstrate its features. Watching the video I noticed that a &lt;strong&gt;Prolog&lt;/strong&gt;
mode was in use on the presenter&apos;s Emacs and I thought &quot;Hmm, there is
a Prolog mode, but it is not listed in the packages list.&quot;.&lt;/p&gt;

&lt;p&gt;Then I asked to Gemini what is the name for Prolog&apos;s major mode in
Emacs, and its answer was &lt;strong&gt;prolog-mode&lt;/strong&gt;. Also, I asked how to check
the available modes in Emacs and Gemini suggested &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;M-x list-modes&lt;/code&gt;, a
command that, at least in my Emacs, does not exists. I did the same
question to ChatGPT, and it answered &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;M-x apropos-command RET -mode&lt;/code&gt;,
that indeed lists available modes, including that one I was seeking
for.&lt;/p&gt;

&lt;p&gt;I read the description provided for &lt;strong&gt;prolog-mode&lt;/strong&gt;, trying to find the
way to set the mode, but the description was not helpful. Finally, I
asked to ChatGPT how to change the current buffer to a specific mode,
and it suggested simply &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;M-x prolog-mode&lt;/code&gt;, what makes complete sense. If
I had noticed before that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;M-x apropos-command&lt;/code&gt; is used exactly to
provide information about commands, I maybe would understand early that
&lt;strong&gt;prolog-mode&lt;/strong&gt; was listed because it is a command per se, and then, can
be executed via &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;M-x&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Anyway, the command worked and then I successfully changed to &lt;strong&gt;Prolog&lt;/strong&gt;
mode, with the correct syntax hightlight. Also, for Emacs recognize
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.pl&lt;/code&gt; as a file to be opened with &lt;strong&gt;Prolog&lt;/strong&gt; mode, ChatGPT suggested to
put &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(add-to-list &apos;auto-mode-alist &apos;(&quot;\\.pl\\&apos;&quot; . prolog-mode))&lt;/code&gt; into
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.emacs&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;About this last point, a interesting thing is that I asked to Gemini how
to do that a few days ago, and it suggested to put
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(setq auto-mode-alist (append &apos;((&quot;\\.pl$&quot;, . prolog-mode)) auto-mode-alist))&lt;/code&gt;
into &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.emacs&lt;/code&gt;, which did not work, otherwise, I would to skip all
this process.&lt;/p&gt;

&lt;p&gt;But this process was not useless, because I found &lt;strong&gt;ediprolog&lt;/strong&gt; and
&lt;strong&gt;sweeprolog&lt;/strong&gt;, that I may use, since Org-mode seems not offer support
for Prolog.&lt;/p&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;p&gt;“GNU ELPA - Ediprologes.” Gnu.org, 2024,
&lt;a href=&quot;https://elpa.gnu.org/packages/ediprolog.html&quot;&gt;elpa.gnu.org/packages/ediprolog.html&lt;/a&gt;.
Accessed 6 Oct. 2024.&lt;/p&gt;

&lt;p&gt;“GNU ELPA Packages.” Gnu.org, 2020,
&lt;a href=&quot;https://elpa.gnu.org/packages/&quot;&gt;elpa.gnu.org/packages/&lt;/a&gt;. Accessed 6
Oct. 2024.&lt;/p&gt;

&lt;p&gt;Google. “Gemini.” Gemini.google.com, 2024,
&lt;a href=&quot;https://gemini.google.com/app&quot;&gt;gemini.google.com/app&lt;/a&gt;. Accessed 6 Oct.
2024.&lt;/p&gt;

&lt;p&gt;“NonGNU ELPA - Sweeprolog.” Nongnu.org, 2024,
&lt;a href=&quot;https://elpa.nongnu.org/nongnu/sweeprolog.html&quot;&gt;elpa.nongnu.org/nongnu/sweeprolog.html&lt;/a&gt;.
Accessed 6 Oct. 2024.&lt;/p&gt;

&lt;p&gt;“NonGNU ELPA Packages.” Nongnu.org, 2015,
&lt;a href=&quot;https://elpa.nongnu.org/nongnu/&quot;&gt;elpa.nongnu.org/nongnu/&lt;/a&gt;. Accessed 6
Oct. 2024.&lt;/p&gt;

&lt;p&gt;OpenAI. “ChatGPT.” Openai.com, 2024,
&lt;a href=&quot;https://openai.com/chatgpt/&quot;&gt;openai.com/chatgpt/&lt;/a&gt;. Accessed 6 Oct.
2024.&lt;/p&gt;

&lt;p&gt;Schulte, Eric. “Babel: Languages.” Orgmode.org, 2014,
&lt;a href=&quot;https://orgmode.org/worg/org-contrib/babel/languages/index.html&quot;&gt;orgmode.org/worg/org-contrib/babel/languages/index.html&lt;/a&gt;.
Accessed 6 Oct. 2024.&lt;/p&gt;

&lt;p&gt;The Power of Prolog. “Ediprolog: Emacs Does Interactive Prolog.”
YouTube, 14 July 2019,
&lt;a href=&quot;https://www.youtube.com/watch?v=jMg8sY2R930&quot;&gt;youtube.com/watch?v=jMg8sY2R930&lt;/a&gt;.
Accessed 6 Oct. 2024.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Impressions about AI</title>
    <link href="https://joaovaporto.blog/2024/08/19/ai-impressions.html" rel="alternate" type="text/html"/>
    <id>https://joaovaporto.blog/2024/08/19/ai-impressions.html</id>
    <published>2024-08-19T00:00:00+00:00</published>
    <updated>2024-08-19T00:00:00+00:00</updated>
    <author><name>João Porto</name></author>
    <summary type="html">Impressions after ~1.5 Years of ChatGPT’s release.</summary>
    <content type="html" xml:base="https://joaovaporto.blog/2024/08/19/ai-impressions.html">&lt;p&gt;&lt;em&gt;Impressions after ~1.5 Years of ChatGPT’s release.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;impressions&quot;&gt;Impressions&lt;/h2&gt;

&lt;p&gt;In the beginning, generative AI truly surprised me because I was focused on software development and had not studied AI for a while.&lt;/p&gt;

&lt;p&gt;But today, I see the limitations of this tool. Indeed it is a data storage, data organizer, data retriever etc. Very sophisticated, very useful, but still limited. The main limitation is the creation of genuinely original ideas—ideas that are not present in the data it was trained on, because they have not yet been thought of. The thinking process is missing.&lt;/p&gt;

&lt;p&gt;Today, I see AI more as a mechanism analogous to a Database Management System (DBMS) than as a thinking entity. And why a DBMS? Because it stores a large set of data and offers us the possibility of accessing parts of that set according to our needs, for which we express what we want. The difference between it and a conventional DBMS like MySQL or PostgreSQL is that we do not use a formal language like SQL, but natural language.&lt;/p&gt;

&lt;p&gt;This is no small thing, as the number of people who can use the tool expands, given that more people can express themselves in natural language than in SQL.&lt;/p&gt;

&lt;p&gt;Of course, this is a simplistic analysis and I would need to define more precisely what it means to think in order to say that AI does not think, but I will limit myself to staying within the realm of impression based on what I’ve described. And, according to this impression, AI still has a long way to go.&lt;/p&gt;

&lt;p&gt;I eagerly await the moment when it can, in fact, be a thinking entity.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Note: text translated from Portuguese to English via AI.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;p&gt;Quora contributors. “Where Do Natural Languages (like English) Fit on the Chomsky Hierarchy?”&lt;/p&gt;

&lt;p&gt;Quora, 2019, &lt;a href=&quot;www.quora.com/Where-do-natural-languages-like-English-fit-on-the-Chomsky-hierarchy&quot;&gt;www.quora.com/Where-do-natural-languages-like-English-fit-on-the-Chomsky-hierarchy&lt;/a&gt;. Accessed 18 Aug. 2024.&lt;/p&gt;

&lt;p&gt;Wikipedia contributors. “Chomsky Hierarchy.” Wikipedia, 9 Dec. 2021, &lt;a href=&quot;en.wikipedia.org/wiki/Chomsky_hierarchy&quot;&gt;en.wikipedia.org/wiki/Chomsky_hierarchy&lt;/a&gt;. Accessed 18 Aug. 2024.&lt;/p&gt;

&lt;p&gt;Wikipedia contributors. “Formal Language.” Wikipedia, 8 Oct. 2021, &lt;a href=&quot;en.wikipedia.org/wiki/Formal_language&quot;&gt;en.wikipedia.org/wiki/Formal_language&lt;/a&gt;. Accessed 18 Aug. 2024.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>The Literate Programming</title>
    <link href="https://joaovaporto.blog/2024/04/11/literate-programming.html" rel="alternate" type="text/html"/>
    <id>https://joaovaporto.blog/2024/04/11/literate-programming.html</id>
    <published>2024-04-11T00:00:00+00:00</published>
    <updated>2024-04-11T00:00:00+00:00</updated>
    <author><name>João Porto</name></author>
    <summary type="html">Testing the Literate Programming approach as proposed by Knuth.</summary>
    <content type="html" xml:base="https://joaovaporto.blog/2024/04/11/literate-programming.html">&lt;p&gt;&lt;em&gt;Testing the Literate Programming approach as proposed by Knuth.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;

&lt;p&gt;Literate programming is an interesting approach of programming proposed by Knuth. I tested it by creating a program that is defined &lt;a href=&quot;&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;. I enjoyed write code using literate programming.&lt;/p&gt;

&lt;h2 id=&quot;discovering-literate-programming&quot;&gt;Discovering Literate Programming&lt;/h2&gt;

&lt;p&gt;In the last week I was testing the Google Trends app.&lt;/p&gt;

&lt;p&gt;To test it, I put “ &lt;a href=&quot;https://en.wikipedia.org/wiki/Donald_Knuth&quot; target=&quot;_blank&quot;&gt;
Knuth&lt;/a&gt;” (Knuth’s name was on my mind) as the topic to be analyzed.&lt;/p&gt;

&lt;p&gt;While checking out the results, I remembered that Knuth had proposed an approach to code called literate programming (LP).&lt;/p&gt;

&lt;p&gt;I recalled (wrongly as we will see) that LP was an attempt to write code using natural language.&lt;/p&gt;

&lt;p&gt;So I was curious to compare the trends of literate programming, given the recent progress of translate natural language prompts into source code powered by AI.&lt;/p&gt;

&lt;p&gt;I found that the interest in LP is &lt;a href=&quot;https://trends.google.com/trends/explore?date=all&amp;amp;q=literate%20programming&amp;amp;hl=en&quot; target=&quot;_blank&quot;&gt;decreasing since 2008&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Then, still curious about LP, I searched about it on Wikipedia.&lt;/p&gt;

&lt;p&gt;Reading the &lt;a href=&quot;https://en.wikipedia.org/wiki/Literate_programming&quot; target=&quot;_blank&quot;&gt;article on Wikipedia&lt;/a&gt;, I found that the idea that I had about literate programming was wrong.&lt;/p&gt;

&lt;p&gt;Actually, literate programming is an approach where we write code as it was a book, but we still write code using a conventional programming language (PL). The key point of LP is that the code is encapsulated into a narrative that presents and explains the code for a human reader.&lt;/p&gt;

&lt;p&gt;In contrast with the regular programming where to comment extensively the code is discouraged (for good reasons IMHO), in LP the protagonist is the explanation about the code. Then, when adopting this approach, create a program is like write a book’s narrative.&lt;/p&gt;

&lt;p&gt;Besides propose this approach, Knuth also made a tool called WEB (in the 80s) that processes the program’s narrative and produces docs and source code. The docs can be considered the book that explain the program and the source code generated can be compiled/interpreted into a program.&lt;/p&gt;

&lt;p&gt;In his terms, the process of generate the docs is called &lt;strong&gt;weaving&lt;/strong&gt; and the process of generate source code is called &lt;strong&gt;tangling&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;WEB originally supports TeX as the markup language to write the narrative and Pascal as the PL to be compiled. Also, WEB evolved to CWEB, that supports C and C++ as PL.&lt;/p&gt;

&lt;h2 id=&quot;literate-programming-nowdays&quot;&gt;Literate Programming nowdays&lt;/h2&gt;

&lt;p&gt;So, as me, you may noticed that there are “modern” tools that provides the capability to exercise literate programming.&lt;/p&gt;

&lt;p&gt;Indeed, Jupyter Notebook, for instance, is a clear way to create a material that mixes code and extensive explanation about it, to share the material and to turn easy the reproduction of the code and its results. A good tool for science purposes.&lt;/p&gt;

&lt;p&gt;But, since I already used Jupyter Notebook, I was interested in check out other LP tools, specially because of the following &lt;a href=&quot;https://en.wikipedia.org/wiki/Literate_programming#Literate_programming_practices&quot; target=&quot;_blank&quot;&gt;statement&lt;/a&gt; in the Wikipedia’s article:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;“Many of the newer ones among these [tools] don’t have macros and hence violate the order of human logic principle, which makes them more of semi-literate tools.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The order of human logic feature is basically be able to add more code to or redefine any snippet of code previously defined throughout the narrative.&lt;/p&gt;

&lt;p&gt;Sounds good, then I wanted to check whether this is really such a great feature or not.&lt;/p&gt;

&lt;h2 id=&quot;the-literate-tool&quot;&gt;The Literate tool&lt;/h2&gt;

&lt;p&gt;While reading the &lt;a href=&quot;https://en.wikipedia.org/wiki/Literate_programming#Literate_programming_practices&quot; target=&quot;_blank&quot;&gt;list of LP tools&lt;/a&gt;, the &lt;a href=&quot;https://github.com/zyedidia/Literate&quot; target=&quot;_blank&quot;&gt;Literate&lt;/a&gt; tool drew my attention for two reasons:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;It has the human logic feature (just like Knuth’s CWEB);&lt;/li&gt;
  &lt;li&gt;It supports any programming language (including my current go to language that is PHP).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then, I have decided to try code using the Knuth’s literate programming approach and I have used Literate for that. As a result of this test, I wrote a program called Tifin and &lt;a href=&quot;&quot; target=&quot;_blank&quot;&gt;Tifin’s book is here&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;how-was-to-code-using-the-lp-approach&quot;&gt;How was to code using the LP approach?&lt;/h2&gt;

&lt;p&gt;Before anything, I am skeptical about the viability of to adopt literate programming in big projects with a lot of developers. I wonder whether is possible and useful to write and maintain an extensive narrative about the code in a context of CI/CD.&lt;/p&gt;

&lt;p&gt;However, especially in a small/side project as Tifin, where the program is just an abstract idea without formal requirements, prototypes, user stories etc, I think that literate programming could be a powerful approach.&lt;/p&gt;

&lt;p&gt;In this kind of project, is not uncommon that I get stuck trying to remember what I want/have to do when jumping from one module/class to another.&lt;/p&gt;

&lt;p&gt;Coding with LP allows me to go back and forth in my reasoning because it is expressed in the narrative, which prevents me getting stuck trying to remember something.&lt;/p&gt;

&lt;p&gt;Also, the literate programming is a compelling approach for those who enjoy to write prose, like me.&lt;/p&gt;

&lt;p&gt;In general, I found that code using the literate programming approach is very enjoyable. Hence, I agree with Knuth, &lt;a href=&quot;https://youtu.be/bTkXg2LZIMQ?t=220&quot; target=&quot;_blank&quot;&gt;LP it’s a continous source of pleasure.&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;p&gt;Wikipedia contributors. “Literate Programming.” Wikipedia, 3 Apr. 2024, &lt;a href=&quot;https://en.wikipedia.org/wiki/Literate_programming&quot;&gt;en.wikipedia.org/wiki/Literate_programming&lt;/a&gt;. Accessed 10 Apr. 2024.&lt;/p&gt;

&lt;p&gt;Wikipedia contributors. “Web (Programming System).” Wikipedia, 30 June 2023, &lt;a href=&quot;https://en.wikipedia.org/wiki/Web_(programming_system)#CWEB&quot;&gt;en.wikipedia.org/wiki/Web_(programming_system)#CWEB&lt;/a&gt;. Accessed 10 Apr. 2024.&lt;/p&gt;

&lt;p&gt;Knuth, Donald, and Silvio Levy. “Knuth and Levy: CWEB.” Www-Cs-Faculty.stanford.edu, 1993, &lt;a href=&quot;https://www-cs-faculty.stanford.edu/~knuth/cweb.html&quot;&gt;www-cs-faculty.stanford.edu/~knuth/cweb.html&lt;/a&gt;. Accessed 11 Apr. 2024.&lt;/p&gt;

&lt;p&gt;Wikipedia contributors. “Project Jupyter.” Wikipedia, 23 Mar. 2021, &lt;a href=&quot;https://en.wikipedia.org/wiki/Project_Jupyter&quot;&gt;en.wikipedia.org/wiki/Project_Jupyter&lt;/a&gt;. Accessed 10 Apr. 2024.&lt;/p&gt;

&lt;p&gt;Web of Stories - Life Stories of Remarkable People. “Donald Knuth - Literate Programming (66/97).” Www.youtube.com, 28 Jan. 2016, &lt;a href=&quot;https://www.youtube.com/watch?v=bTkXg2LZIMQ&amp;amp;t=220s&amp;amp;ab_channel=WebofStories-LifeStoriesofRemarkablePeople&quot;&gt;www.youtube.com/watch?v=bTkXg2LZIMQ&amp;amp;t=220s&amp;amp;ab_channel=WebofStories-LifeStoriesofRemarkablePeople&lt;/a&gt;. Accessed 11 Apr. 2024.&lt;/p&gt;

&lt;p&gt;Wikipedia contributors. “Exploratory Programming.” Wikipedia, 21 Mar. 2024, &lt;a href=&quot;https://en.wikipedia.org/wiki/Exploratory_programming&quot;&gt;en.wikipedia.org/wiki/Exploratory_programming&lt;/a&gt;. Accessed 11 Apr. 2024.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A Method for Code Review</title>
    <link href="https://joaovaporto.blog/2024/02/03/method-for-code-review.html" rel="alternate" type="text/html"/>
    <id>https://joaovaporto.blog/2024/02/03/method-for-code-review.html</id>
    <published>2024-02-03T00:00:00+00:00</published>
    <updated>2024-02-03T00:00:00+00:00</updated>
    <author><name>João Porto</name></author>
    <summary type="html">An empirical (and relatively organized) method for code review.</summary>
    <content type="html" xml:base="https://joaovaporto.blog/2024/02/03/method-for-code-review.html">&lt;p&gt;&lt;em&gt;An empirical (and relatively organized) method for code review.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;motivation&quot;&gt;Motivation&lt;/h2&gt;
&lt;p&gt;Once a coworker asked me how I do my code reviews. This question made me think about that.&lt;/p&gt;

&lt;p&gt;Even though I had a process, I never thought about it with clarity, since it was built iteratively after several code rewiews.&lt;/p&gt;

&lt;p&gt;Since its steps are clear to me now, I wrote they down in this post.&lt;/p&gt;

&lt;h2 id=&quot;step-1---create-a-text-document&quot;&gt;Step 1 - Create a text document&lt;/h2&gt;

&lt;p&gt;I have a text document where I put all the information related to the code review (CR) that I’m doing.&lt;/p&gt;

&lt;p&gt;Why not just put this information in the Pull/Merge Request (PR)’s feedback? Because there is information produced through the CR that are not relevant to the PR’s author, but are useful to me.&lt;/p&gt;

&lt;p&gt;In the beginning of a CR, if the purpose of the task that originated the PR is not clear to me (common in big projects), I write down a brief of the task, this helps me to absorbing the task. This is useful to understand whether the PR satisfies the task.&lt;/p&gt;

&lt;p&gt;Also, I write in this document what will be my approach and definition of done (DoD) for the CR, based on the properties of the code and task that I’m reviewing. Once written the CR’s DoD, it’s easier define when stop it.&lt;/p&gt;

&lt;p&gt;Two benefits emerge from this document:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;The document helps me to keep track of details and state of the CR. Then, while doing the code review, if I have to pause it, I can retrieve the exact point from which I have to restart, and&lt;/li&gt;
  &lt;li&gt;The PR’s feedback is a subset of the document produced. So, once finished the CR, all I need to do is cherry pick the relevant information for the PR’s author.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;step-2---run-tests-and-debug-it&quot;&gt;Step 2 - Run tests and debug it&lt;/h2&gt;

&lt;p&gt;Once the text document is created, my start point is run the automated tests.&lt;/p&gt;

&lt;p&gt;If there is no automated tests, this is a point to refer in the PR’s feedback, because automated tests are, in general, important and the absence of them should be justified.&lt;/p&gt;

&lt;p&gt;If tests execution was not successful, then I reach out the PR’s author about that and I wait until the problem is solved (and, of course, I provide support if necessary).&lt;/p&gt;

&lt;p&gt;When the tests pass, I select the test that cover the main scenario of the task for debugging.&lt;/p&gt;

&lt;p&gt;While debugging each line of code, the logic of the implementation becomes more clear to me and I write the logic’s key points for not forget them.&lt;/p&gt;

&lt;p&gt;If there is some point that is not clear enough or I think is not correct, I write it down in the document.&lt;/p&gt;

&lt;p&gt;In general, execute the main scenario is sufficient to understand the whole logic, but, in the cases where it is not sufficient, I keep debugging the others tests until understand everything.&lt;/p&gt;

&lt;h2 id=&quot;step-3---analyze-the-code&quot;&gt;Step 3 - Analyze the code&lt;/h2&gt;

&lt;p&gt;In this step, I’m already comfortable with the task’s code and its logic is clear to me.&lt;/p&gt;

&lt;p&gt;Then, I take a time to do a final look at the code. I check whether:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;There is opportunities for optimization, in terms of time or memory,&lt;/li&gt;
  &lt;li&gt;There is code that could be refactored to be more simple/elegant, and&lt;/li&gt;
  &lt;li&gt;There is code that is not compliant with the team’s guidelines.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;step-4---contribute-with-simple-editions&quot;&gt;Step 4 - Contribute with simple editions&lt;/h2&gt;

&lt;p&gt;If, and only if, I have time enough for this, I do the edition in snippets of code that don’t follow the guildelines, helping to turn the PR ready for merge as soon as possible.&lt;/p&gt;

&lt;p&gt;But I only do edition that could be made by anyone, that is edition that if I do or the PR’s author do, it will not produce different results in terms of code. For example, there is a guideline that states that variable’s name should be written in snake_case and the PR’s code has the following snippet:&lt;/p&gt;
&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;variableName&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;variableName&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Whether I edit the code to follow the guideline or the PR’s author edit it, that’s will not make difference, because both of us will rewrite as:&lt;/p&gt;
&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;variable_name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;variable_name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I never do edition that is related to the &lt;em&gt;logic/core of the task&lt;/em&gt;, because I assume that the PR’s author has more understanding (or should have) of the logic than me.&lt;/p&gt;

&lt;p&gt;Things related to the logic/core will be in the document (as I suggested early) and they will integrate the PR’s feedback. And this bring us to the final step.&lt;/p&gt;

&lt;h2 id=&quot;step-5---submit-feedback&quot;&gt;Step 5 - Submit feedback&lt;/h2&gt;

&lt;p&gt;Finally, in the end of the process, I provide the feedback. As I said early, what I need to put in the PR’s feedback is already present in the document created.&lt;/p&gt;

&lt;p&gt;But, let’s dive a little bit into the structure of the feedback. It is basically:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Whether the PR is approved or not.
    &lt;ul&gt;
      &lt;li&gt;If the PR is not approved, point out clearly why.&lt;/li&gt;
      &lt;li&gt;Doubts about parts of the implementation that I think is not adherent to the task’s purpose comes here.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Any other information that PR’s author should know. Then, here can come:
    &lt;ul&gt;
      &lt;li&gt;Suggestions that could improve the quality of the code (optmize, refactor etc).&lt;/li&gt;
      &lt;li&gt;Scenarios of test not implement that might be and so on.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These are the main points, hence they come first. The other points could follow them.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Additional information that could be interesting for the PR’s author.&lt;/li&gt;
  &lt;li&gt;References to commits of contributions that I made (if they exist).&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;As you may notice, this method could be bureaucratic for simple PR’s, so try to extract only the relevant points for your context. For example, only do the steps 3 and 5, change step’s order etc.&lt;/p&gt;

&lt;p&gt;My context is back-end web development, dealing with tasks to provide rolling releases for a SaaS, without dedicated QAs nor testers in the team and also without CI/CD setup. In this context, it has been useful, not in all, but in a bunch of PR’s code reviews.&lt;/p&gt;

&lt;p&gt;In general, if you want to understand in details the PR’s implementation, I think it is a thorough method.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Testing Redragon Diomedes&apos; Microphone</title>
    <link href="https://joaovaporto.blog/2024/01/23/testing-diomedes.html" rel="alternate" type="text/html"/>
    <id>https://joaovaporto.blog/2024/01/23/testing-diomedes.html</id>
    <published>2024-01-23T00:00:00+00:00</published>
    <updated>2024-01-23T00:00:00+00:00</updated>
    <author><name>João Porto</name></author>
    <summary type="html">A simple and amateur test of the Redragon Diomedes headset’s microphone.</summary>
    <content type="html" xml:base="https://joaovaporto.blog/2024/01/23/testing-diomedes.html">&lt;p&gt;&lt;em&gt;A simple and amateur test of the Redragon Diomedes headset’s microphone.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;motivation&quot;&gt;Motivation&lt;/h2&gt;

&lt;p&gt;Recently I were wondering if I need buy a new microphone. Before buy, I have decided test my current microphone to understand if the buy is needed or not.&lt;/p&gt;

&lt;h2 id=&quot;test-setup&quot;&gt;Test setup&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Device&lt;/strong&gt;: &lt;a href=&quot;https://www.redragon.com.br/diomedes&quot;&gt;Redragon Diomedes Gaming Headset&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OS&lt;/strong&gt;: Ubuntu 20.04.6 LTS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Audio recorder&lt;/strong&gt;: &lt;a href=&quot;https://online-voice-recorder.com/&quot;&gt;online-voice-recorder&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Audio player&lt;/strong&gt;: Google Chrome 121.0.6167.85.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ubuntu’s Output Device&lt;/strong&gt;: Headphones - Redragon H388 Gaming Headset.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Headphone Volume&lt;/strong&gt;: 27%. A volume in which I listen well video and music, a balanced volume, not quite low, nor loud.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Grades&lt;/strong&gt;: the grade range is from 1 to 6.&lt;/p&gt;

&lt;h2 id=&quot;tests&quot;&gt;Tests&lt;/h2&gt;

&lt;p&gt;While testing the microphone, I discovered that there is a USB card adapter that cames with it. So I tested with and without the card adapter.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Test&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;USB 7.1 Card Adapter&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Mic Volume&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Ubuntu’s Input Device&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Grade&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Comments&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/1ZprrUg-9X-JMvXqptLJw9czGQi7ZSDxC/view?usp=sharing&quot;&gt;1&lt;/a&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;off&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;50%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Headset Mono Microphone&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;5&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The voice is clear. It is possible listen little noises in the background.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/1AU10Gf-4v59-RQjdmrWQpZeXCFUm9mIi/view?usp=sharing&quot;&gt;2&lt;/a&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;off&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;100%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Headset Mono Microphone&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;3&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The voice is clear and more loud, but there is a background noise that reduces the perception of quality.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/14wsyRNmK-7ERuW7bJoJUFH6zwgvOj72n/view?usp=sharing&quot;&gt;3&lt;/a&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;off&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;50%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Headphones Stereo Microphone&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The voice is muffled and low, almost inaudible. Not could be used.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/1O7tKm5CD05tHWO7C0qQ4699AcQzak9yN/view?usp=sharing&quot;&gt;4&lt;/a&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;off&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;100%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Headphones Stereo Microphone&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;2&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The voice is muffled and low, almost inaudible. Not could be used.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/1f1IVnuI6o8U-ZhahEi81XTN7krb4G9R_/view?usp=sharing&quot;&gt;5&lt;/a&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;on&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;50%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Redragon H388 Gaming Headset&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;2&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The voice is clear, but very low, almost inaudible. Not could be used.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/1HoJUGHbXvLoX1KRSG-dRguSio2YLRdi7/view?usp=sharing&quot;&gt;6&lt;/a&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;on&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;100%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Redragon H388 Gaming Headset&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;3&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The voice is very clear, but low. Seems that theres is no background noise. Apparently there is some ‘glitches’.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/1BlplBFWiQxrakOlnyrtYcfZJasRlUZXU/view?usp=sharing&quot;&gt;7&lt;/a&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;on&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;50%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Multichannel - Redragon H388 Gaming Headset&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;1&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The voice is inaudible. Not could be used.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/1Y2EErKNq9ZHFUH12gIwqxkA-G_Fsk1ns/view?usp=sharing&quot;&gt;8&lt;/a&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;on&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;100%&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Multichannel - Redragon H388 Gaming Headset&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;4&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The voice is clear, but very low in comparison with test 1. Seems not have background noise. Apparently some little ‘glitches’.&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;The audios generated with the card adapter seems better, mainly because there is no loud background noise, therefore improving the general perception of quality.&lt;/p&gt;

&lt;p&gt;Despite the better quality, the audios generated with card adapter are low.&lt;/p&gt;

&lt;p&gt;However, I think that is possible to solve this problem setting the gain property of the microphone, which is different from the microphone volume, which was the property that I set in these tests.&lt;/p&gt;

&lt;p&gt;Since the microphone’s audio using the card adapter has a good quality for me, I will keep the Diomedes headset’s microphone and not buy anything else.&lt;/p&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;p&gt;TJ Gaming. “NOVO HEADSET GAMER 7.1 BARATINHO DA REDRAGON - DIOMEDES H388.” Www.youtube.com, 24 Feb. 2023, &lt;a href=&quot;https://www.youtube.com/watch?v=prkWKRZOT28&amp;amp;ab_channel=TJGaming&quot;&gt;www.youtube.com/watch?v=prkWKRZOT28&amp;amp;ab_channel=TJGaming&lt;/a&gt;. Accessed 23 Jan. 2024.&lt;/p&gt;

&lt;p&gt;PipocaTech - Tech Reviews. “DIOMEDES H388: O Novo REI Do CUSTO-BENEFÍCIO! A REDRAGON Fez Um MILAGRE Com Esse HEADSET GAMER!” Www.youtube.com, 13 Jan. 2023, &lt;a href=&quot;https://www.youtube.com/watch?v=BF8gaMMH8YI&amp;amp;ab_channel=PipocaTech&quot;&gt;www.youtube.com/watch?v=BF8gaMMH8YI&amp;amp;ab_channel=PipocaTech&lt;/a&gt;. Accessed 23 Jan. 2024.&lt;/p&gt;

&lt;p&gt;Connaghan, Tyler. “What Is Gain &amp;amp; How It Differs from Volume.” Emastered.com, 22 Aug. 2021, &lt;a href=&quot;https://emastered.com/blog/what-is-gain&quot;&gt;emastered.com/blog/what-is-gain&lt;/a&gt;. Accessed 23 Jan. 2024.&lt;/p&gt;

&lt;p&gt;Simmons, Greg. “Microphones: Levels &amp;amp; Gain.” AudioTechnology, 8 Feb. 2022, &lt;a href=&quot;https://www.audiotechnology.com/tutorials/microphones-levels-gain&quot;&gt;www.audiotechnology.com/tutorials/microphones-levels-gain&lt;/a&gt;. Accessed 29 Jan. 2024.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Cleaning up an Ubuntu OS</title>
    <link href="https://joaovaporto.blog/2023/11/30/cleaning-ubuntu-storage.html" rel="alternate" type="text/html"/>
    <id>https://joaovaporto.blog/2023/11/30/cleaning-ubuntu-storage.html</id>
    <published>2023-11-30T00:00:00+00:00</published>
    <updated>2023-11-30T00:00:00+00:00</updated>
    <author><name>João Porto</name></author>
    <summary type="html">Some useful commands to clean up an Ubuntu OS of a coder.</summary>
    <content type="html" xml:base="https://joaovaporto.blog/2023/11/30/cleaning-ubuntu-storage.html">&lt;p&gt;&lt;em&gt;Some useful commands to clean up an Ubuntu OS of a coder.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;motivation&quot;&gt;Motivation&lt;/h2&gt;

&lt;p&gt;Recently I faced problems with my laptop storage. In some point, I couldn’t even create simple text files. So I decided to clean up the storage.&lt;/p&gt;

&lt;h2 id=&quot;exploring-storage-usage&quot;&gt;Exploring storage usage&lt;/h2&gt;

&lt;p&gt;I used the Ubuntu’s tool &lt;a href=&quot;https://apps.gnome.org/en/Baobab/&quot;&gt;Disk Usage Analyzer&lt;/a&gt; to understand where there were extensive use of the storage.&lt;/p&gt;

&lt;p&gt;Additionally, I used the following command to check a current folder size:&lt;/p&gt;
&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;du&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-hs&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And the following to check the devices usage:&lt;/p&gt;
&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-h&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Besides some obvious files that I already knew that were really large and I moved to my Drive, I saw that the following folders were huge (is not sorted by size):&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/var/log/journal&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.config/Code&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.config/google-chrome&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.../.git&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also, I checked the applications installed in the laptop, verifying whether make sense or not to keep them installed.&lt;/p&gt;
&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;apt list &lt;span class=&quot;nt&quot;&gt;--installed&lt;/span&gt;
foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;snap list
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Finally, I had a suspicion that Docker images also were contributing to the problem.&lt;/p&gt;

&lt;h2 id=&quot;cleaning-up-journal-logs&quot;&gt;Cleaning up journal logs&lt;/h2&gt;

&lt;p&gt;Journal, as far as I remember, is a Linux’s feature that keeps the OS consistent in the case of sudden shutdowns.&lt;/p&gt;

&lt;p&gt;I wondered whether was safe or not remove these logs, so I searched about that and apparently &lt;a href=&quot;https://ansiblepilot.medium.com/managing-journal-logs-in-fedora-can-i-remove-files-in-var-log-journal-83cc59e7a8cc#:~:text=Yes%2C%20you%20can%20safely%20delete,should%20not%20delete%20the%20directory.&quot;&gt;is safe&lt;/a&gt;. (3 months since the last clean up and no problem.)&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;journalctl &lt;span class=&quot;nt&quot;&gt;--disk-usage&lt;/span&gt;
foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;journalctl &lt;span class=&quot;nt&quot;&gt;--rotate&lt;/span&gt;
foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;journalctl &lt;span class=&quot;nt&quot;&gt;--vacuum-time&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;2days
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In short words, the first command print the journal log’s usage and the others are used to clean up. You can find a good explanation about these commands &lt;a href=&quot;https://ubuntuhandbook.org/index.php/2020/12/clear-systemd-journal-logs-ubuntu/&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The only thing that I can say is that they worked very well.&lt;/p&gt;

&lt;h2 id=&quot;cleaning-up-docker-images&quot;&gt;Cleaning up Docker images&lt;/h2&gt;

&lt;p&gt;There were things as &lt;a href=&quot;https://stackoverflow.com/questions/45142528/what-is-a-dangling-image-and-what-is-an-unused-image&quot;&gt;unused and dangling&lt;/a&gt; images. They occupy space and are not useful for me.&lt;/p&gt;

&lt;p&gt;You can remove dangling images using the following command:&lt;/p&gt;
&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker rmi &lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;docker images &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--filter&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;dangling&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-q&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This command&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Lists all the images&lt;/li&gt;
  &lt;li&gt;Filters dangling images&lt;/li&gt;
  &lt;li&gt;Extracts dangling images ids&lt;/li&gt;
  &lt;li&gt;Removes the dangling images&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And to remove stopped containers:&lt;/p&gt;
&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;docker &lt;span class=&quot;nb&quot;&gt;rm&lt;/span&gt; &lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;docker ps &lt;span class=&quot;nt&quot;&gt;--filter&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;status&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;exited &lt;span class=&quot;nt&quot;&gt;--filter&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;status&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;created &lt;span class=&quot;nt&quot;&gt;-q&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;You can get more details about these commands &lt;a href=&quot;https://forums.docker.com/t/how-to-delete-cache/5753&quot;&gt;here&lt;/a&gt;. Once again, the only thing that I can say is that they worked very well.&lt;/p&gt;

&lt;h2 id=&quot;cleaning-up-vs-codes-workspaces&quot;&gt;Cleaning up VS Code’s Workspaces&lt;/h2&gt;

&lt;p&gt;Maybe is not the reality of everybody, but in the past I used to clone projects to explore them (this changed when I discovered &lt;a href=&quot;https://github.com/features/codespaces&quot;&gt;GitHub Codespaces&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Occurs that even deleting a project’s folder, VS Code keeps data of this project, and this is the why for a so huge &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.config/Code&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;So I found a really useful extension called &lt;a href=&quot;https://marketplace.visualstudio.com/items?itemName=mehyaa.workspace-storage-cleanup&amp;amp;ssr=false#overview&quot;&gt;Workspace Storage Cleanup&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It finds those kind of broken workspaces and provides options to delete them.&lt;/p&gt;

&lt;p&gt;After install the extension, from your VS Code:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;kbd&gt;Ctrl&lt;/kbd&gt; + &lt;kbd&gt;Shift&lt;/kbd&gt; + &lt;kbd&gt;p&lt;/kbd&gt;&lt;/li&gt;
  &lt;li&gt;Search for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Workspaces: Cleanup Storage&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;Toggle folder missing&lt;/li&gt;
  &lt;li&gt;Delete Selected&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;cleaning-up-unnecessary-applications&quot;&gt;Cleaning up unnecessary applications&lt;/h2&gt;

&lt;p&gt;You can remove applications installed with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;apt&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;snap&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For example, I removed Discord that was installed with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;apt&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt remove &lt;span class=&quot;nt&quot;&gt;--purge&lt;/span&gt; discord
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Also, you may want to remove all configuration files of already removed apps:&lt;/p&gt;
&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt purge ?config-files
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And I removed Postman that was installed with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;snap&lt;/code&gt;:&lt;/p&gt;
&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;foo@bar:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;snap remove postman
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;chrome-and-git&quot;&gt;Chrome and Git&lt;/h2&gt;

&lt;p&gt;I didn’t find a good and safe way to clean up a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.../.git&lt;/code&gt; folder.&lt;/p&gt;

&lt;p&gt;Finally, Chrome data could be deleted from the GUI, but I thought was not worth it because a lot of cached data is relevant to me.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;As I said early, in the beginning of the clean up process, I could not even create a file, now I have 23 GiB of free space. Is not too much, but is better now.&lt;/p&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;p&gt;M, Ji. “Free up Disk Space – Clear Systemd Journal Logs in Ubuntu 20.04 | 22.04 | UbuntuHandbook.” Ubuntuhandbook.org, 31 July 2023, &lt;a href=&quot;https://ubuntuhandbook.org/index.php/2020/12/clear-systemd-journal-logs-ubuntu/&quot;&gt;ubuntuhandbook.org/index.php/2020/12/clear-systemd-journal-logs-ubuntu&lt;/a&gt;. Accessed 30 Nov. 2023.&lt;/p&gt;

&lt;p&gt;Neff, Andy. “How to Delete Cache?” Docker Community Forums, 21 Jan. 2016, &lt;a href=&quot;https://forums.docker.com/t/how-to-delete-cache/5753&quot;&gt;forums.docker.com/t/how-to-delete-cache/5753&lt;/a&gt;. Accessed 30 Nov. 2023.&lt;/p&gt;

&lt;p&gt;Morm, Serey. “What Is a Dangling Image and What Is an Unused Image?” Stack Overflow, 17 July 2017, &lt;a href=&quot;https://stackoverflow.com/questions/45142528/what-is-a-dangling-image-and-what-is-an-unused-image&quot;&gt;stackoverflow.com/questions/45142528/what-is-a-dangling-image-and-what-is-an-unused-image&lt;/a&gt;. Accessed 30 Jan. 2023.&lt;/p&gt;

&lt;p&gt;“How to Clear Git Cache | Learn Git Clear Cache in Different Ways – Junos Notes.” Junos Notes, 22 Oct. 2023, &lt;a href=&quot;https://www.junosnotes.com/git/how-to-clear-git-cache/#:~:text=To%20clear%20your%20entire%20Git&quot;&gt;www.junosnotes.com/git/how-to-clear-git-cache/#:~:text=To%20clear%20your%20entire%20Git&lt;/a&gt;. Accessed 30 Nov. 2023.&lt;/p&gt;

&lt;p&gt;git-scm.com. “Git - Git-Rm Documentation.” Git-Scm.com, &lt;a href=&quot;https://git-scm.com/docs/git-rm#Documentation/git-rm&quot;&gt;git-scm.com/docs/git-rm#Documentation/git-rm&lt;/a&gt;.txt—cached. Accessed 30 Nov. 2023.&lt;/p&gt;

&lt;p&gt;starball. “What Are the Effects of Clearing the WorkspaceStorage Folder for Visual Studio Code?” Stack Overflow, 7 Mar. 2023, &lt;a href=&quot;https://stackoverflow.com/questions/61056128/what-are-the-effects-of-clearing-the-workspacestorage-folder-for-visual-studio-c&quot;&gt;stackoverflow.com/questions/61056128/what-are-the-effects-of-clearing-the-workspacestorage-folder-for-visual-studio-c&lt;/a&gt;. Accessed 30 Nov. 2023.&lt;/p&gt;

&lt;p&gt;Charlie, Leger. “How to Use the Extension · Issue #6 · Mehyaa/Vscode-Workspace-Storage-Cleanup.” GitHub, 7 July 2023, &lt;a href=&quot;https://github.com/mehyaa/vscode-workspace-storage-cleanup/issues/6&quot;&gt;github.com/mehyaa/vscode-workspace-storage-cleanup/issues/6&lt;/a&gt;. Accessed 30 Nov. 2023.&lt;/p&gt;

&lt;p&gt;Wikipedia contributors. “Disk Usage Analyzer.” Wikipedia, 20 Aug. 2022, &lt;a href=&quot;https://en.wikipedia.org/wiki/Disk_Usage_Analyzer&quot;&gt;en.wikipedia.org/wiki/Disk_Usage_Analyzer&lt;/a&gt;. Accessed 29 Jan. 2024.&lt;/p&gt;

&lt;p&gt;Linuxopsys. “How to List Installed Packages by Size on Ubuntu.” LinuxOPsys, 3 Sept. 2022, &lt;a href=&quot;https://linuxopsys.com/topics/list-installed-packages-by-size-on-ubuntu#:~:text=You%20can%20also%20use%20the&quot;&gt;linuxopsys.com/topics/list-installed-packages-by-size-on-ubuntu#:~:text=You%20can%20also%20use%20the&lt;/a&gt;. Accessed 29 Jan. 2024.&lt;/p&gt;

&lt;p&gt;Pilot, Ansible. “Managing Journal Logs in Fedora: Can I Remove Files in /Var/Log/Journal?” Medium, 20 Nov. 2023, &lt;a href=&quot;https://ansiblepilot.medium.com/managing-journal-logs-in-fedora-can-i-remove-files-in-var-log-journal-83cc59e7a8cc#:~:text=Yes%2C%20you%20can%20safely%20delete&quot;&gt;ansiblepilot.medium.com/managing-journal-logs-in-fedora-can-i-remove-files-in-var-log-journal-83cc59e7a8cc#:~:text=Yes%2C%20you%20can%20safely%20delete&lt;/a&gt;. Accessed 29 Jan. 2024.&lt;/p&gt;

&lt;p&gt;nobody. “What Exactly Does “Apt Purge ?Config-Files” Do?” Unix &amp;amp; Linux Stack Exchange, 12 Oct. 2023, unix.&lt;a href=&quot;https://stackexchange.com/questions/758736/what-exactly-does-apt-purge-config-files-do#:~:text=When%20you%20do%20a%20apt&quot;&gt;stackexchange.com/questions/758736/what-exactly-does-apt-purge-config-files-do#:~:text=When%20you%20do%20a%20apt&lt;/a&gt;. Accessed 29 Jan. 2024.&lt;/p&gt;
</content>
  </entry>
</feed>

