Re: How To Dynamic Web Rendering?

2011-05-13 Thread Adam D. Ruppe
So I'm writing the official PHP library to access my work library. Just spent 20 minutes trying to figure out why it wasn't working right. The problem was ultimately here: $rurl .= "?" + $this->getArgString(); See the mistake? Neither did the stupid PHP interpreter. I hate it so

Re: How To Dynamic Web Rendering?

2011-05-13 Thread Adam D. Ruppe
> I haven't used it yet, but I think you've got the right approach > with your DOM stuff. For people who haven't read about this, I just wrote up a quick document about it: http://arsdnet.net/web.d/dom.html I really rambled at points, but I wanted to cover all the bases.

Re: object.function()

2011-05-13 Thread Jonathan M Davis
> > I have a question, > > can I write all functions like this object.function() instead of > > functin(object) ? or that form for some function or cases. > > This currently only works for D arrays. (I think Walter&Andrei wanted it > for other types too originally, I do not know if it will be impl

Re: object.function()

2011-05-13 Thread Timon Gehr
> I have a question, > can I write all functions like this object.function() instead of > functin(object) ? > or that form for some function or cases. This currently only works for D arrays. (I think Walter&Andrei wanted it for other types too originally, I do not know if it will be implemented.

object.function()

2011-05-13 Thread %u
I have a question, can I write all functions like this object.function() instead of functin(object) ? or that form for some function or cases.

Re: How To Dynamic Web Rendering?

2011-05-13 Thread Adam D. Ruppe
Nick Sabalausky wrote: > Be glad it's not VB6, or worse, VBScript. Oh, I know it! One of my side jobs I picked up this year is maintaining somd old VBS program, using classic ASP. There's so much nonsense. It doesn't help that the original author was horribly incompetent - he never used functions

Re: How To Dynamic Web Rendering?

2011-05-13 Thread Nick Sabalausky
"Adam D. Ruppe" wrote in message news:iqji6m$1se1$1...@digitalmars.com... > Jacob Carlborg wrote: >> How is it working out with a static type system, compared to a >> dynamic, for web development? > > It's *much* better, especially for rapid development. The compiler > will tell me if my changes

Re: How To Dynamic Web Rendering?

2011-05-13 Thread Nick Sabalausky
"Robert Clipsham" wrote in message news:iqjer9$1mai$1...@digitalmars.com... > On 13/05/2011 08:09, Jacob Carlborg wrote: >> >> How is it working out with a static type system, compared to a dynamic, >> for web development? > > How many times, while using a dynamically typed language, do you ever

Re: How to break module into multiple file.

2011-05-13 Thread Nick Sabalausky
"Jason House" wrote in message news:iqjamt$1e5b$1...@digitalmars.com... >I wonder a bit why you want one file per object? Is it to avoid unnecessary >imports? Make finding object definitions easier? Or a style preference? I >think replies by others covered all but the first question. I use the

Problem with heapified Array!BigInt

2011-05-13 Thread bearophile
I was about to write a bug report on this, but I am not sure what's happening here, probably I am missing something. I am not even sure this is a bug, so it's better to ask here first. This crashes at runtime with no stack trace (DMD 2.053beta, I'd like betas to be numbered in any way): import

Re: How To Dynamic Web Rendering?

2011-05-13 Thread Adam D. Ruppe
Jacob Carlborg wrote: > How is it working out with a static type system, compared to a > dynamic, for web development? It's *much* better, especially for rapid development. The compiler will tell me if my changes anywhere break things anywhere else, so I can modify with confidence. I can't tell y

Re: How To Dynamic Web Rendering?

2011-05-13 Thread Robert Clipsham
On 13/05/2011 08:09, Jacob Carlborg wrote: On 2011-05-12 16:45, Adam Ruppe wrote: Could you share how or show an URL that provide sample code to do that in D? Check out my D api demo: http://arsdnet.net/cgi-bin/apidemo/ Here's the source code (about 50 lines of D) http://arsdnet.net/apidemo.

Re: How to break module into multiple file.

2011-05-13 Thread Jason House
I wonder a bit why you want one file per object? Is it to avoid unnecessary imports? Make finding object definitions easier? Or a style preference? I think replies by others covered all but the first question. I use the "import std.foo: bar, baz;" syntax for that. Generally speaking, separating

Re: How To Dynamic Web Rendering?

2011-05-13 Thread Nick Sabalausky
"Jacob Carlborg" wrote in message news:iqilmh$7tk$1...@digitalmars.com... > On 2011-05-12 16:45, Adam Ruppe wrote: >>> Could you share how or show an URL that provide sample code to do >>> that in D? >> >> Check out my D api demo: >> >> http://arsdnet.net/cgi-bin/apidemo/ >> >> Here's the source

Re: How to break module into multiple file.

2011-05-13 Thread Alexander
On 13.05.2011 00:59, Jonathan M Davis wrote: > Still, I wouldn't have though that dashes would have been a big enough deal > to really care. I didn't say that this is a "big deal", just "inconvenience". There are many minor things which are not a big deal, but make life a bit less convenie

Re: How To Dynamic Web Rendering?

2011-05-13 Thread Jacob Carlborg
On 2011-05-12 16:45, Adam Ruppe wrote: Could you share how or show an URL that provide sample code to do that in D? Check out my D api demo: http://arsdnet.net/cgi-bin/apidemo/ Here's the source code (about 50 lines of D) http://arsdnet.net/apidemo.d And the HTML templates it uses: http://ar