-
Content Count
3651 -
Joined
-
Last visited
-
Days Won
181
David Heffernan last won the day on March 5
David Heffernan had the most liked content!
Community Reputation
2401 ExcellentTechnical Information
-
Delphi-Version
Delphi 11 Alexandria
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Tool for finding non-literal format strings
David Heffernan replied to David Heffernan's topic in General Help
Doesn't look like it handles code laid out over multiple lines. -
Tool for finding non-literal format strings
David Heffernan replied to David Heffernan's topic in General Help
I know how to code a solution. And I'd use a proper parser to do it. But I'm looking for a tool. -
Tool for finding non-literal format strings
David Heffernan replied to David Heffernan's topic in General Help
No, I am just looking for a tool that detects non literal args by static analysis, which is what I wrote -
I've recently come across a defect in my code that looks like this: msg := Format('%s' + foo, [bar]); If foo contains any format placeholders, e.g. %s, %20, etc. then this will result in an exception being raised. It's a stupid mistake, but now I want to check my entire codebase to see we've done it elsewhere. Ideally I'd like a static tool that detects any call to Format or common equivalent like Exception.CreateFmt for which the format string is not a literal. I don't think FixInsight has such a warning. Does anybody know of such a tool?
-
It feels like most releases in the past 5-10 years have been "quality focused" releases. In other words, they are already doing this. How is it going?
-
Yes, silly me! Sorry.
-
Sure. I can choose not to be impressed. The Win64 bit compiler was available for pro from initial release, XE2
-
I mean, I did, and I read the what's new. As I said, I think it's pretty poor that they can release software that is so far from being functional.
-
Saying X does not, a priori, make X OK
-
I went from XE7 to 11.something and only upgraded to get high DPI support which was worth it. Not sure what would get me excited from here. Probably would be copilot like goodness in the IDE.
-
Well sure. But isn't this pretty lame? Who does version 1 releases that don't work? They might be upfront about all of its deficiencies, but good developers produce software that works. We've all used VS and VSCode and PyCharm and so on, and they work and shine. And then 12 months passes, it's 2025, and Emba come out with 5000 bug fixes and a 64 bit IDE that doesn't work.
-
Prepare for three years of them fixing the new 64 bit IDE
-
Programming with AI Assistance: A personal reflection.
David Heffernan replied to Juan C.Cilleruelo's topic in Tips / Blogs / Tutorials / Videos
AI is just a tool. It has its uses. It's not going to do everything. Yes it's over hyped. But that does not mean it has no value. As usual the value lies somewhere in between what the hypers and the doubters say. -
Check If File is what he claim to be
David Heffernan replied to mazluta's topic in RTL and Delphi Object Pascal
Sure, that basic concept. But I think I'd take it further and move the data into a text file embedded as a resource. Given the scope of this unit. -
Check If File is what he claim to be
David Heffernan replied to mazluta's topic in RTL and Delphi Object Pascal
It's funny to see various people posting their own solutions when the original post contains a comprehensive implementation....