Visit site Yet Another Programming Blog
June 2009
2
votes
Extending TObject with data at runtime
Yet Another Programming Blog
– In a recent comment on this blog someone suggested a way of extending an existing object instance with custom data at run-time. The main idea is to be able to “assign” to an arbitrary object (whose sources you cannot change) some other object at run-time. This may prove to be useful in ...
4
votes
Enumerating over a directory structure
Yet Another Programming Blog
– Me again, and again with enumeration techniques. In this post I will try to coven a very common problem all programmers have to face one time or another: enumerating all files recursively in a directory. Yesterday I had to do it again, and again following the standard FindFirst … FindNext and ...
3
votes
Arbitrary precision integers
Yet Another Programming Blog
– I have decided to extract the BigInteger and BigCardinal data types from DeHL and make a bundle with them separately. Someone may be interested in these types and not so much in DeHL. The attached unit should compile on D2007 and D2006 (not sure for earlier versions). What can you learn: Shows you ...
10
votes
Playing with Windows 7
Yet Another Programming Blog
– I was playing around with some (default Windows) programs these days and noticed that taskbar items for those programs show some cool effects whenever there is some progress going on So I decided to write a little unit to take advantage of these effects in one of my Delphi applications. To take ...
3
votes
DeHL documentation
Yet Another Programming Blog
– Since I had a few requests, I have started putting together some documentation on DeHL. It’s pretty basic and only includes some conceptual stuff, not API documentation. You can find it here. Version 0.5 is shaping up quite well with tons of changes, and new stuff coming in — but ...
May 2009
5
votes
What’s new in DeHL 0.4
Yet Another Programming Blog
– In the previous post I have mostly talked about Enex (Enumerable Extensions) I have enabled for all DeHL’s collection classes. Now I will list the other changes that got into this release that may be of interest to you: Enex (Enumerable Extensions) in DeHL.Collections.Enex. Support for ...
7
votes
DeHL 0.4: Linq-ifying Delphi
Yet Another Programming Blog
– Since I have started working on DeHL, one of the main purposes was to get to the point where I could use Linq-like extensions on collection classes. Of course I could not call the new functionality Linq since it’s not language-integrated, so I decided to give it another name: Enex (aka ...
2
votes
More about enumerables
Yet Another Programming Blog
– In the last post I have described how enumeration works in Delphi. Now I will try to expand the subject a bit and make a more general description of what enumerability actually means and how it can solve some basic problems and patterns. “An enumrebale is not necessarily a collection“. ...
2
votes
Enumerables in Delphi
Yet Another Programming Blog
– It is not a surprise that most programming languages in our time have the built-in support for enumerators/iterators. This is a mandatory feature since enumerators and enumerable collections simplify the development of applications and make the code cleaner. Languages such as C#, Java or Delphi have ...
April 2009
4
votes
DeHL 0.3 is out
Yet Another Programming Blog
– I’m proud to announce the 0.3 version of DeHL library. This release focused on bug-fixes and extensions to type support engine. This version should pretty much stabilize what I started and should leave me more time to extend other interesting parts of the library such as collections. For those ...
2
votes
I hate integers!
Yet Another Programming Blog
– Did I catch your attention? I guess I did if you are reading this. Just to be clear, I don’t hate integers — I hate using integers (a.k.a. signed numbers) where they don’t make sense. For example let’s take the standard intrinsic routine called Length (in System unit). It ...
0
votes
DeHL 0.2.3 released
Yet Another Programming Blog
– Not many changes in this release: Fixed a bug in BigCardinal related to zero-length numbers BigCardinals embedded in variants now properly negate. Support for the NOT operation for BigCardinal. … As usual some tests. 0.2.3 is based on 0.2.2 and not on the trunk since trunk is seriously ...
March 2009
0
votes
DeHL 2.2 Released
Yet Another Programming Blog
– In this release I have changed the name of the library from DelphiHelperLib to DeHL to be shorter. The most important changes in this release are: Renamed the library to DeHL in hopes to remove the length of the unit names. Renamed all classes to use the T prefix rather than H. It was an unfamiliar ...
2
votes
How To: Invokable Variants
Yet Another Programming Blog
– In this post I will try to explain how to create a “late-bound” dictionary based on invokable variants. Most of the techniques related to the creation of a custom Variant data type are already described in How To: Creating a custom Variant type. To store the Key/Value pairs in my custom ...
0
votes
Little warning
Yet Another Programming Blog
– If you’re ever going to write a custom invokable variant read the following, otherwise just skip this post. I will not detail on how to create a custom invokable variant type (that is a matter for another post), but simply give an advice related to how function and procedure calls should be ...



