Will Be Creating Books Reviews

This years started in taking more track on how many books I read per year so aside of bunch of articles, news, and entertainment I will be reading less of these and will read more books and keep track of which books I read.

Just today came up with the idea of doing books review the same way John Sonmez does, check his website here https://simpleprogrammer.com/, I’m not sure though if I will create youtube reviews or blog post review. I might create some Youtube and some post and see how the public response goes.

Just wanted to left this note here and see in future post how it goes.

Started Playing Around With p5.JS

Started with 11th examples,

Mostly taken from here https://p5js.org/examples/ and then I modified them to kind of understand how this framework work.

To see my code just go here.
https://github.com/mberthely/MyProjects/tree/master/Tech/p5_FrameworkPlayground

You can see one example here
https://jsfiddle.net/berthely/7heheLyz/

I’m planning on creating at least one simple game like snake or ping-pong just to play around.

Mario

Summarizing Books Directly On Word

Another study technique that I just started working on, this is based on get a copy of a PDF file, have it converted to a WORD document and start removing all redundancies and knowledge that is not 100% necessary.

This technique is 100% equivalent to highlight important text only, the only difference is that with this method you can read without all the noise of the unwanted information.

When you try to learn a new topic you can stress yourself in the first reading because you really need the knowledge and when something is new is almost impossible to learn everything on the first shot so it’s easy to get frustrated, with my technique you can create your summary in your first reading and then in the second reading you can just go directly to your summary and put the effort on learning for the long term.

I recommend this method for hard topics that you can just memorize on a first reading, once you have the summary you can easily over and over until memorize for the long term. Actually I got addicted to this methodology, unfortunately I’m unable to share my summaries due copyright but all the new knowledge will help me to get ideas for future articles.

This post is just to give you an idea on what you can do to study better.

Mario

 

Visualization Experience From This Week

This week started to investigate more into what visualization is and which benefits you can take out of it.

For the most part you can use visualization go magically get whatever you want, well, I just can’t believe that approach so I just kept investigating to create a definition for me that actually seems convincing, at least for me.

This is what I believe visualization is and how to use it. Disclaimer, my definition might be short on what the real meaning may or may not be, this is just a definition that I truly feel that is accurate. Well, for me visualization is a process that you can use in your mind to create and imagine what is impossible for real life resources almost instantly, you can create whatever you want and see yourself doing whatever you want in your mind. The only practical use that I see for this is to be more creative, be able to magically create stuff in your mind and exceed your expectations in everything you do. I believe that if you constantly practice visualization for your goals an projects you are able to think beyond stereotypes and boundaries. Also, I believe that for most of people this kind of way of thinking is not taught or exercised frequently. As an adult in my early 30’s I believe that at this point in my life using visualization and exercise my mind to think without boundaries is very helpful and convenient for personal projects and professionally, also to find and experience more in depth what my real desires and ambitions are and how to measure them in a realistic path of action to achieve whatever I want to.

You will find ton of videos on YouTube, every one of them with a slightly different approach of definition an usage, you take the last decision on what or what not to believe.

Mario

Reading vs Studying

I’m a programmer, I study and learn stuff everyday on many topics and areas that can’t even remember now. I have to do it to not be left behind on the latest available technologies that at the end of the day provide more an better opportunities.

I read daily as many other people from many sources from blogs, articles, mobile instant messages, online newspaper, paper books, books on tablet, laptop, pc, literally hundreds of emails because of my work.

The thing is, reading and studying are not the same there are a lot of different processes that are going on depending on what are you doing.

When you read is like when you just ear someone to talk, you can actually learn a lot by reading but if you really want to learn something in depth you need to study.

Study is different that just reading because you need to worry about in how to 100% understand what you are actually reading, when you want to learn something in depth you need to take more time to think and reflex on what you just read, try to organize the new ideas and concepts in your mind in a way that makes sense for the long term and that takes more time and effort than a casual reading and we are not taking into count that you can take notes, make summaries, mind-maps and all the good stuff.

