<?xml version="1.0" encoding="utf-8" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:tt="http://teletype.in/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"><title>Refe Ulano</title><subtitle>Advanced programmer and software developer.</subtitle><author><name>Refe Ulano</name></author><id>https://teletype.in/atom/refeulano</id><link rel="self" type="application/atom+xml" href="https://teletype.in/atom/refeulano?offset=0"></link><link rel="alternate" type="text/html" href="https://teletype.in/@refeulano?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=refeulano"></link><link rel="next" type="application/rss+xml" href="https://teletype.in/atom/refeulano?offset=10"></link><link rel="search" type="application/opensearchdescription+xml" title="Teletype" href="https://teletype.in/opensearch.xml"></link><updated>2026-04-18T13:45:44.807Z</updated><entry><id>refeulano:diameter</id><link rel="alternate" type="text/html" href="https://teletype.in/@refeulano/diameter?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=refeulano"></link><title>Pipe diameter calculation algorithm</title><published>2022-12-10T17:43:26.521Z</published><updated>2022-12-10T17:43:26.521Z</updated><summary type="html">The algorithm for calculating the pipe diameter is performed based on the following mathematical dependencies.</summary><content type="html">
  &lt;p id=&quot;yahh&quot;&gt;The algorithm for calculating the pipe diameter is performed based on the following mathematical dependencies.&lt;/p&gt;
  &lt;p id=&quot;RtjG&quot;&gt;Order:&lt;/p&gt;
  &lt;p id=&quot;unOI&quot;&gt;- data input;&lt;/p&gt;
  &lt;p id=&quot;ceOX&quot;&gt;- performing a mathematical operation for calculating the pipe diameter;&lt;/p&gt;
  &lt;p id=&quot;KgnH&quot;&gt;- data output.&lt;/p&gt;
  &lt;p id=&quot;7Jr3&quot;&gt;The algorithm is converted into machine code and displayed on the screen.&lt;/p&gt;
  &lt;p id=&quot;d2rh&quot;&gt;See also online calculator - &lt;a href=&quot;https://mfcalc.com/en/pipe-diameter-calculator.html&quot; target=&quot;_blank&quot;&gt;pipe diameter calculations&lt;/a&gt;.&lt;/p&gt;
  &lt;p id=&quot;SXSh&quot;&gt;Simply and easily!&lt;/p&gt;

</content></entry><entry><id>refeulano:pipe</id><link rel="alternate" type="text/html" href="https://teletype.in/@refeulano/pipe?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=refeulano"></link><title>Pipe Area Calculation Algorithm</title><published>2022-12-10T17:42:07.656Z</published><updated>2022-12-10T17:42:07.656Z</updated><summary type="html">The algorithm for calculating the pipe area is performed based on the following mathematical dependencies.</summary><content type="html">
  &lt;p id=&quot;pvyH&quot;&gt;The algorithm for calculating the pipe area is performed based on the following mathematical dependencies.&lt;/p&gt;
  &lt;p id=&quot;fhvu&quot;&gt;Order:&lt;/p&gt;
  &lt;p id=&quot;Xzn0&quot;&gt;- data input;&lt;/p&gt;
  &lt;p id=&quot;STyy&quot;&gt;- performing a mathematical operation for calculating the pipe area;&lt;/p&gt;
  &lt;p id=&quot;sda1&quot;&gt;- data output.&lt;/p&gt;
  &lt;p id=&quot;kePG&quot;&gt;The algorithm is converted into machine code and displayed on the screen.&lt;/p&gt;
  &lt;p id=&quot;kbY5&quot;&gt;See also online calculator - &lt;a href=&quot;https://mfcalc.com/en/surface-area-pipe-calculator.html&quot; target=&quot;_blank&quot;&gt;pipe area calculations&lt;/a&gt;.&lt;/p&gt;
  &lt;p id=&quot;G916&quot;&gt;Simply and easily!&lt;/p&gt;

