Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Marco van de Voort via lazarus
Op 2019-08-12 om 11:13 schreef Anthony Walter via lazarus: Yes, in C#. Personally I find ASP.NET or Core easier to use than a CGI executable Well, something like ISAPI dlls are inbetween those for a long,long time. -- ___ lazarus m

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Ryan Joseph via lazarus
> On Aug 11, 2019, at 9:05 PM, Anthony Walter via lazarus > wrote: > > Ryan, > > My sites are built on my custom web class library that optionally uses > templates to generate content. Templates are simple fill in the blank page > type text files which use reflection to pull properties of a

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Marcos Douglas B. Santos via lazarus
On Mon, Aug 12, 2019 at 6:36 AM Michael Van Canneyt via lazarus wrote: > > [...] FPC+Lazarus effectively covers all scenarios :-) No doubt about that for sure. Marcos Douglas -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.laza

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
In C# to define a property you write: visibility typename propname { [visibility] get; [visibility] set; } -or- public int Age { get; set; } This means you have a read write property that does nothing special. You could also write ... private int age; public int Age { get { return age; } set { i

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Graeme Geldenhuys via lazarus
On 12/08/2019 9:33 am, Anthony Walter via lazarus wrote: > public IEnumerable SearchItems { get; set; } I don't know C# at all, but am curious regarding this. What does that "get" and "set" do? It that a shorthand syntax for implementing getters and setters of a field variable? Regards

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Michael Van Canneyt via lazarus
On Mon, 12 Aug 2019, Anthony Walter via lazarus wrote: I use FPC for a lot of web stuff, but generally not for servers. In this project I am using an FPC program to create the database and download updates using my TClientSocket class. For long running stuff, which I may typically host on an

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
I use FPC for a lot of web stuff, but generally not for servers. In this project I am using an FPC program to create the database and download updates using my TClientSocket class. For long running stuff, which I may typically host on an Amazon cloud server with Linux, I'll generally either use so

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Michael Van Canneyt via lazarus
On Mon, 12 Aug 2019, Anthony Walter via lazarus wrote: Yes, in C#. Personally I find ASP.NET or Core easier to use than a CGI executable. I assumed you wrote your classes for FPC. If you use the Microsoft stack, then my remarks are of no importance. Michael. --

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
Yes, in C#. Personally I find ASP.NET or Core easier to use than a CGI executable. Also the ability to dynamically compose anonymous objects, write linq expressions, and use reflection can be quite powerful. The object formatting system is C#, where everything is an object and custom formatters ca

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Michael Van Canneyt via lazarus
Ah, but this is C# ? I don't think you need more code in FPC to do the same. But if there are proposals to reduce the amount of code in FPC even more, I'm open for suggestions. Michael. On Mon, 12 Aug 2019, Anthony Walter via lazarus wrote: Michael, Here is an example of how easy it is.

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
Michael, Here is an example of how easy it is. public class CodeSearch : TemplateHandler { private static readonly string searchSql = "search.sql".LoadResourceText(); protected override void Run(Templates templates, StringBuilder output) { SearchItems

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Michael Van Canneyt via lazarus
On Sun, 11 Aug 2019, Anthony Walter via lazarus wrote: Ryan, My sites are built on my custom web class library that optionally uses templates to generate content. Templates are simple fill in the blank page type text files which use reflection to pull properties of a objects into the template