Visit site Source Code Adventures

February 2010

1
vote
Vote UpVote

Calling All The Sports Fans!

Source Code Adventures – As a community, we have a lot of interactions. We discuss technical issues, argue about architectural or philosophical principles, lament the trials we share and of course, we also engage in endless debates about both Delphi’s imminent death and its ongoing renaissance. We dig up technical glitches, ...
Details Favorite? Off-Topic? Cobus Kruger @ 2010-02-01 10:00

December 2009

3
votes
Vote UpVote

Lots of Little Bits

Source Code Adventures – My last post, Inducing The Great Divide, got quite a reaction. I didn’t really expect the approach to be particularly controversial, but it turns out it was. Lot’s of people asked for more source code and more complex examples and I am happy to oblige. Perhaps it’s a little close to year end to ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-12-07 11:40

November 2009

12
votes
Vote UpVote

Inducing The Great Divide

Source Code Adventures – One of the most important principles in building complex software systems, is detaching  the business logic from the screens that allow users to view and edit information. You’ll notice I said “most important” and not “most popular.” Sad but true – all modern IDEs make it so easy for a ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-11-18 22:36

September 2009

1
vote
Vote UpVote

Getting Data From Anywhere, part 2

Source Code Adventures – My last post underwhelmed everyone a little and I understand why. After all, using events or anonymous methods for this kind of thing is standard fare and it doesn’t even do the job that I set out to do in the first place. It works, in that I am able to take data from any enumerator, but it is ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-09-21 16:20
0
votes
Vote UpVote

Getting Data From Anywhere, part 1

Source Code Adventures – Delphi 2006 introduced enumerators – a way to iterate any kind of collection with the for-in loop. And the VCL is chock-full of enumerators: TStrings has one, so do TComponent, TWinControl, TList, TObjectList and the generic TList<T> and TObjectList<T>. So I recently set about writing a ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-09-16 22:03

August 2009

6
votes
Vote UpVote

Better than you’ve been told…

Source Code Adventures – Strangely, the Delphi 2010 hype machine have slowed down somewhat as we got closer to release date. But I just had my first full day with the new IDE and it’s good. The installer, I have to say, deflated me somewhat. It was slow, and it kept prompting me for the various bits that needed to be ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-08-27 20:40
3
votes
Vote UpVote

Delphi’s broken bookmarks

Source Code Adventures – Delphi 2009’s blue chip features were Unicode support, generics and anonymous methods. Most developers expected Unicode support to be the one to introduce the bulk of the migration headaches. But as with most Delphi versions, Delphi 2009 also saw a number of changes that didn’t quite make it into ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-08-24 21:06

July 2009

10
votes
Vote UpVote

Debunking the Delphi 7 Myths

Source Code Adventures – In my last post on why you really should upgrade from Delphi 7, I seem to have upset a number of people. Some were very angry, some were moderate. Some were eloquent. Most of them were dead wrong! A few of the comments received I really should react to, but I think the volume justifies a follow-up ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-07-30 23:38
11
votes
Vote UpVote

Why you really should upgrade from Delphi 7

Source Code Adventures – Delphi 7 is probably the most popular version of Delphi that has ever shipped. So much so that several developers staunchly stand by their favourite of many years and refuse to move up. But Delphi has really grown with some truly fabulous things getting added in the time since the old stalwart ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-07-27 09:00
2
votes
Vote UpVote

Hellishly Horrible Hack #1: Changing an object’s functionality without recompiling

Source Code Adventures – Yup, you read that right. This one comes with a big disclaimer. It’s been tested and works but don’t read on if you are squeamish. The set-up is like this: We have an application that is deployed via XCopy and a second team in another city who is watching this with a hawk-eye. They have a stable ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-07-13 18:33
3
votes
Vote UpVote

Translating flags in API calls, part 2

Source Code Adventures – As promised, this is part 2 of my article on translating flags in API calls. If you haven’t read part 1 yet, please do so now. Sometimes, you get API calls that make real hefty use of flags. One such example is DrawFrameControl, which has one flag to specify the type of control to draw as well as a ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-07-06 21:17

June 2009

0
votes
Vote UpVote

Translating flags in API calls, part 1

Source Code Adventures – OK, so we have all seen the way that flags are passed to API calls. Take the ShowWindow function. In Delphi it is declared as this: function ShowWindow(hWnd: HWND; nCmdShow: Integer): BOOL; stdcall; Now, there is nothing wrong with the declaration – it will work, is well documented and is of course ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-06-28 11:46
0
votes
Vote UpVote

12 Delphi code templates to save keystrokes

Source Code Adventures – Sometimes, typing is just no fun. As a programmer there are certain things that you need to type over and over (and over and over) again, with only the smallest of differences. For example, how often have you declared a property that looks like this: property SomeProp: Integer read GetSomeProp write ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-06-24 01:02
0
votes
Vote UpVote

What’s wrong with floating-point?

Source Code Adventures – Every so often, floating-point data types come under renewed criticism. There are plenty of good reasons to whisper behind their backs, but are they really all bad? The basic problem is that floating-point types represent any value as an approximation. It works really well too. In fact, for most ...
Details Favorite? Off-Topic? Cobus Kruger @ 2009-06-22 23:13
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)