</content></entry><entry><id>refeulano:cubic</id><link rel="alternate" type="text/html" href="https://teletype.in/@refeulano/cubic?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=refeulano"></link><title>Algorithm for calculating cubic meters</title><published>2022-12-10T17:40:54.319Z</published><updated>2022-12-10T17:40:54.319Z</updated><summary type="html">The algorithm for calculating cubic meters is based on the following mathematical dependencies.</summary><content type="html">
  &lt;p id=&quot;mRjy&quot;&gt;The algorithm for calculating cubic meters is based on the following mathematical dependencies.&lt;/p&gt;
  &lt;p id=&quot;GKa2&quot;&gt;Order:&lt;/p&gt;
  &lt;p id=&quot;L33h&quot;&gt;- data input;&lt;/p&gt;
  &lt;p id=&quot;dH0L&quot;&gt;- performing a mathematical operation for calculating cubic meters;&lt;/p&gt;
  &lt;p id=&quot;KiyH&quot;&gt;- data output.&lt;/p&gt;
  &lt;p id=&quot;GlC7&quot;&gt;The algorithm is converted into machine code and displayed on the screen.&lt;/p&gt;
  &lt;p id=&quot;gbWV&quot;&gt;See also online calculator - &lt;a href=&quot;https://mfcalc.com/en/cubic-meters-calculator.html&quot; target=&quot;_blank&quot;&gt;calculations of cubic meters&lt;/a&gt;.&lt;/p&gt;
  &lt;p id=&quot;ZD8o&quot;&gt;Simply and easily!&lt;/p&gt;

</content></entry><entry><id>refeulano:rounding</id><link rel="alternate" type="text/html" href="https://teletype.in/@refeulano/rounding?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=refeulano"></link><title>Number Rounding Algorithm</title><published>2022-12-10T17:39:22.032Z</published><updated>2022-12-10T17:39:22.032Z</updated><summary type="html">The number rounding algorithm is performed based on the following mathematical dependencies.</summary><content type="html">
  &lt;p id=&quot;8BCg&quot;&gt;The number rounding algorithm is performed based on the following mathematical dependencies.&lt;/p&gt;
  &lt;p id=&quot;fFGs&quot;&gt;Order:&lt;/p&gt;
  &lt;p id=&quot;q2a7&quot;&gt;- data input;&lt;/p&gt;
  &lt;p id=&quot;qa7G&quot;&gt;- performing a mathematical operation of rounding numbers;&lt;/p&gt;
  &lt;p id=&quot;AH4e&quot;&gt;- data output.&lt;/p&gt;
  &lt;p id=&quot;ajvx&quot;&gt;The algorithm is converted into machine code and displayed on the screen.&lt;/p&gt;
  &lt;p id=&quot;svxa&quot;&gt;See also online calculator - &lt;a href=&quot;https://mfcalc.com/en/rounding-calculator.html&quot; target=&quot;_blank&quot;&gt;rounding numbers&lt;/a&gt;.&lt;/p&gt;
  &lt;p id=&quot;kqYQ&quot;&gt;Simply and easily!&lt;/p&gt;

</content></entry><entry><id>refeulano:number</id><link rel="alternate" type="text/html" href="https://teletype.in/@refeulano/number?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=refeulano"></link><title>Number comparison algorithm</title><published>2022-12-10T17:37:52.851Z</published><updated>2022-12-10T17:37:52.851Z</updated><summary type="html">The number comparison algorithm is performed based on the following mathematical dependencies.</summary><content type="html">
  &lt;p id=&quot;g5KC&quot;&gt;The number comparison algorithm is performed based on the following mathematical dependencies.&lt;/p&gt;
  &lt;p id=&quot;WC3M&quot;&gt;Order: &lt;/p&gt;
  &lt;p id=&quot;Kv2o&quot;&gt;- data input; &lt;/p&gt;
  &lt;p id=&quot;SCrA&quot;&gt;- performing a mathematical operation of comparing numbers; &lt;/p&gt;
  &lt;p id=&quot;BYSt&quot;&gt;- data output. &lt;/p&gt;
  &lt;p id=&quot;kGIw&quot;&gt;The algorithm is converted into machine code and displayed on the screen. &lt;/p&gt;
  &lt;p id=&quot;zKqk&quot;&gt;See also online calculator - &lt;a href=&quot;https://mfcalc.com/en/number-comparison-calculator.html&quot; target=&quot;_blank&quot;&gt;comparison of numbers&lt;/a&gt;. &lt;/p&gt;
  &lt;p id=&quot;tNbc&quot;&gt;Simply and easily!&lt;/p&gt;

