Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. David Heffernan

    have anyone made tool to convert Delphi files from Ansi to UTF-8

    https://superuser.com/questions/1163753/converting-text-file-to-utf-8-on-windows-command-prompt
  2. David Heffernan

    Anybody up for an ethics question?

    And to think that the question was meant to be about ethics.
  3. David Heffernan

    Running Tokyo 10.2.3 dcc32 from the command line

    What can of worms? It has always been easy enough for me. And clearly we do have a dproj in this instance.
  4. David Heffernan

    Running Tokyo 10.2.3 dcc32 from the command line

    That might make it compile, but you'll also need to specify any other options that are non-default. And then update the code that invokes compilation any time you make a change to the project config being compiled. Why not let msbuild do it for you?
  5. David Heffernan

    Anybody up for an ethics question?

    As a programmer, you are aware of the issues around invalid data, missing data, etc. The client who provides the specification is often less aware of these issues, and their consequences. In terms of ethics, I would say that as a programmer it is your responsibility to raise the issue with the client. That's part of being a good professional. How the client responds to that is down to them. If they insist on ignoring invalid data, then that is their choice. But you should strongly advise them against that, and if they do insist, then document that this was their choice. In your case it sounds like the ultimate client is not being advised of this, and the culture in your organisation is to do what the client asks without questioning it. That's a slightly different problem. If the decision takers in your organisation are not receptive to best professional practise then there's only so much you can do.
  6. David Heffernan

    Running Tokyo 10.2.3 dcc32 from the command line

    Using msbuild is the simple way to get this done.
  7. David Heffernan

    Running Tokyo 10.2.3 dcc32 from the command line

    Shouldn't you be using msbuild? That's how you make sure that you get all the project settings. Otherwise you have to manually convert all the project settings into the dcc32 arguments. The msbuild rules do all that for you.
  8. These decisions depend very heavily on what type of coding you are doing. In my case it's a numerical code, whose bottlenecks are floating point calculations. So runtime performance is highly important, and Delphi is very poor in this regard. My working assumption is that C++ would be the right choice, at least for the numerical part of the code. But if and when we come to migrate then I'd need to spend a lot of time evaluating options, and I'd look beyond C++ too. This is not to say that I am a big fan of C++.
  9. Yes. Same argument applies. I use delphi because I have a huge code base written in Delphi. If I was starting from scratch I would categorically not use delphi.
  10. Yes. Same argument applies.
  11. Fossil would be a weird choice. Regardless of how good it is, it's not widespread. git is everywhere, and has so much tooling and resources available. Very hard to see past it.
  12. This __imp_ mangling, IIRC, is used by ms tools when linking using a import lib. Delphi links to DLLs in a different way. Not sure if the difference is important. If it were me I'd compile each source file individually using cl and then link those. Although I don't like to do that very much. It's tempting to be able to link objects statically. But it's fraught with difficulties. It's fiddly. And under x64 you have a further problem. The Delphi compiler doesn't respect the meta data in the object file describing the exception tables. So if exceptions are raised in the linked C code, then it's common for the process to be terminated forcefully. These days I always prefer to link to DLLs using an sxs assembly to avoid problems with dll search paths.
  13. How did you compile the C code?
  14. As for backups with git you can use a cloud repo in addition to any local ones to give you extra redundancy.
  15. David Heffernan

    How do you organize developing new features in big projects?

    The revision control comments are on topic. Revision control is a key part of how you develop new features in an existing code base.
  16. David Heffernan

    How do you organize developing new features in big projects?

    Every effective programmer understands the value of revision control
  17. David Heffernan

    How do you organize developing new features in big projects?

    You only feel the need to develop in such an isolated fashion because you don't use revision control. If you had revision control you'd branch and develop your feature. You'd run your existing tests to prove that you had not damaged existing code. Why do you resist using revision control? It will make you far more productive and effective.
  18. David Heffernan

    How do you organize developing new features in big projects?

    You should drop everything and fix this. I'm sure we've told you this before. We were right then, we are right now.
  19. David Heffernan

    Does debugger handle WITH better in latest versions, 10.3+?

    "with as do" is not a thing in its own right. There is with (expr) do. And here we see as used in an expression. We are just composing different aspects of the language.
  20. David Heffernan

    Does debugger handle WITH better in latest versions, 10.3+?

    LSP isn't about changing the language warning definitions. Never give up hope is a strange message. Keep hoping if that hope is justified.
  21. David Heffernan

    Does debugger handle WITH better in latest versions, 10.3+?

    All problems relating to with could be solved by the compiler warning about such collisions.
  22. David Heffernan

    Help, Missing files

    More clarity in the question. Full details of error, and a minimal reproduction. And don't post criticism for not receiving a response immediately. That does not motivate people.
  23. David Heffernan

    Does debugger handle WITH better in latest versions, 10.3+?

    Given that so much that is actually important is broken, this should be way down the list of priorities.
  24. David Heffernan

    Help, Missing files

    Not sure this approach is helpful.
  25. David Heffernan

    Patch 2 for RAD Studio 10.4 now available

    No I don't think it does make them managed records. I don't really understand how such simple code could break the compiler. It's as if Embarcadero don't have comprehensive tests in place.
×