Re: Delphi to C#?



In article <4642c328@xxxxxxxxxxxxxxxxxxxxxx>, joanna@xxxxxxxxxxxxx says...

cmd.SQL := 'update customer set name = :edtName where id = :cust_id';
cmd.Param('cust_id') := iCustomerID;
cmd.Execute;

to set the name of a customer to the value in the TEdit (NOT TDBEdit)
called "edtName".

:)

But you are not connecting an edit to a property of an object.

In that implementation no - but it could quite easily have been extended to
use RTTI to reference specific published properties of some object (or
control).

In fact, just after posting I had this precise realisation. Thx.

:)


Sure, if you want difficult to maintain apps then you can use the RAD,
all code on the forms approach where each form has to be hand coded, or
you can design easy to maintain, well designed OO apps.

Not all apps need a fully-fledged business object model. ime Having one where
one isn't appropriate nor necessary can make an app more difficult to maintain
just as much as not having one where one is needed.

It's also worth bearing in mind that the implementation was inspired by the
Gupta SQL/Windows language, but in that case you could directly reference
program variables by name in your SQL, as well as controls, which would make
the technique just as useful in a non-UI business object.

I never spent the time figuring out if this was even possible in Delphi,
primarily because I suspect that it isn't, at least not in a way that would be
useful.

:(


For us, developing frameworks and our app in .NET has been neither easy
nor fast but, if you enjoy good OO design, it sure has been fun :-)

This is a very peculiar thing to say. There is nothing in .net that makes it
inherently more "fun" (whatever that means) or better suited to good OO design
than any other OO language or environment.


It strikes me that perhaps you are confusing the accumulated experience of the
years of working with Delphi with the transition to .net.

I reckon if you started with a clean *** with Delphi and applied all the
lessons you learned from Delphi that you are applying in .net, that you would
realise that it's not actually .net that's making the difference at all.

Maybe?

<shrug>

-
JS
.