The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,182 other subscribers

Archive for December, 2010

New years resolution: CHASM64 – More on Delphi x64 by twitter kylix_rd (Allen Bauer)

Posted by jpluimers on 2010/12/29

As a continuation of the previous assembly, the new twitter kylix_rd messages on Delphi x64:

To save people from browsing Twitter history: the first link in the quote has the CHASM64 picture :-)

kylix_rd:

I wonder what to make of this? http://yfrog.com/h2e20wp
28 dec

@davidheff I cannot confirm or deny any relationship CHASM64 has to dcc64 ;-)
24 Dec

kylix_rd Allen Bauer
As a followup… there is now a CHASM64 folder in the dev tree.
23 Dec

kylix_rd Allen Bauer
Interesting tidbit; The current Delphi inline assembler is called CHASM internally. Why? Chuck J. wrote it for Kylix. CHuck’s ASM = CHASM
23 Dec

kylix_rd Allen Bauer
Another reason why writing tools for x64 is a bit more fiddly than x86: http://bit.ly/hh3Q59 . Now consider the restrictions on asm…
15 Dec

kylix_rd Allen Bauer
Another excellent discussion of the x64 calling conventions ABI: http://bit.ly/hgLl8N
15 Dec

–jeroen

via: More on Delphi x64 by twitter kylix_rd (Allen Bauer) « The Wiert Corner – irregular stream of Wiert stuff.

Posted in Delphi, Development, Software Development | 5 Comments »

SwitchResX helped me switch my Mac machine to 1360×768 and 1888×1062

Posted by jpluimers on 2010/12/24

A while ago, I got involved in Mac programming again after more than a decade of absence.
It felt like a warm reunion.

A Mac Mini Server serves as a development machine: it is about the same price as a regular Mac Mini, but packs 2 HDDs which for me is more useful than one HDD and a DVD player.

However, living in the Windows world for a long time long, and having had RSI in the DOS era almost two decades ago, I had a few wishes for using it.

The first was keyboard wise. The second is custom resolutions. Read the rest of this entry »

Posted in Apple, Development, Keyboards and Keyboard Shortcuts, Power User, RSI, Software Development, UltraNav keyboards, xCode/Mac/iPad/iPhone/iOS/cocoa | 10 Comments »

iBook store: Apple Published Six Free Electronic Books for Developers

Posted by jpluimers on 2010/12/23

Apple added some of their on-line books to the iBooks store for off-line reading on your iPad (or iPhone, though I double people will use that for readong).

Since you can only get to those from your iPad/iPhone iBook app, I included google search links for the online versions:

Note that iOS Human Interface Guidelines is not availeble outside the USA iBook store.
But it is almost as easy to read your PDFs through the DropBox iPad app (it even links to iBooks if you want to!).

Sharing your PDFs using DropBox has the added benefit that you can have the PDF both on your development machine and your iPad for reference.

–jeroen

via Apple Publishes Six Free Electronic Books for Developers | Cult of Mac.

Posted in Development, Software Development, xCode/Mac/iPad/iPhone/iOS/cocoa | 2 Comments »

Great post on “Single Responsibility Principle”: SRP, as easy as 123… | Hadi Hariri’s Blog

Posted by jpluimers on 2010/12/22

SRP (Single Responsibility Principle) is not limited to classes.

Often I see source files running like thousands of lines.
That surely is a sign if code smell, and leads to lots of problems, especially when working with teams of people, or sharing sources across multiple projects.

SRP solves these and other problems, regardless of programming language or framework you use:

  • hating your version control system because merges are a pain
  • tripping over the same source file because you need to change it for the umpteenth time each from a different perspective
  • searching for that line of code within dozen comment blocks that explain old versions of its intricacies

Hadi Hariri –  evangelist at JetBrains – has a great post called SRP, as easy as 123… on his blog (and refers to the fantastic Clean Code book by Robert C. Martin).

SRP originates from objec oriented design, but for me, SRP is not limited to classes.
For me, SRP is all about the design of your apps and the structure of your code.

Classes are just one form of ‘boxing’ things, as are interfaces, source files, services, forms, etc.
All these boxes change, and you need to be prepared for that.

Which leads me to the statement that he only thing you know about code is that it will change.
Did I mention you need continuous integration to get a grip on change?

–jeroen

Posted in Agile, Development, Software Development | Leave a Comment »

cocoa pointer types: the * is mandatory

Posted by jpluimers on 2010/12/21

Coming from a Delphi background I’m highly spoiled by the feature that you do noe need to explicitly mark each and every use of a reference, pointer or class type as being a pointer: they always are, so Delphi implicitly knows. No need for a ^reference marker there (yes, there are a few corner case exceptions to this rule).

The same holds for .NET languages: they know when a type is a reference type, no need for those extra characters.

The Objective-C compiler – used for building cocoa applications in xCode – doesn’t know, so you have to include a star whenever a type is to be used as a pointer.

For instance, this will yield a compiler error “Cannot use object as a parameter to a method“: Read the rest of this entry »

Posted in Development, xCode/Mac/iPad/iPhone/iOS/cocoa | Leave a Comment »

 
%d bloggers like this: