JamieR
Members-
Content Count
9 -
Joined
-
Last visited
-
Days Won
1
Everything posted by JamieR
-
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.
-
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?
-
DUnitX: How can I load HTML files within unit test?
JamieR replied to JamieR's topic in General Help
Gave me a good chuckle then Anders, ha ha. -
DUnitX: How can I load HTML files within unit test?
JamieR replied to JamieR's topic in General Help
After some research I've found some good ones: DSharp Delphi Mock Spring4D Mocks -
DUnitX: How can I load HTML files within unit test?
JamieR replied to JamieR's topic in General Help
No. Any suggestions on a good one? -
For me, I used the community edition to develop apps that pay for non-free. I don't mind paying for software if it helps me run my business. It's my guess community edition will be a thing for the future of Delphi. Without it, it would limit new users. I don't think Embarcadero want to do that.
-
Can I change the entry point for a VCL application?
JamieR posted a topic in Algorithms, Data Structures and Class Design
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? -
Can I change the entry point for a VCL application?
JamieR replied to JamieR's topic in Algorithms, Data Structures and Class Design
I feel like a bit of plum not knowing this ha ha. Thank you to all. -
Can I change the entry point for a VCL application?
JamieR replied to JamieR's topic in Algorithms, Data Structures and Class Design
Exactly this. Just knowing this has solved a lot questions I had.