Skip to main content

Posts

Showing posts from September, 2018

Challenges

I have faced many challenges in my life, some of them I succeeded in overcoming and some I could not. But with each challenge that I come across, I always emerge different in some way. An aspect has to change or improve to something new or even to something better. It's a great learning experience for all. At the moment I'm going through the greatest challenge of my life and I'm learning a lot with every passing day. I hope I'm going to emerge at the end as somebody I have always aspired to be.

How Can Git Save My Life?

Before git I think it was really hard to maintain the edit history of text files; really long history. We as programmers should be very grateful that we have such a tool to use in our daily lives. It's very powerful in version control and collaboration with GitHub, and that's why it got really popular. I hope that I get to be a master of git/GitHub soon.

What Makes Me Happy?

Most of the times just seeing a friend or somebody close to me will get me really happy. And as a habit that has formed over the past years I occasionally say puns or reconstruct words and mix them with multiple languages to get a funny expression/word. Sometimes I get funny results and sometimes I don't but I laugh anyway and that's what's important to me. One more thing, I love food as you might have guessed (fellow human being).

This vs. That

Well, well, well... What a great title to some not so simple topic. Imagine that you were asked to build a Javascript class that is called Account, and this class is used to model an employee's bank account. As expected we are going to add some data members to it so that we can access and store values in them once we make instances of this class. Once we for example store functions as values to some of these member variables(object keys),we are going to define these functions outside the class and sometimes we may try to access the values of the object itself. Which object exactly? Well, it depends on which object you are using to access so we use the keyword 'this' to refer to the current object that we are using. What about that? I'm not sure if it was a real thing in programming but If I could say from my understanding then I'm going to say that it is just a word to describe any other object not related to the current object we reference using the 'this

Closures??? Anybody?

Well, say for example you have a button that turns on the outside lights of your home and the button in charge of doing that is on the street. The button works with no problems, but sometimes the neighborhood kids do pranks by turning them on and off. How do you think we can solve this problem? I hear you, we can place the button inside the house and make clicking the button possible only to the residents of this place. And what if the parents wanted to keep their children away from playing with lights? They can place the button somewhere higher on the wall so that only THEY can access it. Hope this was easy to understand :)

How Do I Deal With Sadness?

This is a rather something I'm not comfortable talking about but I'll do my best. Okay, first things first: If it was because/about other people then I'm going to say that to them. Sometimes I ignore what has happened and regard it as a side effect of going through life. And If I get really sad I stay away from people so I don't affect them in a bad way or disrupt their business. Life should go on and I'm fully aware that some stuff should not be ignored. However, hopefully every sad experience will bring the best in us.

How Does While Loop Work?

I think that everybody knows what while means, right? Imagine you want to do something for a 'while' :) You're gonna need to repeat that thing for a number of times; limited or unlimited. For example, if you wanted to do something from your daily life like drinking water 7 times each day you're going to do a task (i.e process) for seven times and you're going to decrease that number each time you drink water. Before you start drinking, the number of times would be seven. So,  a condition to check to stop drinking would be great. Like when the number of times is less than seven -> continue doing this process (drinking water) and increasing the number of times you have drank  by one. Once the number of times reaches seven -> stop this process. Hope that helped clear the picture even if it was a little bit.

My Role Model?

I'm not sure how to answer this question because I think I don't have such a character to look up to :)  But I could consider the best version of myself as my role model...  how? Hmmm, I strive to improve and learn new stuff with each passing day, I don't like wasting time or resources without any real benefit (Of course there will be times for just fun). And by doing that I get closer to this goal and at the same time my ideal image of role model keeps changing as well. So in the end I'm left with the ever improving mentality that will always try to make things better and greater as long as it's possible.

Higher Order Functions

Hmmm, this is a rather unusual topic to talk about in a blog :] but I'm gonna try talking about it for short while. I think that using these functions with arrays can save you up a lot of time since you can chain them together to produce any desired output. In the beginning, anonymous functions were scary to me. I still remember dealing with them using the language Java and especially lately with android mobile development. We used these anonymous functions to override a function without creating a new class from scratch just to make it fast and avoid repeating unnecessary code. Why am I talking about anonymous functions? well, because usually we have used our implementation of these functions(higher order ones) and wrote them with the help of anonymous functions. We don't need to repeat ourselves anymore with the map function for example, and the same goes for filter and reduce as well. Except that we still didn't touch upon these two functions yet. So, till next time I

Where Do I See Myself in Five Years?

This question has been on my mind for the past couple of months and I've been thinking very deeply about it. I have always wanted to be a great programmer, someone who can build great applications to help improve the quality of life for people; especially refugees and the forgotten minorities in our communities. But everybody has to start somewhere, so I started with studying the major that I loved the most; Computer Engineering :) After graduation (while studying also), I wanted to improve my coding skills by taking online courses and even considering the local centers that teach Computer Science. However, I wasn't pleased with the results for many different reasons. Like for example: sometimes the material is too basic or too advanced or the lecturer didn't convey the concepts in an understandable way. And then, came the announcement of RBK :D That was the moment where I got really excited, and got my hopes all up for the next few months of my life. We are just one w

What the Hell am I doing?

My day started really bad with me being late. My alarm was set to ring for everyday of the week except for two days, but that wasn't the case when it didn't ring for this day(Saturday). The problem was when you want to set an alarm you have to set it manually for each day or you can simply select the days this alarm gonna be ringing. And here was the catch; I selected the wrong days ☺. I should have selected all days except Friday, but instead I selected all but Friday and Saturday :/ I must have thought that the 'S' meant Saturday not Sunday, and that's why I woke up really late. But I arrived at the medical city circle around 8:00AM so it was fine, unless I mention the fact that I have missed breakfast because of this little incident. Source: Google Image results Edit: 20/10/2018 Now after the immersive phase has started I still have the same number of alarms that ring around the same hour, but I am not going to be late with the transportation we're