Posted by Jeroen Pluimers on 2013/12/12
StackOverflow user David Heffernan – Stack Overflow has an interesting take on Delphi postbuild events:
At the moment my actiona read:
if exist PostBuild.bat call PostBuild.bat $(Platform) $(Config) $(OutputDir)
And then the
PostBuild.bat script calls a Python script so that I can write my scripts in a real language.
I actually impose the build actions in a shared option set that I reference from all of my projects. That way I enforce consistency and predictability.
I know others use tools like FinalBuilder but building is so important that I feel it’s worth my effort in rolling my own tooling.
– David Heffernan Feb 14 at 20:24
via: Delphi XE3: Problems with complex pre-build events – Stack Overflow.
Posted in Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Development, Software Development | Leave a Comment »
Posted by Jeroen Pluimers on 2013/12/11
One of the easy things in *nix is to set the value of an environment with the output of a command.
Something like this is possible in Windows too, but you have to instruct Windows to keep an empty set of delimiters to capture the full first line.
There is also a small but important difference between Windows and *nix upon command failure: *nix will always return an empty value, but in Windows you must make sure to empty the value first.
Thanks Jesse Dearing for this summary: Read the rest of this entry »
Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows | Leave a Comment »
Posted by Jeroen Pluimers on 2013/12/10
Some things you have done for ages, are already phrased so nicely, the only thing you can do is quote.
Thanks Dave Coulter:
You can attach the Visual Studio debugger to a process by:
Debug > Attach to Process > Attach Read the rest of this entry »
Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Software Development, Visual Studio 11, Visual Studio 2002, Visual Studio 2003, Visual Studio 2005, Visual Studio 2008, Visual Studio 2010, Visual Studio and tools | Leave a Comment »
Posted by Jeroen Pluimers on 2013/12/09
The fact that the 31-character limit on ClientDataSet field and index names is worse, but I just encountered this
GetParamNameWODog function in a Delphi 3rd party library:
What’s wrong with using the Length function here?
Yes, SQL Parameter names will probably less than 1000 characters, but then the
1000 literal should be a constant with a meaningful name, and the
'@' literal should be too. Read the rest of this entry »
Posted in Delphi, Delphi XE3, Development, Software Development | Tagged: index names, Length function, meaningful name | 12 Comments »
Posted by Jeroen Pluimers on 2013/12/05
This was originally scheduled for December 1st at noon and therefore made it to the “Missed Schedule” list as well:
Two interesting sites I found recently:
OwlyCI is like NuGet for Delphi. They add Delphi open source repositories, and provide them as installable packages, and shows build statistics.
Ohloh provides statistics (including build statistics!) for open source repositories (any language and environment) and shows various other statistics like check in counts, LoC, etc. Koders merged into Oholoh about a year ago.
I think they should team up (:
Posted in Delphi, Development, Software Development | Leave a Comment »