An AngularJS project can get very large. Stuffing a lot of code in just a few files is a maintenance hell. I’ve been exploring AngularJS for a while and have learnt a lot of things you won’t otherwise find in the documentation or simple tutorials. So, starting with this post, I’ve decided to write a […]
I was working on fixing a WordPress plugin for a client. It was a directory plugin. Also, the site itself had a decent number of categories and links (about 5000 links or so). It all worked well locally. However, after I put the site online, it was quite slow to load. It would load incrementally, […]
There were a few people curious in the ST forums on how Sublime Text’s fuzzy matching works. In reality, I don’t know either. There were some interesting solutions given, but I haven’t researched their methods and workability. I needed to implement this for a small project I’m working on. I went with a solution that […]
I’ve finally released a model and migration generator for Laravel 4, called Larry Four. Now, the idea is similar to Larry that I had created for Laravel 3. However, this is a complete rewrite with more features, a better syntax, and the code-base is unit tested using PHPUnit. Check out the GitHub page for more […]
It takes time to read and understand code written by another person. If you wrote something a while back, even you might find it slightly difficult to comprehend. There is one exception to this. If you are in the process of writing an application (even big ones), you won’t have problems understanding parts of it […]
When I first started learning Vim, the hjkl key bindings for moving around sounded awkward. For that reason, even while learning Vim, I’d often use arrow keys to move around. It was easier, or at least it appeared so.
I was creating some sort of URL management in Laravel. So, a single page contains forms for editing all of the URLs. For each URL, a form for editing it is rendered using a foreach loop.
You may have wondered how a PHP function defined as below behaves:
I just read this blog post, There is No Right Way to Develop Software. I actually appreciate the sentiments of the author, because it is right about the hyperbole surrounding various practices. But does that mean there is no right way to write software? Hardly so. I don’t think we should jump to that conclusion […]