Profile cover photo
Profile photo
Roland Bengtsson
98 followers
98 followers
About
Posts

Post has attachment

Playing around with Berlin 10.1 and discovered what I almost feel is a compiler bug

unit Unit3;

interface

uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs;

type
TTestClass = class
public
constructor Create(const aMessage: String);
procedure Proc(const aMessage: String);
function Func(const aMessage: String): Boolean;
end;

TForm3 = class(TForm)
procedure FormCreate(Sender: TObject);
private
fTest: TTestClass;
{ Private declarations }
public
{ Public declarations }
end;

var
Form3: TForm3;

implementation

{$R .dfm}

procedure TForm3.FormCreate(Sender: TObject);
begin
fTest := TTestClass.Create('Create Class');
fTest.Proc('Call proc');
fTest.Func('Call func');
end;

constructor TTestClass.Create
{ (const aMessage: String) This line can be commented out };
begin
ShowMessage(aMessage);
end;

procedure TTestClass.Proc
{ (const aMessage: String) This line can be commented out };
begin
ShowMessage(aMessage);
end;

function TTestClass.Func()
{ (const aMessage: String) This line cannot be commented out *}: Boolean;
begin
Result := True;
ShowMessage(aMessage);
end;

end.

I think it is an error to not have the same signature on class definition and implementation. But it works fine to leave that out. At least a hint!
Also tried the same with Delphi 2007 and the same behaviour.

Post has attachment
I work in a team that develop a big application for transport goods with trucks. It supports book, plan and invoicing of the goods and a lot more.

We use modeldriven development. It means a UML model is the core. From the model a DB scheme is generated and a code skeleton. We have worked on this for many years.

Recently a customer use the application also for person transport. So the same principle but transport persons instead of goods. Now it turns out that this new way only use a fraction of the features.

Git and Github.com is used as revision system. Now it was decided to make a branch for the new person transport application. The master branch and new will never be merged and seperate issues will be created for both branches as they need to be tested separate.

Now I discovered this have disadvantages. I recently improved the core part of the model. This is used in both old and new branch. So basically I have to do 2 issues for this and do the same thing twice and commit in both branches.

This feels a bit ineffective. Comments and suggestion are appreciated :)

Post has attachment
True Unit tests in Bold ?
I think you all heard about unit testing. Maybe some of you even practise it? I recently bought Dependency Injection book by Nick Hodges. It is about to have loose coupled classes. And this is a precondition for true unit-test where each class is tested ind...
Add a comment...

Post has attachment

Post has attachment
http://boldfordelphi.blogspot.fi/2017/03/new-qc-issue.html

To revive Bold for Delphi is one of the most voted things in old quality central. Consider to also vote on this new one.

Post has attachment
New QC issue
Just made new issue in Embarcadero quality central https://quality.embarcadero.com/browse/RSP-17015 This is basically a clone of old issue on  http://qc.embarcadero.com/wc/qcmain.aspx?d=97382 with 310 votes. Please continue vote on issue and sign my petitio...
Add a comment...

Post has attachment
Add a comment...

Post has attachment
I use VmWare Workstation with latest version of Windows 10 as host and guest. In the vm I run Delphi IDE and application. Disadvantage is that much diskspace is wasted.

Is is possible replace VmWare Workstation with Docker for a more lightweight solution ? See http://www.docker.com

Docker
Docker
docker.com

Post has attachment
Wait while more posts are being loaded