Jump to content

Lars Fosdal

Administrators
  • Content Count

    3416
  • Joined

  • Last visited

  • Days Won

    113

Everything posted by Lars Fosdal

  1. Lars Fosdal

    Delphi 64bit compiler RTL speedup

    Chance that I will download and use some DLL from an unknown third party: None.
  2. Lars Fosdal

    IsElevated

    If you want it to always run elevated, you can specify that in the manifest.
  3. I hope you are fully recovered, and that you and your family are ok!
  4. Lars Fosdal

    10.4.1 IDE wait/working cursor

    One thought: Something that revealed a performance bottleneck to me a few years back, was when I unintentionally managed to include a network drive in my search path. Where are your sources located? SSD? HDD? Network?
  5. Lars Fosdal

    10.4.1 IDE wait/working cursor

    Also on 10.4.1, but not seeing this issue.
  6. After doing a lot of SQL, I find myself wanting to name parameters in Delphi too... TFileSearcher.FindFiles('c:\', aRecursive := True);
  7. Lars Fosdal

    Customizing source editor

    It makes missing string quotes obvious, and it helps clarify text building expressions.
  8. Lars Fosdal

    Customizing source editor

    SourceCode Pro - No italics BG = Cream Current line = light greenish numbers = red comments = dark gray as I want the code to stand out and keep the comments low key - after all, they should only be necessary as a last effort read 😛
  9. We are making the plunge from SVN to git (on GitHub) and would like some input. Note that although there are other forms of git hosting than GitHub, we don't have a choice in the matter, so recommendations of other forms of hosting are off topic. The obvious candidates (if you are using GitHub) are git for Windows and GitHub desktop. Are there other valuable tools that one should have? Also - how is the git integration in the Delphi IDE, on a scale from 0 - totally worthless, 5 - usable, to 10 - good enough?
  10. Lars Fosdal

    Delphi Code-Insight problems

    Millions of lines of code keep me tethered to Delphi. My employer is paying for it, but the lack of viable alternatives keeps us here, bugs or not. Yet, I predict there is .NET projects eating into my schedule in my near future. I.e. a fresh, new set of bugs to learn to work around.
  11. Two books that are gold for picking up good coding habits - even this long after they were written: Code Complete 2nd Edition by Steve McConnell Framework Design Guidelines by Krzysztof Cwalina & Brad Abrams (Third Edition)
  12. Two things: 1. I really try my best to avoid negations in booleans 2. I try to name methods that do stuff like verbs and where possible put the parameter in context of the name Hence processOrder(aUseWidget: Boolean) { if aUseWidget then { processOrderWithWidget(); } else { processOrderWithoutWidget(); } } And SetControlsEnabled; // Implicit True SetControlsEnabled(True); // Explicit SetControlsEnabled(False);
  13. I think code completion in 10.4.1 is still using the old parser, hence it still misbehaves around certain constructs. @balabuev You should add your example to one of the existing code completion issues in QP - or register a new issue.
  14. Aside from that aPort should be a Word to avoid invalid port values above 65535 ... TMS FixInsight supports a hint for this, though: O804 Method parameter ''Foo'' is declared but never used
  15. Signed .exes helps a little with internal validation and can stop arbitrary (driveby) .exe files from being run, but - yes - they can be cracked and spoofed. But - for such malevolent .exe files to propagate in your network, you already have had a bigger security breach.
  16. Lars Fosdal

    swagger help needed

    I am sure many people would love to see that on GitHub. Any chance?
  17. Lars Fosdal

    Send Email from Android with multiple CC addresses

    What if you separate them with a semi-colon instead of a comma?
  18. Moved the questions meta discussion to a separate thread.
  19. Ah, yeah... It is a bit embarrassing, but I still have not even looked at spring4d. I really should. I did follow it on GitHub, but never got around to actually delving into it.
  20. I still use Shell's Sort - but with a bit of extra work to keep the original ordering intact for identical elements. Is there a good implementation of Timsort for Delphi to be found?
  21. Lars Fosdal

    Help needed to register Delphi Community Edition

    Do they still exist? If you manage to find the list of forums (Blogs, Community, Forums), it simply points here: https://www.embarcadero.com/support Is there still an official support forum? It is not easy to find, if there is...
  22. Lars Fosdal

    Can't edit my post?

    When I write something lengthy, I sometimes do that in OneNote or Google Docs (Autosave FTW) before I paste it into the forum UI and do the final formatting touchups. Web UIs can be so unforgiving.
  23. @mtjmohr It is possible to lock a thread - but that is usually reserved for threads going wildly off in an non-friendly direction. Simply stop adding comments that are "off-topic" to old threads and start new threads for new topics instead.
  24. Quick sort is known to suffer performance-wise on already sorted lists, but with only 100 to 200 elements, that should not be the problem. Other than that, keeping your working data outside UI controls is sound advice.
  25. Lars Fosdal

    Popup window with focus inside.

    I noticed that f.x. Paint.NET has the desired behaviour - and respects the Windows theme. Is it still possible to use something like those old-school "spy" programs to see the window class and attributes of the tool windows, to see if anything stands out - or should we assume that it is all done with custom message responses and/or custom paints? None of these have controls with dropdowns or inputs, though - as those are on the toolbar. Not sure if that is coincidental or a design necessity. It also paints the captions alike when not focused.
×