Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. David Heffernan

    Have any of you worked with Visual C++?

    I'd say C++ is definitely not suited to this programming.
  2. David Heffernan

    Have any of you worked with Visual C++?

    It was a marketing gimmick 15-20 years ago but it's meaningless now and not even used by MS. We still have no idea what sort of programming you are interested in, what libraries matter to you, and why the MS compiler as opposed to any others.
  3. David Heffernan

    Have any of you worked with Visual C++?

    MFC was kinda gnarly. Macro hell. VCL was far superior. I don't think the visual moniker does much. Visual C#. What does that even mean. It's C#. I wouldn't say MS are pushing C# over C++. They each have their niches. You still haven't said what sort programming you are doing. It makes a huge difference to what language, tools and libraries you use. Often the target libraries are a more important considation than language. Why are you even interested in C++ anyway? And why the MS compiler rather than GCC or Clang?
  4. David Heffernan

    Have any of you worked with Visual C++?

    This was a very long time ago, if your story is even true. Herb Sutter has been with MS since early 2000s. There's really not much to be gained by raking over the MS of yesteryear.
  5. David Heffernan

    Have any of you worked with Visual C++?

    It's basically just another C++ compiler. But maybe what you are actually asking is abkut MSVC with thr Visual Studio IDE. And people's experiences probably differ hugely depending on what type of software they are developing.
  6. David Heffernan

    Open IDE in DPI Unaware??

    FWIW this article seems relevant to the topic: New in RAD Studio 11: High DPI IDE and Form Designing! (embarcadero.com)
  7. David Heffernan

    Problems with Delphi class structure / visibility

    To be fair, I think it's only when one has a comprehensive understanding can one take an informed critical view. I think there are plenty of design flaws with the language, but I don't think that they are holding you back yet.
  8. David Heffernan

    Problems with Delphi class structure / visibility

    It's possible to write poor code in any language.
  9. David Heffernan

    Use case or if else ?

    For me the choice is between linear search and dictionary. Unless there's a natural reason for the collection to be ordered.
  10. David Heffernan

    Use case or if else ?

    It would also be better to write a function that took the string, and returned the method to be called, to be held in a variable of procedural type. You could then have a single call to the procedure where you passed the arguments. It's very repetitious to pass the same 4 arguments to 14 separate methods.
  11. David Heffernan

    Use case or if else ?

    Why perform 7 comparisons, on average, when you can perform 14 every time?
  12. David Heffernan

    Optimization On or Off ?

    I'm using madExcept and its call stacks are fine with optimisation on.
  13. David Heffernan

    Use case or if else ?

    The if is better. But a better comparison would be a version that converted the string to an enum. That would be more readable in the long case statement.
  14. David Heffernan

    set of object instances

    I'm not talking about a Pascal or Delphi set. I'm talking about a set in general, non language or implementation terms. And that's that the question was about. Also there are a number of libraries that define set collections that aren't native Delphi set types. I'm thinking spring4d for example.
  15. Sertac's question on SO covers this topic: https://stackoverflow.com/questions/10162749/why-cannot-take-address-to-a-nested-local-function-in-64-bit-delphi
  16. David Heffernan

    set of object instances

    What you've described is a set. So that's why he keeps thinking of it as a set.
  17. David Heffernan

    Why Should a C-Sharper Learn Delphi?

    There must be lots of other ways to do this that use more mainstream languages
  18. David Heffernan

    Fast Base64 encode/decode

    One thing you could easily do would be to always output the db instructions, but put the asm in comments, then it would be just as readable, but have no ifdefs
  19. David Heffernan

    set of object instances

    All these people suggesting TList (i.e. an array) are just asking for performance problems if ever the collection has a significant size.
  20. David Heffernan

    Assigning UTF-8 to a control

    The standard approach is to decide what encoding to use internally. And then convert between that encoding and any other encoding when the data initially enters your program, or at the last moment before it leaves. Given that the native encoding of the frameworks that C++ Builder supports is utf16, that is the obvious choice for the internal encoding. And then you can use TEncoding to perform all other conversions. Why are you wanting to go low level to C runtime and Win32? Why don't you use the frameworks provided.
  21. David Heffernan

    Fast Base64 encode/decode

    I think I'd extend the tool to produce cleaner output
  22. David Heffernan

    Delphi Professional Database Connectivity

    Not really relevant since making software this way would breach the license.
  23. David Heffernan

    Why Should a C-Sharper Learn Delphi?

    I don't know about FPC, but FPC is just a pascal compiler. You are asking about libraries. And I certainly don't know anything about them.
  24. David Heffernan

    Why Should a C-Sharper Learn Delphi?

    It depends what native is important. FMX doesn't use native GUI widgets and toolkits. But it's native in the sense that the compiler emits code that runs on the metal. To me it feels like the former is an important limitation and the latter is just not relevant.
  25. David Heffernan

    Why Should a C-Sharper Learn Delphi?

    Can you? You can with VCL but FMX isn't native. Is that really a significant advantage over C#?
×