Skip to main content

Posts

How to Install or Upgrade neovim, the easy way

 The easiest way to get neovim on ubuntu or wsl ubuntu, is to simply run sudo apt install neovim , however, later on you will want to update it, and you will try to uninstall and run sudo apt update and then install neovim again. All of that to realize that the version remains the same. I found that the second easiest way of installing and upgrading neovim is to install it form ‘Download’. This will allow you to install the exact version of neovim that you want, and even better, to keep multiple versions of neovim at the same time. Beyond that you can code a script to automatically switch between versions. This is how I reinstalled neovim without loosing any configuration. I used this article as a reference: https://docs.rockylinux.org/books/nvchad/install_nvim/ . Backup your config files: I would recommend you to create a Github repository of your neovim configuration files, just in case. Check your current nvim bin file: The location might change depending on how you insta...
Recent posts

How to start making good habits and keep them

Most of us have ever postponed a task to the last minute or when it's too late to do it. I have to admit that I used to do so, but now, I've really improved on this aspect. Also, I used the technology as a tool to be able to achieve this personal goal. First of all, we need to understand the basic of our brains and how we take decisions based on rewards. Our mind is attracted to do activities that represent more satisfaction afterwards instead of the ones that are hard to perform such as playing video games, scrolling on social media apps or simply sleeping all day. That's why we want to be more productive but after trying doing good habits one day, we don't see a real compensation, so the next day we are the same person. For example, I used to watch youtube videos and play video games for many hours, consuming all my day. One day, I decided to change the way I was using my time, I tried really hard to stop doing those bad habits, but to be honest I couldn't. I thou...

Loops in programming

 If we are starting in the programming world, we've ever came across with a problem that has repetitive code or, also when we're working with array and many other similar situations. In this blog, I'm going to explain what a loop is, its types and some examples. First, a loop is something that is repeating many times until we decided when it to stop. Taking an example from real life, it could be your daily commute, you go to your work or school every day in the same way. Now, applying it to programming, a loop can execute a specific block code the times we want. The perfect example is a counter, but we'll see this example further in the blog. Second of all, let's see some kinds of loops and which ones are the most common in real programming. In my opinion, the most used loop is for or foreach.  It is perfect to iterate over all the items in an array, since arrays are very common when getting information from databases such as users, products, etc. It also needs a st...

Programming Data Types

 In order to understand how a programming language works, we need to know some basic and essential things first. In this blog I'm going to explain data types that most of the programming languages have and what they do. First of all, a data type is a representation of a value type and it's used to identify the use of a variable, both for the programmer and the programming language. Second, there are many data types in programming, and some languages manage them in different ways and with different keywords. However, to make it simpler for you to understand in any programming language, these are the most used and basic data types in programming Character,  String, Int, Float, Double, Boolean Last, let's explain the aforementioned data types and also give some examples. Character is used to represent a single letter, number and any symbol. String is a group of characters that represent a complete text or a single letter, as well. Int indicates that the value is an integer nu...

How programming conditionals works

When we are starting in programming, in some moment we'll encounter with conditionals. Conditionals are expressions that tell the program what to do in certain conditions. Theses statements are essential in programming, not only for beginners, but for every developer who wants to create a solution in their software. First, to completely understand the use of conditionals we can connect it to the real life. In our daily routines why use conditionals to take decisions. For example, if I had a job interview but I'm running late, I'd say, " If I go by foot, I might not arrive at time, but if I take the subway I'll arrive just at time. " Notice that I use if to show that I'm taking about a condition and what will happen if that condition is met. Well, the same is for programming. - Second of all, before showing you code examples I'd like to briefly explain you the Truth Table . This table helps us to know when conditions combinations are true or false, it m...

How to start programming

 When you're starting in your process to become a Software Developer, either on your own or at a college, you'll need no understand the programming logic and how to solve different problems before learning a programming language. That's why I provide this tips and steps in order to understand programming. First of all, you need to know basic concepts of computer science, such as how a computer works, parts of a computer, and some logic problems. To involve in computers world you can research about the afore mentioned topics. I recommend you to watch videos, read short posts and also trying to teach someone what you just read. The second step I followed to involve in problem solving is creating flowcharts . I used to transform a bunch of exercises into flowcharts, and it helped me to understand how the programming logic works and to see many ways to solve the same problem. Though you need to learn some figures and know when and how to use them in order to create a correct ch...