Patrick PREMARTIN 152 Posted 21 hours ago 5 minutes ago, Attila Kovacs said: By the way, is the bookmarks plugin coming to 13 later? Bookmarks, Navigator and the multi threading debugger extension from Parnassus should arrive on GetIt in a few days. 1 Share this post Link to post
Anders Melander 2096 Posted 20 hours ago 1 hour ago, Patrick PREMARTIN said: The reason is simple : it's disabled for Delphi (but can be used by IDE plugins or for next update or release) It should have been hidden for Delphi. Having it visible but but disabled, with no way to make it enabled, is just confusing; Poor UI design. https://learn.microsoft.com/en-us/windows/win32/uxguide/win-dialog-box#disabling-or-removing-controls-vs-giving-error-messages Share this post Link to post
David Heffernan 2472 Posted 16 hours ago 7 hours ago, dummzeuch said: Autoformat has one huge advantage (apart from laziness, of course): It catches wrong indentations that suggest wrong code flows: if Condition then doX; doY; doOtherStuff; I mean just never ever ever use single statement, always use compound and it's a non problem. Share this post Link to post
Mark- 37 Posted 13 hours ago 10 hours ago, david berneda said: 😂 I can quickly identify code not written by me when I see a minor formatting difference. Even 20 years later 😂 Ditto. I was deposed years ago and the attorney was asking me questions about the code. He had a printout. He got to one part and I said that is not mine. He asked how did I know. I showed him all the code that was mine by the style of formatting I use. That ended the code questions. 1 Share this post Link to post
Attila Kovacs 683 Posted 8 hours ago 5 hours ago, Mark- said: Ditto. I was deposed years ago and the attorney was asking me questions about the code. He had a printout. He got to one part and I said that is not mine. He asked how did I know. I showed him all the code that was mine by the style of formatting I use. That ended the code questions. versioning/blame 🙂 Share this post Link to post
Lars Fosdal 1904 Posted 7 hours ago 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. 1 Share this post Link to post
dummzeuch 1703 Posted 7 hours ago 8 hours ago, David Heffernan said: I mean just never ever ever use single statement, always use compound and it's a non problem. So if you get some source code to work on, you really go through it and add begin/end for every code block? I for one are definitely to lazy for that. 1 Share this post Link to post
dummzeuch 1703 Posted 7 hours ago 32 minutes ago, Lars Fosdal said: 🤣 However, I won't give up my if/then/else formatting, and I haven't found a formatter able to replicate it. What kind of strange formatting might that be? 1 Share this post Link to post
Uwe Raabe 2187 Posted 6 hours ago 40 minutes ago, dummzeuch said: What kind of strange formatting might that be? I was just about asking the same Share this post Link to post
Dalija Prasnikar 1533 Posted 5 hours ago (edited) 1 hour ago, dummzeuch said: So if you get some source code to work on, you really go through it and add begin/end for every code block? I for one are definitely to lazy for that. And then you write things like this https://quality.embarcadero.com/browse/RSP-23924 function TBaseFoo.BrokenFoo: IFoo; var LOwner: TComponent; begin Result := nil; if Supports(Self, IFoo) then Result := Self as IFoo else LOwner := Owner; // if block execution will continue here !!!! while LOwner <> nil do begin if Supports(LOwner, IFoo) then begin Result := LOwner as IFoo; Break; end else LOwner := LOwner.Owner; end; end; Edited 5 hours ago by Dalija Prasnikar 1 Share this post Link to post
David Heffernan 2472 Posted 3 hours ago 4 hours ago, dummzeuch said: So if you get some source code to work on, you really go through it and add begin/end for every code block? I for one are definitely to lazy for that. I don't "get some source code to work on". It's all our own code and we all follow the house style, obviously. Share this post Link to post
dummzeuch 1703 Posted 43 minutes ago 2 hours ago, David Heffernan said: I don't "get some source code to work on". It's all our own code and we all follow the house style, obviously. So you are a lucky one. For me it's also mostly our own code, but some of it is so ancient that it did not follow the our current style. Of course that's only at work, my hobby projects are a different story all together: Many different styles from many different authors. Some even from past me. Share this post Link to post