Archive for the ‘Delphi’ Category
Posted by jpluimers on 2014/02/18
About a year ago, I wrote about Delphi: you should avoid the with statement as it makes your code less future proof. Then I already tweeted I would follow up. Time to do it now (:
Besides my first post, these links inspired me most:
Posts about the with statement usually cause a stir: people either like or dislike it with passion.
Starting with some history and examples, this posts lists a few DOs and DON’Ts when using the with statement, shows advantages and drawbacks, and shows you tools to eliminate with statements. Read the rest of this entry »
Posted in Borland Pascal, Delphi, Delphi 1, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi 8, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Pascal, Software Development, Turbo Pascal, With statement | 9 Comments »
Posted by jpluimers on 2014/02/14
Very interesting: Install AndroVM in VMware Player/Workstation – YouTube.
The successor is Genymotion “the faster Android emulator”, and seems to have an easier installation path: Run Android on Your Desktop With Genymotion Android Emulator.
One of the drawbacks of going native: the Delphi for Android compiler currently only generates ARM Android code, otherwise this would be a great way to test your apps.
But it works fine if you use Java, Oxygene for Java or MonoDroid: much faster than the emulator (which you cannot run in a VM at all).
There seems to be a way to install ARM translation, so I need to check that out: android – How to install google play service in the genymotion (ubuntu 13.04) .Currently it doesn’t have drag and drop suport – Stack Overflow.
–jeroen
via: Koushik Dutta – Google+ – Even if Microsoft is considering supporting Android apps on….
Posted in .NET, Android, Android Devices, Delphi, Delphi XE5, Development, Mobile Development, Mono for Android, Power User, Software Development | Tagged: Android emulator, VMware | 4 Comments »
Posted by jpluimers on 2014/02/13
Summary: Always try to avoid sharing .DCU files between projects.
I see a lot of projects at clients that do not have their individual DCU directories set (therefore having the DCU files in the same directory as the PAS files causing shared units to share the DCU files), or share DCU files among different projects.
Both are a very bad idea, as the compiler does not always understand when the DCU file does not match the combination of PAS file and compiler options.
The result is the occasional use of the DCU file in stead of the PAS file causing wrong code to be used, or wrong debugger information to be included.
Danny Thorpe phrased it on Stack Overflow: Read the rest of this entry »
Posted in Borland Pascal, Delphi, Delphi 1, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi 8, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, FreePascal, Lazarus, Pascal, Turbo Pascal | 9 Comments »
Posted by jpluimers on 2014/02/12
Do not forget to register for the RAD-in-Action Webinar Unit Testing in Delphi featuring Nick Hodges.
If you cannot watch it live: register anyway, as that will give you the URL for the replay download.
Very interesting stuff (I attended his sessions during the German EKON Conference) and a very entertaining speaker.
He is going to cover a lot in this seminar, and it is a great addition to the material in his Coding in Delphi book (Warren Postma wrote a nice review). You get the electronic edition of the book free when you have Delphi XE5, a hard-copy should be available soon. Read the rest of this entry »
Posted in Delphi, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, Software Development | Tagged: Delphi, nick hodges, Warren Postma | 1 Comment »
Posted by jpluimers on 2014/02/12
Just as a few small notes as a reminder to myself:
- bash profile shortcuts to the right PAServer or paserver
- PAServer command-line options
- example output of PAServer commands
Lets get started: Read the rest of this entry »
Posted in Delphi, Delphi XE3, Delphi XE4, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2014/02/03
With a more decent internet connection during our trip, it is time to catch up on some recent news.
The first that caught my eye was that the Chromecast API now is open to all developers.
Developer information is available through Casting Your Content to the Big Screen – Google Cast — Google Developers.
You need to pay a one-time USD 5 fee per development account (how’s that Apple?) for the Google Cast SDK Developer Console.
After that, you will have to register your Chromecast device(s) and custom or styled media receiver apps.
Interesting. Fun.
I hope this can be combined with the new Smart Mobile Studio 2.0 release or the Delphi for Android support.
Will get back on that as soon as I’m back home.
Resources:
More links:
–jeroen
via: Chromium Blog: Ready to cast: Chromecast now open to developers with the Google Cast SDK.
Posted in Chrome, Chromecast, Delphi, Delphi XE5, Development, Google, JavaScript/ECMAScript, Pascal, Power User, Scripting, Smart Mobile Studio, Software Development | 1 Comment »
Posted by jpluimers on 2014/01/29
In the series “interesting stuff you can do with Implicit operators”: delphi – With a class operator is an implicit typecast to itself allowed? – Stack Overflow.
Be careful though, as Implicit assignment will allow more code paths to the compiler than you expect at first sight (:
–jeroen
Posted in Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2014/01/28
I was amongst the C# programmers that believe the below table of C# integral types is an alias table. But it is not: it is a synonym table.
You can use the common type system types as coding standard, or prefer the C# types. There are arguments for both.
I am still in the first group: prefer CTS types. They make changing between .NET languages a lot easier (C# and VB.NET are not the only .NET based CLI languages I use).
And indeed almost everywhere you can exchange the .NET Framework Type and the C# type without changing meaning.
Posted in .NET, C#, Delphi, Development, Jon Skeet, Software Development | 1 Comment »