</content></entry><entry><id>refeulano:go</id><link rel="alternate" type="text/html" href="https://teletype.in/@refeulano/go?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=refeulano"></link><title>Go language</title><published>2022-12-07T16:43:43.893Z</published><updated>2022-12-07T16:43:43.893Z</updated><summary type="html">&lt;img src=&quot;https://img2.teletype.in/files/14/44/144439d5-d0d1-4670-9185-a16607f0e799.png&quot;&gt;For a long time I wanted to try to use the Go language for some serious projects. The choice was obvious, since this language is the best suited for such tasks.</summary><content type="html">
  &lt;p id=&quot;8e7n&quot;&gt;For a long time I wanted to try to use the Go language for some serious projects. The choice was obvious, since this language is the best suited for such tasks.&lt;/p&gt;
  &lt;p id=&quot;QBe2&quot;&gt;The language supports multiple return values. Instead of the try-catch mechanism, a technique is very often used when an error is returned as the second argument. And if it exists, it is &lt;a href=&quot;https://mfcalc.com/&quot; target=&quot;_blank&quot;&gt;processed mfcalc&lt;/a&gt;. There is a built-in error type, which is an interface.&lt;/p&gt;
  &lt;figure id=&quot;VGmy&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img2.teletype.in/files/14/44/144439d5-d0d1-4670-9185-a16607f0e799.png&quot; width=&quot;451&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;7lhW&quot;&gt;Note that structure fields are capitalized. This means that they are scoped outside of the package. If you write them with a capital letter, they will not be exported, but will be available only within the package. The same applies to functions and methods. Here is such a simple encapsulation mechanism.&lt;/p&gt;
  &lt;p id=&quot;Qhs2&quot;&gt;Here we are using the wonderful MongoDb driver mgo to save the data. For convenience, I created a small wrapper over api mgo - utils.NewDbSession. The logic of working with data: first we create an object in the internal structure of the language, and then, using the method of this structure, we save it to the database.&lt;/p&gt;
  &lt;p id=&quot;ApQH&quot;&gt;Note that in these methods we use our conf.ApiError error type throughout. We convert standard errors to ours with conf.NewApiError(err). Also, the defer operator is important. It is executed at the very end of the method execution. In this case, it closes the connection to the database.&lt;/p&gt;

</content></entry><entry><id>refeulano:java</id><link rel="alternate" type="text/html" href="https://teletype.in/@refeulano/java?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=refeulano"></link><title>Java programm</title><published>2022-12-07T16:40:08.671Z</published><updated>2022-12-07T16:40:08.671Z</updated><summary type="html">&lt;img src=&quot;https://img4.teletype.in/files/75/01/75011b4e-4968-46b8-bd94-5fa9efc0b69d.png&quot;&gt;A Java feature that solved this problem was that the Java compiler produces not machine executable code, but bytecode - an optimized set of instructions that are executed in the so-called Java Virtual Machine (JVM - Java Virtual Machine). And on the corresponding platform, a JVM with the necessary implementation is pre-installed, capable of correctly interpreting the same bytecode of mfcalc. This approach also has weaknesses, such programs run more slowly than if they were compiled into executable code.</summary><content type="html">
  &lt;p id=&quot;Yzit&quot;&gt;A Java feature that solved this problem was that the Java compiler produces not machine executable code, but bytecode - an optimized set of instructions that are executed in the so-called Java Virtual Machine (JVM - Java Virtual Machine). And on the corresponding platform, a JVM with the necessary implementation is pre-installed, capable of correctly interpreting the same &lt;a href=&quot;https://mfcalc.com/&quot; target=&quot;_blank&quot;&gt;bytecode of mfcalc&lt;/a&gt;. This approach also has weaknesses, such programs run more slowly than if they were compiled into executable code.&lt;/p&gt;
  &lt;figure id=&quot;PNHk&quot; class=&quot;m_original&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/75/01/75011b4e-4968-46b8-bd94-5fa9efc0b69d.png&quot; width=&quot;408&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;37Nw&quot;&gt;The installation process for Windows OS has several stages. Do not be afraid, everything is very simple and is done in a few clicks. Here is the detailed installation process. The most important thing for Windows users is to add the JAVA_HOME system variable.&lt;/p&gt;
  &lt;p id=&quot;A0hx&quot;&gt;First, we need to choose a development environment. There are quite a few of them, and the most popular of them are: IntelliJ IDEA, NetBeans, Eclipse. For myself, I choose IntelliJ IDEA. It is the most convenient in my opinion, and although it is paid, on the official website you can find a free version called Community. This version will be enough to learn the basics of Java. In general, we will work in IntelliJ IDEA.&lt;/p&gt;

