-
Content Count
3504 -
Joined
-
Last visited
-
Days Won
115
Everything posted by Lars Fosdal
-
Customizing source editor
Lars Fosdal replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
Money Green wasn't too bad, actually. Going to try that a little bit. Well - actually - it is a bit too "off" with the rest of the UI, when that is in light mode. -
This post indicates a "workaround". Not sure why this is necessary. Is your app an FMXLinux app? https://synaptica.info/en/2020/11/26/delphi-fmxlinux-launcher-icon/
-
DelphiFMX-BASS, all platforms supported by FireMonkey framework
Lars Fosdal replied to TDDung's topic in Cross-platform
I prefer that people link to the original source and/or describe how to collect the appropriate set of binaries from the official sources, rather than "republish" them. There is a staggering amount of malware out there, and you may call me paranoid, but the fact is that convenience is not a good reason to download binaries from unverified sources. -
Are you providing an .ico file or images for the icon? If I remember correctly, .ico is a Windows only thing.
-
DelphiFMX-BASS, all platforms supported by FireMonkey framework
Lars Fosdal replied to TDDung's topic in Cross-platform
Another set of binaries... Am I the only one that is completely allergic to binaries from unknown sources? -
Which form is the parent/owner of the print dialog?
-
I like the KISS rule - what can I say.
-
I use OmniThreadLibrary queues for this.
-
Delphi Event-based and Asynchronous Programming eBook complete version released
Lars Fosdal replied to Dalija Prasnikar's topic in Tips / Blogs / Tutorials / Videos
Less hugs, more code. I have spoken. -
Delphi 64bit compiler RTL speedup
Lars Fosdal replied to RDP1974's topic in RTL and Delphi Object Pascal
Chance that I will download and use some DLL from an unknown third party: None. -
If you want it to always run elevated, you can specify that in the manifest.
-
Delphi Event-based and Asynchronous Programming eBook complete version released
Lars Fosdal replied to Dalija Prasnikar's topic in Tips / Blogs / Tutorials / Videos
I hope you are fully recovered, and that you and your family are ok! -
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?
-
Also on 10.4.1, but not seeing this issue.
-
Is it really that bad to Use boolean parameters to make your functions do two things?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
After doing a lot of SQL, I find myself wanting to name parameters in Delphi too... TFileSearcher.FindFiles('c:\', aRecursive := True); -
Customizing source editor
Lars Fosdal replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
It makes missing string quotes obvious, and it helps clarify text building expressions. -
Customizing source editor
Lars Fosdal replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
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 😛 -
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?
-
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.
-
Is it really that bad to Use boolean parameters to make your functions do two things?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
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) -
Is it really that bad to Use boolean parameters to make your functions do two things?
Lars Fosdal replied to Mike Torrettinni's topic in General Help
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); -
Delphi 10.4.1 code navigation - Cursor is vanished
Lars Fosdal replied to RonaldK's topic in Delphi IDE and APIs
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. -
Compiler doesn't issue warning - do any third part code analysis tools ?
Lars Fosdal replied to david_navigator's topic in General Help
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 -
Security - How freaky can you get!
Lars Fosdal replied to Clément's topic in Algorithms, Data Structures and Class Design
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. -
I am sure many people would love to see that on GitHub. Any chance?