Jump to content

Lars Fosdal

Administrators
  • 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 Excellent

Technical Information

  • Delphi-Version
    Delphi 13 Florence

Recent Profile Visitors

29206 profile views
  1. Lars Fosdal

    New Delphi features in Delphi 13

    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.
  2. Lars Fosdal

    New Delphi features in Delphi 13

    That is indeed true.
  3. Lars Fosdal

    New Delphi features in Delphi 13

    Thanks. I just don't find it very readable - just old and established.
  4. 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.
  5. Lars Fosdal

    New Delphi features in Delphi 13

    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/
  6. Lars Fosdal

    New Delphi features in Delphi 13

    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.
  7. Lars Fosdal

    New Delphi features in Delphi 13

    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.
  8. Lars Fosdal

    New Delphi features in Delphi 13

    I thought everyone had dropped Kaspersky by now.
  9. Lars Fosdal

    New Delphi features in Delphi 13

    What you really need, really depends on each person. You obviously can't satisfy everone every time.
  10. Lars Fosdal

    New Delphi features in Delphi 13

    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.
  11. Lars Fosdal

    New Delphi features in Delphi 13

    I like the WebStencils, but I have no use for it...
  12. Lars Fosdal

    New Delphi features in Delphi 13

    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.
  13. Lars Fosdal

    New Delphi features in Delphi 13

    Some useful stuff, but YMMV. https://docwiki.embarcadero.com/RADStudio/Florence/en/What's_New
  14. Lars Fosdal

    RAD Studio 13 is available

    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
×