Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Friday, June 13, 2014

Only two things are infinite...

 Was traversing through some very complicated code today. Insane mess of programming patterns multiplied by object-oriented ego. Its like a fucking zebra. Some parts are brutally complicated and others are just silly. Like this:


    protected function callbackExists($names = array())
    {
        $exists = array();
        foreach($names as $name)
        {
            $return = (bool)$this->getCallBack($name);
            if($return)
            {
                $exists[] = $return;
            }
        }
        if($exists)
        {
            return true;
        }

        return false;
    }

Seriously, if I had a dollar every time I see "if (X) return true; else return false;" idiom...

Sunday, March 2, 2014

Node.js

Well, this weekend was no different from the other ones - a huge disappointment. As per usual, I had numerous plans as to what I will do, and practically none of them came to fruition.

I suck. I suck very much. I managed to get one thing done though - I have completed a CodeSchool course, namely "Real-time Web with Node.js". Took me half a day and did not teach any immediately applicable skills, but I got the gist of it and some modern web technologies along the way. All in all - not a complete waste of time.

I feel like time is running out for me, and I am too slow, barely advancing anywhere. Of course, it is not objectively truth. Looking back at the last months I can see how significantly my situation had changed. Yet somehow, I expect even more of myself - and thus am dissatisfied. v_v

Monday, September 2, 2013

FastFind Enhanced. A plugin for Far Manager.

Sooo...

Haven't written for a while, due to depression and shit. But don't despair, my avid readers, I am too much of a coward to actually leave this planet yet. Personal psychoanalysis aside, I have news!

I managed to finish one of my many projects, the "FastFind Enhanced" plugin. And what a fine job I did. Not only does it work, but has readme, help system, config menu, internationalisation (translations) - the full set of a grown "serious" project.

No more delays! Here's relevant links:
Download page (PlugRinG)
Far Manager discussion thread for this plugin


I'm quite proud of this, actually. Almost like I'm a real boy developer now.

Sadly, my overpedantic intelligence keeps me on the ground too firmly. This is no big achievement, any way you look at it, its actually shameful if you think how long did it take me to make the thing. Well, I learned a thing or two while creating it, and the results are quite useful (I use it myself every day), so time was not entirely wasted.

Sunday, April 21, 2013

FAR Manager. Macros and whatnot.

Edit: This article's updated variant has been posted to an appropriate  forum. 
Gather round, boys and girls, for I am about to tell you a story.

Macro in your FAR Manager? It's more likely than you think.

    The "macro" term is used loosely in Far to describe a broad range of user-made modifications of the application's behavior. For the sake of simplicity, let me divide them into several use cases: