hits counter

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

Tech Talk29 Sep 2009 12:24 pm

This summit ran between the 24th and 26th of September. Hosted by InspiringApps in conjunction with ARBP and held in Boulder, Colorado. This town is a great place to visit, especially when you’re into anything outdoors (except for surfing – although there was a surfing diner somewhere in Boulder).
The sessions that ran were all quite relevant to almost everything that I do, and of course, some more than others.

psrb01
The view from St. Julien Hotel & Spa.

psrb12
InspiringApps

psrb02
Reporting Tools, Options, and Techniques – Bob Keeney

psrb03
Cocoa and Reporting Features in REALbasic – Geoff Perlman

psrb04
SQLite Power Tools – Ryan Vail

psrb05
OO Database Framework and Introspection – Seth Verrinder

psrb06
Profiling and Performance Tweaking – Joe Strout

psrb07
Version Control, And Why it Rocks – Aaron Gerber and Mathias Gran

psrb09
Building REALbasic Plugins – Christian Schmitz

psrb10
Usability & Design Techniques – Jay Crain

psrb11
Facilitated RB/RS/Summit Feedback Session – Brad Weber

psrb13
The few remaining members on the final day up in Estes Park.
Milton Lai, Seth Verrinder, Frederick W. Roller, Rick, Gerard Hammond, Bob Keeney, Norman Palardy

Written by Milton Lai

Personal27 Sep 2009 12:14 pm

Today was the final day of the RB summit and a group of us ended up heading to Estes Park, since we were not locals and wanted to check out a bit of the area. The colours of the season were spectacular.

Written by Milton Lai

Personal23 Sep 2009 07:37 pm

Written by Milton Lai

« Previous PageNext Page »