Jump to content

David Heffernan

Members
  • Content Count

    3711
  • Joined

  • Last visited

  • Days Won

    185

Everything posted by David Heffernan

  1. David Heffernan

    "Divided by zero" exception

    Floating point exceptions got masked by the library you used. We've covered this hundreds of times here and elsewhere. Some websearch will reveal more.
  2. David Heffernan

    "Divided by zero" exception

    There's an awful lot of misunderstanding here. In order to help you we'd need to see some concrete examples.
  3. David Heffernan

    Tlist<T> growth strategy is bad.

    Even so, you'd still be spending time in the heap allocator which would be undesirable.
  4. David Heffernan

    CryptoLib4Pascal in Delphi 10.4

    Yes. The package in this library is a runtime package for use if you are using runtime packages rather than a monolithic executable. Just include the source code for the library and compile it. There is a sample program that does this.
  5. David Heffernan

    CryptoLib4Pascal in Delphi 10.4

    Why do you need design time packages for a cryptography library?
  6. David Heffernan

    Does ChatAI make StackOverflow obsolete ?

    deleted (why can't we delete posts)
  7. David Heffernan

    Does ChatAI make StackOverflow obsolete ?

    What AI could do is the websearch that so many askers on SO don't do, and thus avoid there being so many duplicate questions posted. That would be a plus.
  8. David Heffernan

    Does ChatAI make StackOverflow obsolete ?

    I think the answer to the original question is no
  9. David Heffernan

    Set Print Font Size...

    So scale them higher than recommended which is exactly what I do, 14/10*150=210. Problem solved. I wish there was an option to vote against QP issues.
  10. David Heffernan

    Set Print Font Size...

    Doesn't this depend on what scaling you use in the monitor, in other words what dpi you use. I mean, one point is 1/72 inch. But it will be much smaller if you say your 4k monitor has 96dpi. Rather than sizing your fonts differently, shouldn't you just set the dpi appropriately? I use an editor font size of 9 or 10 but a font scaling of 175% or 200%.
  11. David Heffernan

    How USE Python4Delphi in multithreads

    You should read about the Python GIL which is liable to be an issue
  12. David Heffernan

    Does ChatAI make StackOverflow obsolete ?

    I'd live to see it answer some of the questions that have been answered on SO, but without being able to refer to SO. In short, no, AI is still a long way from making human though obsolete. It can be a really power tool to use alongside it.
  13. David Heffernan

    "Always break line between else and if" vs. comments

    Personally I think it's much clearer like this: procedure MyProcedure(a, b: Boolean); begin if a then begin if b then Beep else Beep end else begin if b // Kommentar then Beep else Beep; end; end;
  14. David Heffernan

    TDateTimeHelper from D11 that can be used in D10.4?

    I support the current release of my software which is current for a year. When the new version comes out, we stop updating and supporting the previous version. I think that's pretty common. It is frustrating if you are on an older version, but my clients don't mind because they are happy to upgrade. Delphi is somewhat bug riddled and updating can be fraught. The Embarcadero policy would be better if the software wasn't so buggy and new versions weren't so risky.
  15. David Heffernan

    Close application during form create??

    I'd terminate the process
  16. David Heffernan

    Using WriteLn in dll

    For a DLL that can be used by hosts outside your control, it's wrong to force the caller to be in console mode. You are hosted by another process which makes its own decisions.
  17. What are you talking about? How about some plain speaking rather than writing cryptic messages.
  18. In the face of malware, curiosity needs be tempered somewhat.
  19. Astounding that people here apparently followed these links
  20. David Heffernan

    TDateTimeHelper from D11 that can be used in D10.4?

    These are open source projects
  21. David Heffernan

    TDateTimeHelper from D11 that can be used in D10.4?

    I mean, aren't we all people who write code? I find it odd to hear programmers that don't want to program because they aren't able to do it right.
  22. David Heffernan

    TDateTimeHelper from D11 that can be used in D10.4?

    Would be quicker just to write them yourself
  23. David Heffernan

    TDateTimeHelper from D11 that can be used in D10.4?

    I'm not even sure what you are asking us for here. What would a positive outcome to this thread look like?
  24. David Heffernan

    Default(TMyRec) usage

    Nobody expects the Delphi compiler to optimise anything
  25. David Heffernan

    Default(TMyRec) usage

    It depends. If I'm going to initialise every field I wouldn't default initialise. Many of my records have class methods named New that don't default initialise and assign to each field. I wouldn't want to offer blanket advice. Default initialise if you need to default initialise.
×