Fork me on GitHub

Mohammad AbuShady Software Developer

This is a common problem, you have an object, and that object does some logic, and then you find that at some point this logic needs a special condition, because the object is null, or somet variable inside it that holds another variable is null, here's a small example

Continue reading

Any rails developer probably uses rails console every day, when testing methods, when debugging, or doing some database modifications, knowing some convenient tips will make you save some time, and on the long run you'll become more productive with these simple tricks.

Continue reading

When I'm writing a heavy query rake task or just running something in the console that does a lot of updates, and i want to output something it gets lost in all the query logs output.

Continue reading

Some times we find our selves having a time expensive method or in some cases using an API that costs money per request, or a slow one, I had that issue once when using twitter API, I was fetching the last tweet for a website, and sometimes that request took a second or two to return, which was annoying.

Continue reading

Recently I needed to install elasticsearch on my debian jessie laptop, first I found it in the repos so I installed it normally, it installed a bunch of stuff with it that I didn't actually need but I thought like fine w/e it needs, I need it to work to finish my task, and at the end it didn't really work anyways.

Continue reading