hits counter

Personal


Personal and Photography15 Jan 2010 08:33 am

I’ve just got a few shots from that night, but overall, there was good music (and some bad), namely Mountain Mocha Kilimanjaro which is a cool japanese funk band. In terms of work, I think I’ve outdone myself these couple of weeks since I’ve finished all but one requirement 6 weeks before out first estimations. Thats not to say that I’m really efficient, but rather our estimations have been off, by quite a bit. Something to record and keep track on.

Written by Milton Lai

Personal and Photography04 Jan 2010 09:57 pm

Well it seems like I didn’t end up having enough time to write over the new year break. There was a lot of driving to get to the Gold Coast and a few relaxing days up there before having to drive back down. There was a bit of rain to be had on the way up, but it cleared towards the end of the trip. Currently I’m not feeling the greatest – possibly have caught a food bug at some point. Decided fitness is one resolution I should possibly be able to achieve this year, given I have more time on my hands. Lets see about that over the next year!

Written by Milton Lai

Personal25 Dec 2009 11:22 am

Its been a long year and a lot has happened. I’ve been glad for the friends and family around me and support everyone has given me through this year. There are a few resolutions to list, but I do have a bit to get done today. I’ll be heading up the coast tomorrow and I should have enough time to relax and write all of them down hopefully, but until then, I hope everyone has a merry christmas!

Written by Milton Lai

Personal and Tech Talk30 Nov 2009 07:56 am

The past few weeks have been a bit intense with work and personal projects, I’ve been at the keyboard quite a far bit to get my first real app out. I’ll have another post later on, closer to the date when I can actually release it. Of course, it won’t be the cleanest release, but there will be regular updates (in fact that means I need an updating mechanism which will make life easier for the people who do end up using the software). I’ve spent a bit of time refactoring my current project before I started the new tasks. I felt that there was a bit of code smell and well as performance issues. One simple example would be to create a local instance for any values which are calculated within loops.

dim a(100) as string
for i = 0 to Ubound(a)
	//do something
next

Instead of doing that, it would make the loop just a tad bit faster by creating j to be the value of Ubound(a) UNLESS of course, you are changing the length of the array within the loop itself (which I then recommend at least changing the for loop from going “to” to “downto”. This step also allows for you to run through the debugger and find out what j is at that particular time.

dim a(100) as string
dim i as integer = 0
dim j as integer = Ubound(a)
for i = 0 to j
	//do something
next

OR if you are changing the number of elements to the array

dim a(100) as string
dim i as integer = 0
dim j as integer = Ubound(a)
for i = j  downto 0
	if a(i) <> nil then
		if a(i) <> "aaa" then
			a(i).remove
		end
	end
next

I’ve got an app which demonstrates small changes to your code which will improve your performance (if you haven’t adopted these practices already). I used it as a demonstration at work and it is similar to what was presented at the REALBasic Summit. I’ll upload that in time.

I’ve just put down a deposit to get a new mountain bike (Kona Caldera 2009 model) from the Bike Barn out at Paramatta. They were having a sale on Kona 09 models and so I picked it up for $1000. I’ll get it at the end of the work and give it a work out then.

Written by Milton Lai

Personal11 Nov 2009 08:16 am

So this is why I haven’t written a word for a good month or more. I’ve had assignments to hand in and an exam to finish, and now its all over! I’ll be writing soon – but for the moment – enjoying not having to worry about any more uni work, cycling a bit more, and just getting ready to lie on the beach for most of summer!

Written by Milton Lai

Next Page »