There are some topics do take more time to understand and digest than a reading as I just mentioned before so my best advice is to try to combine your reading with casual reading (novels or fiction maybe) and formal study (the good stuff, more scientific maybe), that way you can enjoy reading something casual when you feel like you want to do it and study something more seriously when you really feel like you want to do it. Another technique that I tend to use is to read a book that you want to study as a casual reading (low effort) for the first time and then do a second read for the long term (high effort) and organize the ideas in a better way either in your mind or summaries, mindmaps or whatever the hell you use to annotate in case you do.

I hope you enjoy your reading and your studying.

And correct me if I’m wrong but there are some topics that you can’t just casual read and learn in depth, topics like complex math, physic, chemistry, programming, engineering, and so on, unless you are a genius.

Mario

I Just Discoverred A Cool JS Framework For Game Development

This is a short article.

I was watching this video in which I heard a bout this p5.js so decided to take a look at starting with basic tutorials. I guess I will share future post in future entries of this blog.
https://www.youtube.com/watch?v=hacZU523FyM

This is the javascript framework
https://p5js.org/

You can get started tutorials here
https://p5js.org/tutorials/

And I will let you know what my experience with the framework is in later post, by know just get to know it and take a look at the video.

Mario

 

Print n Number n Times Loop

This is a simple loop to print a number starting from 0 to n. The number will be printed n times.

    class Program
    {
        static void Main(string[] args)
        {
            PrintNumebersManyTimesAsNumberItSelf(20);
        }

        /// <summary>
        /// This will print a number strating from zero to length,
        /// The number will be printed as many times as the number itself.
        /// </summary>
        /// <param name="length">Length to stop, will start from 1</param>
        private static void PrintNumebersManyTimesAsNumberItSelf(int length)
        {
            for (int i = 0; i < length + 1; i++)
            {
                for (int j = 0; j < i; j++)
                {
                    Console.Write(i);
                }
            }
        }
    }

Check Leap Year in C#

Hi there, as I said in previous post this will be a simple c# code on how to check if a year is leap year, as I said this is a very basic algorithm but I wanted to have it documented.

class Program
    {
        static void Main(string[] args)
        {
            int input = 2020;
 
            bool result = IsLeapYear(input);
 
            Console.WriteLine("Input: {0}, Is leap year?: {1}", input, result);
            Console.ReadLine();
        }

        /// <summary>
        /// Calculate if a input year is a Leap year.
        /// </summary>
        /// <param name="input">Input year</param>
        /// <returns>Where if it is leap year or not, true/false</returns>

        private static bool IsLeapYear(int input)
        {
            // leap year mod 4 is always equals 0 (multiple of 4)
            if (input % 4 == 0)
                return true;
            else
                return false;
        }
    }

 

Started Documenting Easy Programming Problems

I just started documenting easy problems, not sure if I want to create a post for every problem, I guess is a good idea to gain visibility as far as SEO, you will probably see more post on those easy problems in a separated blog post, as well as videos, every video that I create will have a blog post I guess to also help SEO.

So that is all for this, you will see problems in different blog post. These easy programming problems are intended to recap on what I already know about programming and catch up in something that might be missing.

Mario

Multiply Without Using *

I came out with this C# algorithm to solve this problem, I did a research and found a better solution named Russian Peasant please research for that, I this code I will do by sum number a  and accumulate the sum b times.

        /// <summary>
        /// Multiplies withou using Multiply
        /// </summary>
        /// <param name="a">first number</param>
        /// <param name="b">second number</param>
        /// <returns>multiply</returns>
        private static int Multiply(int a, int b)
        {
            int total = 0; // sum
            for (int i = 1; i <= b; i++)
            {
                total += a; // sum number a as many timeas as b
            }
            return total;
        }

As I said is not the most efficient maybe research on what I wold you.

Thanks
Mario