Using Composer on legacy projects

Composer LogoIt’s been a long time since my last post. But now, I’m back with something probably useful for you. Composer is around for a while but I was not able to find some time to work with it. We needed something like this in the company so I spent some time with it and moved our project to Composer enabled dependencies. You can (and should) definitely do the same.
Continue reading Using Composer on legacy projects

How to Add an SVN External Library To Another SVN Code Repository

Another self reminder (memo!) for the Subversion. Let’s say that you got two different code bases that are dependent to each other. What you need is to version them differently but you also want to development to work as smooth as possible using the cutting edge version (saying trunk).

What you need is to define an svn externals property to your current base:


svn propset svn:externals 'XXX https://svn.roysimkes.net/my-dependent-prj/path/to/dependency/folder/XXX' .

The trick is to use the single quotes and the dot in the end. As you are setting a property, any space you will put will break the setting. You have to put a dot at the end to indicate that you are changing the properties of the current folder.

This way you are adding a folder named XXX which is linked to the code repository’s XXX folder. Every time you use “svn up” both the code bases will be updated. Every time you commit, only the current repository will be committed. And if you need to commit to the external library, go to that folder, and when you commit external’s library will be committed too!

I’m sure that I will be forgetting the command again, so this way I know where to look.

Cheers.

Drupal Sandbox Project: KMVC

As I always, I took my time to write another blog post. Again this one actually includes codes (but not here). I have started using Drupal for a project to a client. I was willing to work on Drupal for a while, but I never had the chance to look for it deeply or develop for it. Now I’m in with a sandbox module: Kmvc!
Continue reading Drupal Sandbox Project: KMVC

Looking for Web Developer Enthusiasts for Kartaca

It’s been almost a month since my last post and this time I’m back with a recruitment option to you! I will strict this post to Turkish, as opposed to my previous posts because we are mostly interested in developers who live in Turkey. If you are interested keep reading!
Continue reading Looking for Web Developer Enthusiasts for Kartaca

Playing With Play!

Followers of my blog will know that I’m not a fan of Java and its frameworks. I’m even more pessimistic for its future with Oracle but that’s not the point of this post.
For a school project I had been forced to write Java (please, there are other languages too…). Anyway, as a group we have debated on how to write it, as there wasn’t much Java developers in the group. Someone was arguing that we should be using Spring+Hibernate duo (they don’t make the trio so they fail :) and I suggested Play!. Not that interestingly, we have finally chosen Play!.
Continue reading Playing With Play!

About Large And Complex Software

It’s been a while from the last post as usual. This time I’m back about a topic we have discussed in the classroom with the instructor about Large and Complex Software. He said that you should design, write UMLs, create comment blocks (70% comments and 30% code) and write documentation for complex software. I opposed him that we don’t know how to write large and complex software.
Continue reading About Large And Complex Software

Why Software Design Matters

If you are in the software development business, I’m sure you have heard that “Design” is important and you should always design first and code later. This “belief” is not accepted by all anyway. I don’t blame them, because we can’t really make good designs most of the time, so why bother anyway? I will try to explain you why you should bother. I think the title of the article might have been, “When you shouldn’t Design Software” too. So keep up with me!
Continue reading Why Software Design Matters

Cristopher Alexander The Greatly Misunderstood

I’m sure many of you know Christopher Alexander. He is an architect and also the guy who proposed patterns which eventually evolved into Design Patterns in Computer Science. He has a nice talk about Patterns during the opening talk of OOPSLA. You can find the speech here.

After this introduction, what is this entry then? It’s actually my two cents about what Alexander is talking about. It’s also my homework for the school :). So if you are interested follow up. I might be wrong about the things I have written, or you may not agree with me, that’s OK. I would love to discuss it with you, without starting a “flame war” of course. Especially if you are a pattern fan, you might not like what I’m saying. So if you are still with me, there you go.
Continue reading Cristopher Alexander The Greatly Misunderstood

How to Create Custom Doctrine Models for Pluggable ZF Modules

Well, in my previous post, I had mentioned about “pluggable” modules for Zend Framework. They had their own, configuration files, controllers and views. However most generally, you also need database tables and models. So there should be a way to define them too. It’s easy if you are making your ORM manually. However for the ones who use Doctrine out there, things are not that simple.
Continue reading How to Create Custom Doctrine Models for Pluggable ZF Modules

Managing Your Extension’s Settings via Magento’s own Settings Page

I had mentioned about this in my previous post that I was about to explain how you can add your custom configuration tab to your module in Magento. You are on your way to find out how to do it! By the way, it’s the third blog post in one month (and second in a day!), I guess I won’t ever have such a spare time in months again so enjoy everybits of it :)
Continue reading Managing Your Extension’s Settings via Magento’s own Settings Page