Author Archive

Moving Files in XCode

July 12, 2011 2 comments

Couple of times I made silly mistake of creating new files in XCode project not in the place I want them to be in filesystem. Groups and “real” folders still confuse me. When you have such file in your project that is in correct group, but not in correct folder on the disk and you don’t want to remove it’s reference and add the same file again I have two steps solution for you.

First you open Finder (or any other file commander tool) and move the file to the correct location. When you will open XCode you will see that this moved file is red now (this is expected behavior, XCode cannot find this file under old location):

What you have to do is to highlight this file and open File Inspector (menu View -> Utilities -> File Inspector or by keyboard shortcut <command> + <option> + <1>). Just under Location combo box there is specified current location for this file. Hit the little folder icon on the right and choose the new path of the moved file:

And that’s it. The drawback of this solution is that you have to repeat this steps for each file you want to move, but if you have plenty of them, probably it’s better to remove references and add them again.

Categories: mac, programming Tags:

Learning Ruby with Project Euler

May 2, 2011 Leave a comment

After completing Ruby Koans it’s time to move forward. Next step is Project Euler. There are plenty of problems to solve, so learning advanced Ruby programming will be neccessary.

I created github project where I will post all my solutions. You can also see this project page on my blog, where I will post updates if any.

Categories: programming Tags: , ,

Introducing Jenkins CI to my github projects

May 1, 2011 3 comments

On sunday morning I had an idea of introducing continuous integration (CI) tool for my projects to have one place to see how they are going.

Currently I’m forced to use CruiseControl at work, but I don’t like it much. I was looking for some more user friendly tool. From my teammates working on Java stuff I heard about Hudson. After searching a while, I found Jenkins. It’s fork of Hudson after Oracle claimed the right to Hudson’s trademark (you can read more about it at this wiki page).

It took me about 3 hours to download, install and configure Jenkins. It also includes preparing one of my current projects to run all test cases and builds configurations from command line. I thing it’s pretty easy and takes really small effort.

Now I have automatic builds with test cases execution after each change on my remote github repository. The project you see on the picture is iPhone application, but because I used GHUnit that is able to write tests results in JUnit xml format, I also can see results from all tests.

It’s just the beginning. I’ll try to find other useful features there.

My old project – Crash3D graphic engine

April 28, 2011 Leave a comment

Today I found one of my really old pojects. It’s 3D graphic engine that I wanted to use during development of my games. I’ve never finished it. I even don’t want to look into the source code any more, because I remember that it was horrible. I was learning C++ back then. First I was writing a code and then thinking about design, and of course no tests at all instead of manual ones (today I have totally different philosophy).

Read more…

Categories: programming Tags: ,

My GameDay 2011 Conference Remarks

April 18, 2011 1 comment

That was really interesting weekend. GameDay 2011 conference was the best game development event I’ve been so far (honestly I was only at couple of them in Poland).

More detailed information about the conference you can find on the official web site, but I wanted to write couple of words about my feelings considering each lecture. The event took two days full of interesting speeches and workshops in the evening.

Read more…

CodeRetreat – TDD and Pair Programming

April 10, 2011 Leave a comment

I thought I know much about Test Driven Development (TDD) and Pair Programming. After attending CODERETREAT organized by Software Craftsmanship in Krakow I know that I was wrong. Theory is something totally different then practice.

This event was facilitated by Corey Haines, one of the inventors of this type of exercise (more info about it at this page). He encouraged us to use four elements of simple design, what really increased code testability and made it readable. He was also giving us really good hints during and between coding sessions. Next day I looked at my current home growth projects and realized how much can be improved there.

Software developer is always learning. When one thinks that he knows enough, he just don’t know that he is wrong and need to learn much more.

Categories: events Tags: , ,

Pitfalls of Object Oriented Programming

April 9, 2011 Leave a comment

Couple of days ago I was at AGH University in Krakow listening to Adam Sawicki’s talk about “Pitfalls of Object Oriented Programming”. This event was prepared by SKN Shader (group of students programming computer games).

Speech was interesting, but really short (1 hour only). Adam was talking about pitfalls we can fall into when over interpreting object oriented programming principles, i.e. wrappers which in the end of the project looks like things that we were trying to wrap, but we failed or usually wrong use of singleton pattern.

One thing really interested me. It was data-driven design. This concept is focused on data processing optimization which is highly used in computer games development (because of this focus on optimization). I don’t know much about it, but for sure its worth reading. Some information you can find on Adam Sawicki’s webpage.

Categories: events Tags: , ,