Make your Source Code more Readable When Passing a Boolean.

Suppose you have a C++ function declared as follows:

void UpdateDisplay(bool WithDelay);

and somewhere later you want to use this, calling it without the delay.

You could write:

UpdateDisplay(false);

But a simple way to make your source code more readable (and hence more maintainable by yourself and your team in the future) is to write:

const bool WithDelay{false};
UpdateDisplay(WithDelay);

When you compile this code for release the local variable “WithDelay” will be optimised away so this improvement to source code readability incurs no performance cost penalty.

RAD Studio 10.4.2 Is Coming

RAD Studio 10.4.2 Is Coming

Version 10.4.2 of Embarcadero RAD Studio 10.4.2 (and the associated versions of Delphi 10.4.2 and C++ Builder 10.4.2) was promised in the most recent Embarcadero road map for “first half of 2021”.

It looks as if it is going to be early in the first half of 2021 as a webinar promoting this new version and describing the main new features and improvements it will include is available to all on 24th February 2021.

To register for the Webinar click here.

For more information about the Webinar, along with a summary of what 10.4.2 promises, click here.

Embarcadero Publish Updated Road Map

Embarcadero have just published a new developer tools road map.

The actual road map can be viewed by clicking here

There is a blog offering more information about the proposals, by Marco Cantu and David Millington available by clicking here.

The great news is that C++ 64 bit for Android is still up there, albeit a tantalising way off yet…..

The improvements to the IDE, C++ debugging and additional VCL controls also sound great !

Embarcadero Dev C++ Open Source Project

Embarcadero have recently announced that they are becoming a key player in the open source project Dev C++ and have created there own fork at

https://sourceforge.net/projects/embarcadero-devcpp/

This is an interesting development. It shows that the company is aware of the open source route and is actively testing how open source can “fit” in their business model. Dev C++ (at least as it currently stands) is based around the Mingw (windows port of Gnu C++ ) compiler. (Remember the main Embarcadero RAD Studio product is based on the clang C++ compiler family).

#DesktopFirst ! – Embarcadero Summit

As well as very recently releasing RAD Studio 10.4.1 (see previous post) Embarcadero have launched their #DesktopFirst summit.

Embarcadero are very wise to be promoting desktop design in this way. It’s a subject that is still of vital importance and has lost a bit of public (and developer’s !) focus recently.

I’m pleased to say that I will be making a short presentation as part of this event. With the title “Right Click is Right !” I will be suggesting that the orginal Windows approach to applications design (do you remember Windows 95? or earlier?) has a lot going for it.

Click here to join the summit. It will be a fascinating experience !

 

RAD Studio 10.4 – Being Well Received !

Recently released RAD Studio version 10.4 “Sydney” seems to being well received by everyone. I’ve just moved a project due for delivery at end of June across from 10.3 to 10.4.

There’s a good video about what’s new at:

What’s new in 10.4

There’s also a load of support / demonstration material on a Google Drive shared folder provided by Embarcadero at:

Shared google drive folder for RAD studio

RAD Studio 10.4 is here !

Embarcadero have now released RAD Studio version 10.4 – named after the great Australian city of Sydney.

There are many new features in this release as summarised here.

Marco Canto has put together a list of sites related to this new release in this blog.

You can download a trial version from here.

So what are you waiting for? Get developing Windows / Android / IOS applications now!

Code Review – Guidelines

I’ve taken on a new role for a software project based on Embarcadero Delphi code, that of Code Reviewer.

I’m a C++ programmer and have little experience with actually writing or debugging Delphi code.

So does that mean that I am the wrong man for the job?

Here are two things I won’t be doing:

I won’t be testing the code by running it (other people in the development team will be doing this alongside the original testing done by each other programmer as he/she develops the code).

I won’t be looking for syntax errors. The code should compile and run before it is passed to the code reviewer.

So what will I be doing?

I will be looking at the overall method used to perform the functions. Is it a sensible algorithm? Are looping structures sensibly implemented?
I will be looking at the choice of names used for variables, procedures and functions (there are plenty of blog postings about this here!).

I will be looking at comments, particularly any lengthy text that summarises the tasks achieved by the code to try to ensure that they are clear and simply written yet are accurate and complete and not open to misinterpretation. I will also check that they actually exist at the top of each source code file.

Whilst doing so I will be careful to be positive and respectful to my fellow team members. In particular for many, English (the language used for the code and comments) may not be the native language of some of the team members so any grammar / spelling or improvements to accuracy or coherency of explanation will be done in a sensitive manner.

That’s my aim.

If you consider these items you realise that in depth experience with Delphi is not a prerequisite to achieving the aims. In fact it may be argued that a lack of in depth expertise may even be useful!