|
Assignment is the most used operator in procedural programming. Choosing a two characters sequence for assignment and just a single character for comparison is rather unfortunate.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Yeah,
I really LOVE the JS approach of =, ==, ===, ==== (I hope I didn't miss a comparison,
I forget which one means the left side is equal, in context, but not of type, against a mutated version of the Right Hand Side... LOL)
The := jams me up when I switch between other languages, admittedly.
But I will argue that the "." is the most used, as in
sVal := dsCustomer.FieldByName('Value').AsString;
|
|
|
|
|
Kirk 10389821 wrote: sVal := dsCustomer.FieldByName('Value').AsString; I've not written 'procedural' by chance.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
COBOL pointers
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
Let's not go there - some of us will have eaten recently ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
05 WS-POINTER-VAR USAGE IS POINTER.
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
%%%%%%
%%%% = =
%%C >
_)' _( .' ,
__/ |_/\ " *. o
/` \_\ \/ %`= '_ .
/ ) \/| .^',*. ,
/' /- o/ - " % '_
/\_/ < = , ^ ~ .
)_o|----'| .` '
___// (_ - (\
///-( \' \\
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
lol
I was unaware of that...
|
|
|
|
|
Some later versions of Algol (maybe W and 68R / 68S ?) could emulate pointers but they weren't a feature of 58 or 60. The nearest Algol-60 came to pointers were 'thunks' - functions passed as parameters, which 'modern' languages think that they invented. C is notorious for pointers.
I found Pascal cumbersome - so many meanings of the word END. It's only useful feature was ATFs (anonymous tag fields). Admittedly, my experience of it was mostly porting the P-Code compiler and optimising its expression evaluators.
|
|
|
|
|
Well, you're answer shows that you haven't had a look at current Pascal for at least 30 years...
|
|
|
|
|
Deplhi... ok it is Pascal, never used it. But you can use the same environment with c++ Builder (since more than 20 years).
|
|
|
|
|
Yes, I know that.
In my opinion the documentation is poor (MSDN is much better).
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
CPallini wrote: Personally, I can't stand Pascal syntax.
You can use C ++ instead of Delphi (or together with Delphi) because RAD Studio, which contains both Delphi and C ++ Builder, is able to do (almost) everything Delphi does (regarding supported platforms) and much more than Delphi if you keep I realize it has a C ++17 compiler that consumes many of the open-source libraries out there (including boost libraries).
|
|
|
|
|
Yes, I am aware of that. Your point is similar to the one of Member 15056742 above (however you provide more details). Unfortunately, in my experience, the related documentation is poor (MSDN is far better).
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
CPallini wrote: Yes, I am aware of that. Your point is similar to the one of Member 15056742 above (however you provide more details). Unfortunately, in my experience, the related documentation is poor (MSDN is far better).
Yes, MS is a much larger company than EMB, so it can do a lot better in areas like documentation. Nonetheless, for teams or single developers, productivity is much higher than with MS tools. I don't want to be misunderstood, as I use VS Code a lot, but to have a complete product in a short time, with GUI, networking, complex algorithms, database at any level and which has a very low impact on resources and which has dependencies only on the operating system, Delphi and its cousin C ++ Builder have no equal.
|
|
|
|
|
raddevus wrote: Are people out there still using Delphi? Yes. Just like there's still VB6 apps out there.
Yes, we back; lets not make a fuss, aight?
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Yes offcourse Delphi is still used.
There is a new version every year, and I must say Embarcadero has done a reasonable job at getting Delphi back to the best development environment again. After Delphi 7 Borland made bad choises which finally gave microsoft opportunity to catch up (also getting Anders from Borland into their team helped offcourse)
The only backdraw is its cost, it is much to expensive in my opinion, but given a choise I would get back to Delphi immediate.
|
|
|
|
|
Quote: Are people out there still using Delphi?
Not Delphi specifically, but Lazarus (which compiles Delphi code too) is probably more popular than Delphi at this point in time.
I've been using it and it isn't all that bad.
|
|
|
|
|
I had forgotten about Delphi.
Now I need to go for trauma counseling.
Nothing succeeds like a budgie without teeth.
|
|
|
|
|
I am still actively developing/maintaining an existing Delphi/Oracle application with over 3m lines of code that is not economically viable to migrate onto newer platforms.
Where possible new modules are being added using C#, usually ASP.NET or services but the core application remains Delphi.
The biggest issue I have with Delphi is the lack of modern syntactic sugar, poor out of the box serialization support and difficulty finding code examples anywhere online these days. I agree it should definitely be considered a legacy language.
|
|
|
|
|
I am also actively developing things in Delphi and maintaining both large and small existing applications.
For Desktop app development it is by far the most productive environment I know. Too sad that it is perceived as legacy, but then it seems that the whole concept of Desktop apps is becoming legacy - apparently running everything in a browser is the way to go these days. So in that respect WinForms and WPF is legacy too .
|
|
|
|
|
Jan Holst Jensen2 wrote: So in that respect WinForms and WPF is legacy too
I actually totally agree with that statement.
Desktop development is now legacy. And, I actually understand it a bit too, since the desktop is now passe. I run Ubuntu 20.04 and only use Win10 through remote session/VMs to do work at job.
THe only thing I cannot do on Ubuntu is...win10 desktop development (which we do at work).
Not trying to be a Linux fanboy, just interesting. And, honestly Ubuntu uses less ram, runs less background processes that eat my processor, etc. Just lighter-weight than Win10.
|
|
|
|
|
I also like Linux and use it quite a bit. When on Linux I use LibreOffice, GIMP, QtCreator, GEdit, Atril document viewer, SimpleScan ... and sometimes a browser. So mostly Desktop applications .
But hey - I am over 50 so I am legacy myself .
|
|
|
|
|
Our main application was written over many years in Delphi v5 (yes version 5). This is now being converted to WPF.
We have the complication that the WPF .Net code has to integrate with Delphi and open in MDI windows within the main Delphi application.
Eventually all the Delphi screens and functionality will be rewritten and we will switch over to a complete .Net application. Still many screens to be done.
|
|
|
|
|
I still maintain some programs written in Delphi 5 ...
|
|
|
|