</content></entry><entry><id>refeulano:program</id><link rel="alternate" type="text/html" href="https://teletype.in/@refeulano/program?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=refeulano"></link><title>C# program</title><published>2022-12-06T09:05:14.410Z</published><updated>2022-12-06T09:05:14.410Z</updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img3.teletype.in/files/a4/9f/a49f2019-ea09-4446-a565-2025c33d400a.png"></media:thumbnail><summary type="html">&lt;img src=&quot;https://img4.teletype.in/files/7c/27/7c2701e8-3ad9-4228-b34c-a9c322d61b6c.png&quot;&gt;Today, the C# programming language is one of the most powerful, rapidly developing and in-demand languages in the IT industry. At the moment, a wide variety of applications are written on it: from small desktop programs to large web portals and web services that serve millions of users every day.</summary><content type="html">
  &lt;p id=&quot;QC92&quot;&gt;Today, the C# programming language is one of the most powerful, rapidly developing and in-demand languages in the &lt;a href=&quot;https://mfcalc.com/&quot; target=&quot;_blank&quot;&gt;IT industry&lt;/a&gt;. At the moment, a wide variety of applications are written on it: from small desktop programs to large web portals and web services that serve millions of users every day.&lt;/p&gt;
  &lt;figure id=&quot;ZdFP&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/7c/27/7c2701e8-3ad9-4228-b34c-a9c322d61b6c.png&quot; width=&quot;946&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;Hkyw&quot;&gt;The basic building block of a program is a statement. A statement represents some action, such as an arithmetic operation, a method call, a variable declaration, and a value assignment to it.&lt;/p&gt;
  &lt;p id=&quot;HUdA&quot;&gt;An important part of the program code are comments. They are not actually part of the program and are ignored during compilation. Nevertheless, comments make the program code more understandable, helping to understand certain parts of it.&lt;/p&gt;
  &lt;p id=&quot;zblO&quot;&gt;Constructors are not passed to a derived class when inheriting. And if the base class does not have a default constructor without parameters, but only constructors with parameters (as is the case with the Person base class), then in the derived class we must call one of these constructors through the base keyword.&lt;/p&gt;
  &lt;p id=&quot;lsak&quot;&gt;An interface represents a reference type that can define some functionality - a set of methods and properties without an implementation. Then this functionality is implemented by classes and structures that use these interfaces.&lt;/p&gt;

