-
Content Count
3701 -
Joined
-
Last visited
-
Days Won
185
Everything posted by David Heffernan
-
Addendum to Martin Fowler quote
David Heffernan replied to Stefan Glienke's topic in Tips / Blogs / Tutorials / Videos
@emailx45 Perhaps there's a language barrier, but in this topic we are talking about the efficiency of the code generated by the compiler. Because for me there has been nothing added since XE7 that would bring enough benefit to justify the time cost of migrating. -
Addendum to Martin Fowler quote
David Heffernan replied to Stefan Glienke's topic in Tips / Blogs / Tutorials / Videos
No. Whilst for some applications, performance is not important, there are many many fields where we desperately want computers to do their work faster. And better compilers would make a huge difference. As Delphi users were are handicapped by our compiler being much worse than compilers for almost all other languages. -
Addendum to Martin Fowler quote
David Heffernan replied to Stefan Glienke's topic in Tips / Blogs / Tutorials / Videos
Imagine if somebody could invent such a compiler. Er, no, wait, ... -
Addendum to Martin Fowler quote
David Heffernan replied to Stefan Glienke's topic in Tips / Blogs / Tutorials / Videos
You OK hun? -
delphi - ibtogo64.dll not found in the path - Stack Overflow
-
When sorting a “StringList” is very costly
David Heffernan replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
What do you think the article linked in the original post says? -
Is it really that bad to Use boolean parameters to make your functions do two things?
David Heffernan replied to Mike Torrettinni's topic in General Help
Probably another bad idea in this topic which seems to be collecting a huge number of bad ideas. Do this for do different unrelated functions, and now you can pass the consts intended for function1 to function2, and vice versa. -
Is it really that bad to Use boolean parameters to make your functions do two things?
David Heffernan replied to Mike Torrettinni's topic in General Help
This is of course the holy grail, available in many other languages. -
Why aren't you debugging? That's what I would do if faced with this problem.
-
Is it really that bad to Use boolean parameters to make your functions do two things?
David Heffernan replied to Mike Torrettinni's topic in General Help
You've had my suggestion. Use a boolean and give your function a good name. Where you can't do that, use an enumerated type. You seem to be looking for problems where none exist. These kind of problems don't need to be fixed! -
Is it really that bad to Use boolean parameters to make your functions do two things?
David Heffernan replied to Mike Torrettinni's topic in General Help
A truly shockingly bad one at that! -
Are there any general DUnitX tests available, to check Delphi classes ?
David Heffernan replied to Rollo62's topic in RTL and Delphi Object Pascal
Should have been titled "In Which I Argue that Embarcadero Should Write Their Unit Tests". -
Then you'll need to do some debugging. Only you can do that.
-
Use the debugger to trace through. Also look in the revision control system to see what has changed.
-
Is it really that bad to Use boolean parameters to make your functions do two things?
David Heffernan replied to Mike Torrettinni's topic in General Help
You really think that an enumerated by, with a meaningful name, carries more information than: FindFiles('c:\', True); I think you are in a large minority if that is your view. -
Security - How freaky can you get!
David Heffernan replied to Clément's topic in Algorithms, Data Structures and Class Design
That's not what I am saying. I'm saying that if an attacker gets as far as running code on your machine, then things like reading another process's memory are moot. Once the attacker is executing their code on your system, it's over. -
Security - How freaky can you get!
David Heffernan replied to Clément's topic in Algorithms, Data Structures and Class Design
If you've managed to be able to execute code on the target's machine, it's already game over. Bulleting passwords is only ever intended to stop over the shoulder password theft. See point 1. No matter since points 1 and 2 are invalid. -
The Case of Delphi Const String Parameters
David Heffernan replied to Mike Torrettinni's topic in RTL and Delphi Object Pascal
In this case the lock is needless (with interlocked reference counting). The interesting case has to be where G is modified. But the reference counting is interlocked, and I'm sure it's there for a reason, and I'm sure that I've forgotten what that reason is. -
The Case of Delphi Const String Parameters
David Heffernan replied to Mike Torrettinni's topic in RTL and Delphi Object Pascal
In this case, you don't need interlocked operations on the ref count. -
Security - How freaky can you get!
David Heffernan replied to Clément's topic in Algorithms, Data Structures and Class Design
Stepping back here, are piecemeal comments from numerous different authors in a forum the best way to design the security for your software? I'd want to be reading a book written with a train of thought. Covering a variety of issues, with explanation of why they matter. And a book that has been well reviewed. It seems to me that standalone tips are the kind of thing that lead to insecure software. Security is an end to end, entire process thing, where the interactions matter. Using a couple parts of best practise doesn't make your software secure. It only needs one part to be missing. -
If I were you, I think I'd probably want to know what type of phones these actually were.
-
Why do you need a phone? Wouldn't it be easier to do it without the phone?
-
How to tell what code is locking a file resource within an application
David Heffernan replied to RaelB's topic in RTL and Delphi Object Pascal
Question is actually about identifying which piece of code is responsible for the lock. Asker already knows which process has it. -
When sorting a “StringList” is very costly
David Heffernan replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Well then they aren't what you say they are. -
When sorting a “StringList” is very costly
David Heffernan replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
@avk I am sceptical of your numbers. How can the other algorithms match TimSort for sorted and reverse data?