Jump to content

JamieR

Members
  • Content Count

    9
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by JamieR


  1. You can't compare Visual Studio and RAD Studio. They solve different problems. The later is an Object Pascal IDE (with C++ support for RTL, VCL etc). I don't use RAD Studio for C++ so can't comment there. I use Visual Studio for C++ projects.

     

    Why are people so intent on sticking to free? If you want to learn object pascal you don't need RAD Studio. If want to use VCL, Firemoney and their RTL then of course you pay for this if you're making money from their tools. They give you a free version that you can make up to $5,000 with. Folks, that's really not difficult to make that money when you become more skilled.

     

    I sell software, and I can fully appreciate Embarcadero's business model. I don't think the hate towards Embarcadero is very fair. The obvious alternative is Lazurus, which is also great.

     

    Just to also reiterate, why would Embarcadero kill a model that generates new paying users? It would be silly to kill free. They will not do that.

    • Like 3

  2. I’m writing a web scraper. The data I need is within script tag on the HTML page. I use a regular expression to extract the JavaScript object that’s within a script tag on the scraped page, and turns that into a JSON object.

     

    I’m also writing unit tests along the way using DUnitX. What I’d like to know is can I load some HTML files to test against within the unit test? I have a handful of HTML documents from the website that contain the data required, and some document that don’t.

     

    Instead of hitting the websites URL I want to mimic that response with the HTML files I have.

     

    How can I do this?


  3. 21 hours ago, Der schöne Günther said:

    I'd not be surprised if Jamie didn't even know about the DPR file. How would you stumble across it, anyway? Right-clicking the project node and then finding "View Source" among two dozen other entries is not the most intuitive choice.

     

    I wish I still remebered how I first found it...

    Exactly this. Just knowing this has solved a lot questions I had.


  4. Hey all. I've recently came to Delphi after 20 odd years using many other languages. I love it for creating desktop applications, which leads me to question ...

     

    What design patterns are useful when building UI? I know DI, MVC and have the GoF book (not read it all, references appreciated). Once my application gets to a certain size it becomes really difficult to manage.

     

    When I create a new VCL application the "main" entry point appears to be the main form (defaults to Form1). But I'd like to do something different by having the entry point as Appliction.pas, and have that file bootstrap the application with a service controller. I'd also like immutable state (like how React, or Redux work. I believe these are finite state machines?).

     

    Is the above even possible? How do you develop VCL applications while decoupling the components of application?

×