Skip to content

Author: Norman Palardy

Coding To Be Lazy

I know a lot of people like to write their local variable declarations like this:

dim i, i, j as integerdim k as double, s as string, b as boolean

Personally, I don’t and the reason is not that I like typing…

Comments closed

Oh, Say Can You C?

There is a “bug” here, can you spot it?

dim s as string = "abc" + chrb(0) + "def"
dim c as cstring = s
if s = c then
  msgbox "Yay our software works as we expected!!!!"
else
  msgbox "BOOOOOO!!!!"
end if
Comments closed

Shadowing: You can’t always get what you want (or expect)

Shadowing is when a subclass defines a constant, property or enumeration (almost anything that is not an event or a method) that has the same name as a constant, property or enumeration (but not an event or a method) in the superclass. Generally the best rule is avoid using the same names for constants, properties and enumerations that the superclass has already used.

Comments closed

It’s 10 o’clock. Do you know where your time zone is ?

If you’ve worked with times and dates you know how much fun they can be especially when you deal with different time zones, differing Daylight savings time rules, if they observe DST and all the other intricacies tracking dates and times bring up.

And very often you need to save data to a database. So how do you store the data in your database so you can properly deal with it? And does your chosen database make that easy?

Comments closed

Can You Catch?

This came up recently on the forums and I thought it good to share. Do you see what is wrong with the following code?

Function foo() As FolderItem
  try
    beep
  catch NilObjectException
    return nil
  end try
End Function
Comments closed

6 years and still ticking…

Hard to believe that this year marked my 6th anniversary with Xojo.

I’ve seen a ton of changes over those 6 years – never mind what I’ve seen happen in the 15+ years I’ve been using the product. I’ve been using it literally since before version 1.0 came out since I was on the list for all the developer previews way back when.

Comments closed

Picking A Language At Runtime

One frequent request we get is to make it so users can run an application in any language that an app is built for and NOT the one the OS would use (for OS X see this blog post, Windows and Linux aren’t quite so dynamic).

But sometimes we get requests to be able to create an application that can run in a language that is NOT the same one used by the OS.

Comments closed

How OS X Chooses a Language

As I mentioned in a previous post, beginning with Xojo 2013r4 we will no longer be localizing the IDE into any European languages. Some of our German users on OS X were surprised this morning when they launched today’s release (2013r4) expecting to get the English version of the IDE only to discover it in Japanese instead. Is this a bug?

Comments closed