-
Content Count
3572 -
Joined
-
Last visited
-
Days Won
121
Lars Fosdal last won the day on September 15
Lars Fosdal had the most liked content!
Community Reputation
1911 ExcellentTechnical Information
-
Delphi-Version
Delphi 13 Florence
Recent Profile Visitors
-
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
True. But I would love a formatter flexible enough to allow it to transmogrify code according to my liking. Currently, there are none, hence I have to do without. -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
That is indeed true. -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
Thanks. I just don't find it very readable - just old and established. -
FYI - Added Delphi 13 Florence to profile settings
Lars Fosdal posted a topic in Community Management
If you have started using Delphi 13, you can now select it on your profile, under Technical information, Delphi-Version. If you haven't selected your version yet, or are using multiple - simply select the latest of the versions that you are using, or the one that you use most frequently. -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
I can do that. I forgot to mention that I also prefer a blank line before and after the conditional blocks, more or less the way it looks in the above example. Edit: @dummzeuch I can't enter a feature request 😢 SourceForge will not let me in if I don't accept their cookie policies - which is unacceptable. Edit 2: Hmm... maybe there is a way around. Edit 3: Done. https://sourceforge.net/p/gexperts/feature-requests/200/ -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
I described it years back in this post. Writing Readable Code - Formatting and Comments. (it seems that the import to Wordpress didn't do the code blocks the best way... I'll see if I can fix that when I get the time. Basically, it is making things as readable as possible, and avoiding bunching code up tight together. Readbility should come first. For instance, I like a line break immediately after conditions, and identation for single statements. Examples: // if then / if then else single statements if Condition then Action; if Condition then Action else Alternative; if Condition // sometimes I use these variation - yeah I know, not 100% consistant. then Action else begin Alternative; end; if Condition then begin Action; end else Alternative; if Condition then begin Action; end else begin Alternative; end; // for / while for var x in Collection do Something(x); for var x in Collection do begin Something(x); end; while Condition do Action; while Condition do begin Action; end; The purpose is to really hi-lite the if/then/else on separate lines, using indentation for breaking the visual pattern when only using simple statements and not blocks. For conditions, I also tend to group/break those to try to improve readability, but here it is very difficult to be consistant. I'd recommend trying to write them like you write other statements - optimizing for clarity, rather than condensing code as much as possibe. -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
I spent nearly a decade undoing my built-in left-pinky-shift uppercase reserved word habit, imbued during the pre-syntax-coloring years 🤣 However, I won't give up my if/then/else formatting, and I haven't found a formatter able to replicate it. So, I guess I don't miss that formatter. -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
I thought everyone had dropped Kaspersky by now. -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
What you really need, really depends on each person. You obviously can't satisfy everone every time. -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
Let me moderate myself - I would have loved WebStencils 5-10-15 years ago, but now I work for a company that do advanced scalable web development, using the industry standards - which is not RADServer or WebStencils. WebStencils could be nice if you need a web UI for a Windows Service or similar, though. -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
I like the WebStencils, but I have no use for it... -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
The C++ guys are prolly excited. I like the new operators, the new generic constraints, PushOpt/PopOpt, NameOf, Basic version support in GetIt. There is a LOT of RTL stuff as well - but that is defintively YMMV. I still wish they would have added a generic constraint for enumerated types to enable the use of Include/Exclude/In etc. -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
Some useful stuff, but YMMV. https://docwiki.embarcadero.com/RADStudio/Florence/en/What's_New -
New Delphi features in Delphi 13
Lars Fosdal replied to David Heffernan's topic in RTL and Delphi Object Pascal
-
If you are have a current subscription license, you can now download RAD Studio 13 from MyEmbarcadero. https://my.embarcadero.com/#downloadsPage You can also see What's New on the doc wiki: https://docwiki.embarcadero.com/RADStudio/Florence/en/What's_New