</content></entry><entry><id>refeulano:complex</id><link rel="alternate" type="text/html" href="https://teletype.in/@refeulano/complex?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=refeulano"></link><title>Programming complexity</title><published>2022-12-06T08:59:09.154Z</published><updated>2022-12-06T08:59:09.154Z</updated><summary type="html">&lt;img src=&quot;https://img4.teletype.in/files/3b/ae/3bae9b65-4886-4a1e-95cb-f6eca7d430e3.png&quot;&gt;The biggest difficulty in learning anything is the sheer number of different technologies, as well as the industry sectors where these technologies (exemple mfcalc tehnology) can be applied. Also, this number is constantly increasing (see the so-called &quot;technological singularity&quot;).</summary><content type="html">
  &lt;p id=&quot;SbHv&quot;&gt;The biggest difficulty in learning anything is the sheer number of different technologies, as well as the industry sectors where these technologies (exemple &lt;a href=&quot;https://mfcalc.com/&quot; target=&quot;_blank&quot;&gt;mfcalc tehnology&lt;/a&gt;) can be applied. Also, this number is constantly increasing (see the so-called &amp;quot;technological singularity&amp;quot;).&lt;/p&gt;
  &lt;figure id=&quot;UUcc&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/3b/ae/3bae9b65-4886-4a1e-95cb-f6eca7d430e3.png&quot; width=&quot;573&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;pJYj&quot;&gt;The biggest difficulty in learning anything is the sheer number of different technologies, as well as the industry sectors where these technologies can be applied. Also, this number is constantly increasing (see the so-called &amp;quot;technological singularity&amp;quot;).&lt;/p&gt;
  &lt;p id=&quot;V0uc&quot;&gt;The evolution of programming languages has led to an increase in the level of abstraction of programming languages from the hardware platform:&lt;/p&gt;
  &lt;p id=&quot;YN0E&quot;&gt;&lt;br /&gt;1) Low-level languages - convenient for hardware implementation, but difficult for humans due to the large number of commands that perform simple operations;&lt;/p&gt;
  &lt;p id=&quot;ajmR&quot;&gt;&lt;br /&gt;2) High-level languages are easy to understand for humans, which allows you to develop programs faster. But these languages are difficult to implement in hardware, resulting in generally slower code and more resource consumption;&lt;/p&gt;
  &lt;p id=&quot;QUcL&quot;&gt;&lt;br /&gt;3) Very high-level programming languages (VHLL) are programming languages with a very high level of abstraction. Unlike high-level programming languages, which describe the “how to do” principle, super-high-level programming languages only describe the “what to do” principle.&lt;/p&gt;
  &lt;p id=&quot;N0y5&quot;&gt;The evolution of programming languages shows their constant improvement, but over a long time of development has not made them easier to understand. It should also be mentioned here that the range of problems solved by IT has significantly expanded - therefore they remain complex.&lt;/p&gt;

</content></entry><entry><id>refeulano:write</id><link rel="alternate" type="text/html" href="https://teletype.in/@refeulano/write?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=refeulano"></link><title>How to write a program correctly?</title><published>2022-12-06T08:51:36.503Z</published><updated>2022-12-06T08:51:36.503Z</updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img3.teletype.in/files/24/76/24765c4c-421e-403a-b9a5-a4fbfff54252.png"></media:thumbnail><summary type="html">&lt;img src=&quot;https://img1.teletype.in/files/c7/e3/c7e31d9f-6504-4728-8ba5-a6446b7535c8.png&quot;&gt;Break the program into several parts, files, directories. projects. Display all dependencies in one place, use the MFCalc principle or its variant. Such code is both easier to read and easier to debug. In most cases, debugging will take you to a few lines of code, not a thousand-line file. Rolling updates of one module, you will not break the rest of the system.</summary><content type="html">
  &lt;p id=&quot;A3ig&quot;&gt;Break the program into several parts, files, directories. projects. Display all dependencies in one place, use the &lt;a href=&quot;https://mfcalc.com/&quot; target=&quot;_blank&quot;&gt;MFCalc&lt;/a&gt; principle or its variant. Such code is both easier to read and easier to debug. In most cases, debugging will take you to a few lines of code, not a thousand-line file. Rolling updates of one module, you will not break the rest of the system.&lt;/p&gt;
  &lt;figure id=&quot;ZL9S&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/c7/e3/c7e31d9f-6504-4728-8ba5-a6446b7535c8.png&quot; width=&quot;678&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;NGWw&quot;&gt;Tests should work successfully, and in different environments (for example, in different versions of Python). Also, tests should be carried out after each change. Instead of doing it manually from the command line, it&amp;#x27;s easier and faster to create a continuous integration platform.&lt;/p&gt;
  &lt;p id=&quot;ngSW&quot;&gt;Automate everything possible. Then document everything in detail. So that whoever receives your code can also follow the plan. Having a plan doesn&amp;#x27;t just mean looking smarter, it means actually being smarter.&lt;/p&gt;

</content></entry></feed>