<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rafael Guzman on Medium]]></title>
        <description><![CDATA[Stories by Rafael Guzman on Medium]]></description>
        <link>https://medium.com/@rega1237?source=rss-a5fc60633160------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hQMon4kR8ApkUMD1GYxKVg.jpeg</url>
            <title>Stories by Rafael Guzman on Medium</title>
            <link>https://medium.com/@rega1237?source=rss-a5fc60633160------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 23:39:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rega1237/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Back to the basics: Ruby and the OOP principles]]></title>
            <link>https://medium.com/@rega1237/back-to-the-basics-ruby-and-the-oop-principles-3d842daa5729?source=rss-a5fc60633160------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d842daa5729</guid>
            <category><![CDATA[object-oriented-program]]></category>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[principles]]></category>
            <dc:creator><![CDATA[Rafael Guzman]]></dc:creator>
            <pubDate>Mon, 24 Apr 2023 15:31:19 GMT</pubDate>
            <atom:updated>2023-04-24T15:31:19.753Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gXehyiAllAlD3qD-NZvNHw.png" /></figure><p>Greetings to everyone, reading and preparing for interviews a common topic I read almost always in the required section for a job as a software developer is they ask for a strong fundamental with the object-oriented program paradigm in my case my principal object-oriented program is Ruby so I encourage myself to write so I can share with you guys why I learned because I think the best way to learn is teaching so maybe most of you know these things but still out there there are many newbies like me not so long ago so anyway let’s get started!</p><p>First, Object-oriented programming (OOP) is a popular programming paradigm that emphasizes using objects and classes to structure code. Ruby is a dynamically typed, interpreted programming language that supports OOP. This article will explore the five principles of OOP in Ruby with some examples for better understanding.</p><ol><li><strong>Encapsulation</strong> is the process of hiding the internal workings of an object from the outside world. This means that the object’s data and methods can only be accessed through a public interface. In Ruby, encapsulation is achieved through the use of access modifiers such as public, private, and protected.</li></ol><pre>class BankAccount<br>  attr_reader :balance<br><br>  def initialize(balance)<br>    @balance = balance<br>  end<br><br>  def deposit(amount)<br>    @balance += amount<br>  end<br><br>  private<br><br>  def withdraw(amount)<br>    @balance -= amount<br>  end<br>end<br><br>account = BankAccount.new(1000)<br>account.deposit(500)<br>puts account.balance # Output: 1500<br>account.withdraw(200) # Error: private method `withdraw&#39; called</pre><p>In the example above, we have defined a BankAccount class with an attribute reader for the balance. We have also defined a deposit method that can be used to add funds to the account. The withdrawal method is marked as private, which means it cannot be accessed from outside the class.</p><p>2. <strong>Inheritance</strong> is a mechanism in which one class can inherit properties and methods from another class. The class that is being inherited from is called the superclass, and the class that inherits from it is called the subclass. In Ruby, inheritance is implemented using the &lt; symbol.</p><pre>class Animal<br>  def speak<br>    puts &quot;Animal speaks&quot;<br>  end<br>end<br><br>class Dog &lt; Animal<br>  def speak<br>    puts &quot;Dog barks&quot;<br>  end<br>end<br><br>dog = Dog.new<br>dog.speak # Output: &quot;Dog barks&quot;</pre><p>In the example above, we have defined an Animal class with a speak method. We have also defined a Dog class that inherits from the Animal class and overrides the speak method with its implementation.</p><p>3. <strong>Polymorphism </strong>is the ability of an object to take on many forms. In other words, an object can have different behaviors depending on the context in which it is used. In Ruby, polymorphism is achieved through method overriding and method overloading.</p><pre>class Animal<br>  def speak<br>    puts &quot;Animal speaks&quot;<br>  end<br>end<br><br>class Dog &lt; Animal<br>  def speak<br>    puts &quot;Dog barks&quot;<br>  end<br>end<br><br>class Cat &lt; Animal<br>  def speak<br>    puts &quot;Cat meows&quot;<br>  end<br>end<br><br>animals = [Animal.new, Dog.new, Cat.new]<br><br>animals.each { |animal| animal.speak }<br># Output: &quot;Animal speaks&quot;, &quot;Dog barks&quot;, &quot;Cat meows&quot;</pre><p>In the example above, we have defined an Animal class with a speak method. We have also defined a Dog class and a Cat class that both inherit from the Animal class and override the Speak method with their implementation. We create an array of different types of animals and call the speak method on each one, demonstrating how polymorphism allows objects to behave differently based on their context.</p><p>4. <strong>Abstraction</strong> is the process of simplifying complex systems by breaking them down into smaller, more manageable parts. In OOP, abstraction is achieved through the use of abstract classes and interfaces. In Ruby, abstraction can also be achieved through the use of modules.</p><pre>module Transport<br>  def start<br>    raise NotImplementedError, &quot;Start method not implemented&quot;<br>  end<br><br>  def stop<br>    raise NotImplementedError, &quot;Stop method not implemented&quot;<br>  end<br>end<br><br>class Car<br>  include Transport<br><br>  def start<br>    puts &quot;Car started&quot;<br>  end<br><br>  def stop<br>  puts &quot;Car stopped&quot;<br>  end<br>end<br><br>car = Car.new<br>car.start # Output: &quot;Car started&quot;</pre><p>In the example above, we have defined a Transport module that defines two abstract methods: start and stop. We then include the Transport module in the Car class and implement the start and stop methods. This demonstrates how abstraction can be used to define a set of methods that must be implemented by any class that includes the module.</p><p>5. <strong>Composition</strong> is the process of building complex objects by combining smaller, simpler objects. In other words, objects are composed of other objects. In Ruby, the composition is achieved through object composition, which involves creating objects that have other objects as attributes.</p><pre>class Engine<br>  def start<br>    puts &quot;Engine started&quot;<br>  end<br><br>  def stop<br>    puts &quot;Engine stopped&quot;<br>  end<br>end<br><br>class Car<br>  def initialize(engine)<br>    @engine = engine<br>  end<br><br>  def start<br>    @engine.start<br>  end<br><br>  def stop<br>    @engine.stop<br>  end<br>end<br><br>engine = Engine.new<br>car = Car.new(engine)<br>car.start # Output: &quot;Engine started&quot;</pre><p>In the example above, we have defined an Engine class that has to start and stop methods. We have also defined a Car class that takes an Engine object as a parameter in its constructor. The Car class then delegates the start and stop methods to the Engine object, demonstrating how composition can be used to build more complex objects out of simpler ones.</p><p>In this article, we have explored the five principles of object-oriented programming in Ruby: encapsulation, inheritance, polymorphism, abstraction, and composition. By understanding these principles and how they are implemented in Ruby, you can write more effective and maintainable code that is easier to work with and modify over time.</p><p>I hope this article can help some junior developers at the beginning of him/her adventure!</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d842daa5729" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CI run Rspec test with GitHub actions for your Rails App]]></title>
            <link>https://medium.com/@rega1237/ci-run-rspec-test-with-github-actions-for-your-rails-app-791e319a6996?source=rss-a5fc60633160------2</link>
            <guid isPermaLink="false">https://medium.com/p/791e319a6996</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[test]]></category>
            <category><![CDATA[rspec]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[rails-7]]></category>
            <dc:creator><![CDATA[Rafael Guzman]]></dc:creator>
            <pubDate>Fri, 21 Oct 2022 21:56:51 GMT</pubDate>
            <atom:updated>2022-10-21T22:33:22.300Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZ_jv-xjX_FfJR5fQH_6UQ.png" /></figure><p>When working on the development of a group application, it is normal for errors to occur when merging all the features branches into the main branch, so it is important to apply automated tests before uploading the pull request to the main branch to avoid human errors that can happen to all of us.</p><p>For this, you have surely heard a lot of terms known as CI/CD which is nothing more than the acronym for Continuous Integration and Continuous Delivery.</p><p>For this article/guide we will focus on CI:</p><p>Taking the definition of CI from AWS:</p><blockquote>Continuous integration is focused on automatically building and testing code, as compared to continuous delivery, which automates the entire software release process up to production.</blockquote><p>Now how do we create these automated tests?</p><p>This is where GitHub Actions comes in:</p><blockquote>GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that allows you to automate your build, test, and deployment pipeline.</blockquote><p>Now enough theory, let’s get down to the business of running Rspec tests from GitHub Actions.</p><p>First, let’s create a simple rails 7 application with PostgreSQL as a database.</p><pre>rails new app CI-rails-actions --database=postgresql</pre><p>Now with the rails 7 app we add the gem <em>rspec-rails</em> and other gems in the group test of the gemfile</p><pre># gemfile.rb</pre><pre>group :test do</pre><pre># Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]</pre><pre>gem &#39;ffi&#39;</pre><pre># Testing framework</pre><pre>gem &#39;rails-controller-testing&#39;</pre><pre>gem &#39;rspec-rails&#39;</pre><pre>gem &#39;simplecov&#39;, require: false</pre><pre>gem &quot;capybara&quot;</pre><pre>gem &quot;selenium-webdriver&quot;</pre><pre>gem &quot;webdrivers&quot;</pre><pre>end</pre><p>Now wi run the command to create the spec folder, rails_helper.rb and spec_helper.rb files</p><pre>rails generate rspec:install</pre><p>Before continue we have to configurate the database.yml like this:</p><pre>default: &amp;default</pre><pre>adapter: postgresql</pre><pre>encoding: unicode</pre><pre># For details on connection pooling, see Rails configuration guide</pre><pre># https://guides.rubyonrails.org/configuring.html#database-pooling</pre><pre>pool: &lt;%= ENV.fetch(&quot;RAILS_MAX_THREADS&quot;) { 5 } %&gt;</pre><pre>host: localhost</pre><pre>username: &lt;%= ENV[&quot;POSTGRES_USER&quot;] %&gt;</pre><pre>password: &lt;%= ENV[&quot;POSTGRES_PASSWORD&quot;] %&gt;</pre><p>As you can see I added two env for the POSTGRES_USER and POSTGRES_PASSWORD and set the host as localhost</p><p>To create envirioment variables I use the <a href="https://github.com/laserlemon/figaro">figaro</a> gem</p><p>Create the database and run migrations</p><pre>rails db:create</pre><pre>rails db:migrate</pre><p>Now for test something I gonna create a scaffold for a post model</p><pre>rails g scaffold post title:string body:text</pre><p>Ok now we create a request folder inside spec and create a file with the name post_spec.rb and make a simple test</p><pre>require &#39;rails_helper&#39;</pre><pre>RSpec.describe &#39;Posts&#39;, type: :request do</pre><pre>  describe &#39;GET /index&#39; do</pre><pre>    it &#39;returns http success&#39; do</pre><pre>      get &#39;/posts&#39;</pre><pre>      expect(response).to have_http_status(:success)</pre><pre>    end</pre><pre>    it &#39;show the correct placeholder text&#39; do</pre><pre>      get &#39;/posts&#39;</pre><pre>      expect(response.body).to include(&#39;Post&#39;)</pre><pre>    end</pre><pre>  end</pre><pre>end</pre><p>Now run rspec and see that the test pass in the local envirioment now the cool part create the github actions to run the test as a action whe you make a pull request or push any new code to the repo it’s upo to you!</p><p>Create a new branch before to see the github action in action? hahaha</p><p>To create a Github Action first we need to create a folder called .github (yeah with the dot ‘.’ at the begining) and inside of that folder create another folder with the name workflows and there create a file with the name you want with the extension .yml in my case I called rspec.yml</p><p>Now inside we create the services to create a container like with docker when we create the docker-compose file to create the images to run a service and build the container, the file should look like this:</p><pre>env:<br>  RUBY_VERSION: 3.1.2<br>  POSTGRES_USER: postgres<br>  POSTGRES_PASSWORD: postgres<br>  POSTGRES_DB: rspec_actions_test</pre><pre>name: Rails Specs<br>on: [push,pull_request] #you can decide here if you wanna run on push or pull or simple both<br>jobs:<br>  rspec-test:<br>    name: RSpec<br>    runs-on: ubuntu-20.04<br>    services:<br>      postgres:<br>        image: postgres:latest<br>        ports:<br>        - 5432:5432<br>        env:<br>          POSTGRES_USER: ${{ env.POSTGRES_USER }}<br>          POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }}<br>    steps:<br>      - uses: actions/checkout@v1<br>      - uses: actions/setup-ruby@v1<br>        with:<br>          ruby-version: ${{ env.RUBY_VERSION }}<br>      - name: Install postgres client<br>        run: sudo apt-get install libpq-dev<br>      - name: Install dependencies<br>        run: |<br>          gem install bundler<br>          bundler install<br>      - name: Create database<br>        run: |<br>          bundle exec rails db:create RAILS_ENV=test<br>          bundler exec rails db:migrate RAILS_ENV=test<br>      - name: Run tests<br>        run: bundler exec rspec spec/*<br>      - name: Upload coverage results<br>        uses: actions/upload-artifact@master<br>        if: always()<br>        with:<br>          name: coverage-report<br>          path: coverage</pre><p>Add, commit and push the changes and make a pull request from the branch to main and see the magic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*vBukFtuGQKvfvvnsCa6GFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*6jU05Y-AMz5-4vLRBqcwXg.png" /></figure><p>As you can see before you can merge your pull request first there must be no errors in your rspec test if any of these tests are not met you can click on details and it will give you the error.</p><p>And so you can run your rspec tests from git hub actions to always make sure that the code you want to enter into the main branch doesn’t break the unit tests you already have based on the functionality of your app.</p><p>That’s all I hope it helps you cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=791e319a6996" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dockerize your Rails 7 app]]></title>
            <link>https://medium.com/@rega1237/dockerize-your-rails-7-app-31d7a222b789?source=rss-a5fc60633160------2</link>
            <guid isPermaLink="false">https://medium.com/p/31d7a222b789</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[rails-7]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-compose]]></category>
            <dc:creator><![CDATA[Rafael Guzman]]></dc:creator>
            <pubDate>Wed, 19 Oct 2022 02:51:31 GMT</pubDate>
            <atom:updated>2022-10-19T02:51:31.335Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OfTA5ZpZKH1EmGUniNM8ag.png" /></figure><p>Hello everyone! in my moments of learning new technologies to work with Ruby on Rails I started to learn about Docker and it blew my mind with the powerful containers so I leave this little guide for me to save this and also share with those who can serve you!</p><p>First of all, let’s start with the basics what is docker? or what is it used for?</p><p>Docker solves the problem associated with an application that runs on a platform but not on others, for example, you as a developer working in the windows environment, then comes another developer or friend who wants to work with you on what you are developing but uses another operating system like ubuntu or macOS and then simply 1001 errors appear on your machine but not on yours, something frustrating no?</p><p>For that comes docker and its image containers, where you simply create a functional image of your program or even create all the software in the same image in a single stable operating system, it is noteworthy that also greatly facilitates the production phase, amazing isn’t it?</p><p>That’s the basics, now how do I do that with my rails application? well, it can be done in several ways here I will explain using a ruby image where the app will go and another image where the Postgres database will go (if I’m going to join two images in a single container).</p><p>First, we take a rails application that you have on your local machine.</p><p>For this example I creted a simple repo you can check <a href="https://github.com/rega1237/docker-rails">here</a></p><p>Ok first let’s create the rails application</p><pre>rails new docker_rails --database=postgresql</pre><p>Now we need to config the database.yml file to add env variables</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*xVPpp0zW35oLvMUPCBS1bA.jpeg" /><figcaption>username, password and host as env variable in database.yml</figcaption></figure><p>Now in docker, there are different ways to create an image, command by command or with a file called Dockerfile in which we add the base image and the applications that we will use to run the rails application.</p><pre># this is the Dockerfile</pre><pre>FROM ruby:3.1.2-alpine3.16</pre><pre>RUN apk add \</pre><pre>build-base \</pre><pre>postgresql-dev \</pre><pre>tzdata \</pre><pre>nodejs</pre><pre>WORKDIR /app</pre><pre>COPY Gemfile* .</pre><pre>RUN bundle install</pre><pre>COPY . .</pre><pre>EXPOSE 3000</pre><pre>CMD [“rails”, “server”, “-b”, “0.0.0.0”]</pre><p><strong>FROM </strong>image from which we will create our OS for the image in this case I use ruby:3.1.2-alpine3.16 to take as a base the alpine image which is a slightly lighter version, these images are already built in the docker hub here I leave the link to see the different images that are <a href="https://hub.docker.com/_/ruby">LINK</a></p><p><strong>RUN</strong> Are commands to install the software in Linux distributions, the alpine version must install certain dependencies because it is lighter and does not have certain applications</p><p><strong>WORKDIR</strong> sets the start point within a directory.</p><p><strong>EXPOSE </strong>Here is the port number that the image will have as the default of the application</p><p>Ok now with the Dockerfile we can create our image!</p><p>Run the following command in your terminal (in the folder where you haver the app)</p><pre>docker build . -t docker_rails</pre><p>** NOTE ** the -t in the command is for add a custom name to image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*BBoDkHEikx86dEvACrNNeQ.jpeg" /></figure><p>We can now build a container for the image we have just created with the following command</p><pre>docker run docker_rails<br># docker_rails is the name of the image we created before</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*4z6o-3PkpJOW4hEnufhiOg.jpeg" /></figure><p>Now if we check in our browser the url <a href="http://localhost:3000/posts">http://localhost:3000/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QdnkwQcy96O6FW_3RoEIeg.jpeg" /></figure><p>OH NO! there is an error what did we do wrong? well, nothing that just rails telling us I can’t connect to any Postgres server this is because in the current image there is no Postgres server, so what are we going to do? well we are going to create another image just to work as the Postgres server</p><p>But how we can create another image and conect to our docker_rails image? well for that docker have docker-compose.</p><p>First we create the docker-compose.yml then we add this:</p><pre>version: “3.9”</pre><pre>services:</pre><pre>  app:</pre><pre>    image: docker_rails</pre><pre>  environment:</pre><pre>    POSTGRES_USER: postgres</pre><pre>    POSTGRES_PASSWORD: postgres</pre><pre>    POSTGRES_HOST: db</pre><pre>  ports:</pre><pre>    - 3000:3000</pre><pre>  db:</pre><pre>    image: postgres:alpine3.15</pre><pre>    environment:</pre><pre>      POSTGRES_PASSWORD: postgres</pre><p>be careful with indentation to make it work</p><p><strong>services</strong> the services you going to run in the container</p><p><strong>app</strong> the name of the application (you can name as you wanna)</p><p><strong>db</strong> the name for the service of the Postgres database as you see we use another alpine image for Postgres and add the environment variable you can check the env this image needs in docker hub poster here</p><p>Now we are ready to create the container with this two images</p><pre>docker-compose up</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*GGl2hMrlpQ14fydAFvhiEw.jpeg" /></figure><p>when all the images of the container have been executed we can see in the browser what the result is</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r-D_-sMMo2ghGdDOtOtCkg.jpeg" /></figure><p>Ok, perfect rails ask us to create a database, there are two ways, one is to give it where it says in the image, but what if we want to run a rails command but in the image? well, you can do it too!</p><pre>docker compose run app rails db:create</pre><p>If you change the name of the service, just change the name of the app with the name of your service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7NltdyAFdwvX02qYAC__4w.jpeg" /><figcaption>as you can see I run create, migrate and seed directly on the container</figcaption></figure><p>Finally we are running a rails 7 app from a container</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyeQiGWxArZdpNrWd7FYFQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*ya2FTV1TyW_IY4UHpI_j8g.jpeg" /></figure><p>Even whe can see the posts route (this is a little model, controller and view I created to show that everithing works)</p><p>Well, that’s it, if you are still here, I hope you found this article useful, any comments are welcome, good luck to all!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31d7a222b789" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Impostor Syndrome the worst enemy]]></title>
            <link>https://medium.com/@rega1237/impostor-syndrome-the-worst-enemy-aeab104c92a5?source=rss-a5fc60633160------2</link>
            <guid isPermaLink="false">https://medium.com/p/aeab104c92a5</guid>
            <category><![CDATA[impostor-syndrome]]></category>
            <category><![CDATA[mindset]]></category>
            <dc:creator><![CDATA[Rafael Guzman]]></dc:creator>
            <pubDate>Tue, 14 Jun 2022 00:43:00 GMT</pubDate>
            <atom:updated>2022-06-14T00:43:00.564Z</atom:updated>
            <content:encoded><![CDATA[<p>What would you think if I told you that in your growth and learning of new technologies or any subject you are your worst enemy? On the way to becoming a developer or any new skill you are learning, something very important always comes into play in the human psyche. When we encounter adversity, we begin to ask ourselves, am I good at this? I’m not cut out for this, I don’t know why I got into this, I’m a FRAUD, but don’t worry, you’re not the only one and this “problem” has a name, it’s known as impostor syndrome.</p><blockquote>Impostor syndrome (also known as impostor phenomenon or impostorism) is a psychological occurrence in which an individual doubts their skills, talents, or accomplishments and has a persistent internalized fear of being exposed as a fraud. <a href="https://en.wikipedia.org/wiki/Impostor_syndrome">(Wikipedia)</a></blockquote><p>Based on the definition sure you feel identified, the best way to beat the impostor syndrome is to look him in the eyes and tell him…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tOuMtG6HMOVfHxXT_MV-TQ.jpeg" /></figure><p>No, you do not have to feel sorry if you have ever felt this way, here are 3 tips so you can overcome this vile enemy:</p><p>1. <strong>Focus your attention on the facts:</strong> the impostor syndrome makes us feel that we are not good at what we do, but sometimes that feeling is based on fear or frustration, not reality.</p><p>2. <strong>Share how you feel</strong>: This, in my opinion, is one of the most important points to overcoming impostor syndrome. Remember that it is a feeling that isolates you. Therefore, the next time you feel like this, try to share those feelings with someone else. person, you will see how it will make you feel much better.</p><p>3. <strong>Reframe your thoughts:</strong> Our thoughts are very powerful, as I said at the beginning, sometimes you are your worst enemy, the attitude with which we face the world has the power to shape our reality, both positively and negatively. For example, the next time you make a mistake, instead of saying, “That was horrible,” try thinking something like, “That wasn’t my best work, but next time it will be better.” By thinking in this way your mind will not fall apart with some “defeat” or relapse but will see it as a learning moment.</p><p>To conclude, remember that the mind is something powerful and we have to learn to shape it to think and do what is best for us, do not isolate yourself or feel bad, look at everything you have achieved and focus on that, and remember sometimes you are the worst enemy your.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aeab104c92a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>