News for hackers. Stuff that matters.
Re:PHP Sucks, But It Doesn't Matter by brlewis on Wednesday May 21, 2008 @11:19AM (#196098)
PHP is "embeddable" specifically for markup languages by design

Not it is not! No it is not! Sorry to yell, but you're touching on one of my biggest peeves. The syntax that embeds PHP in the SGML family of markup languages was simply tacked on to an arbitrary syntax that vaguely resembles C and Perl. It was never designed.

I wrote a language that actually was designed to embed dynamic strings in static strings. It doesn't get ugly the way PHP does when you embed static strings within dynamic code within your outer static markup. It doesn't look anything like PHP.

Re:PHP Sucks, But It Doesn't Matter by mojuba on Wednesday May 21, 2008 @11:57AM (#196141)
Well, Bruce, perhaps

...The best way to think of BRL is as a Scheme interpreter with an alternative syntax for strings

is where you should look for reasons of BRL's unpopularity, I think.

Can you tell us please, what is really special about BRL other than it being "Scheme with square brackets"?

Re:PHP Sucks, But It Doesn't Matter by brlewis on Wednesday May 21, 2008 @12:51PM (#196211)
The define-input syntax makes form handling almost as easy as PHP with register_globals on, while at the same time being as secure as PHP with register_globals off -- the best of both worlds. It's arguably more secure because of how conveniently one can use validator functions.

The sql-repeat syntax with group-beginning? and group-ending? makes sophisticated use of result sets much more accessible than looking behind/ahead a row manually.

Hoisting a function definition you quickly made within a page out to a sitewide definition is fast and easy, so doing something quick-and-dirty doesn't lock you into dirt forever.

And don't underestimate those square brackets. They totally optimize the human "inner loop" of web development. They beat the tar out of <%, %>, and the mess of quotes, backslashes and dots that constantly trip up newbies.

Re:PHP Sucks, But It Doesn't Matter by mojuba on Wednesday May 21, 2008 @01:15PM (#196251)
I don't underestimate square brackets, in fact I liked them, but i think the main problem is that BRL is Scheme.

If Scheme is not popular among web programmers, there must be a reason behind it, more than one reason, maybe a hundred reasons. But it's a fact. So I think if you are going to bring Scheme/Lisp into the web development market, you (I mean, not you personally, but in general) have to bring 2-3 new killer features along with HTML embedding and the language itself.

I'll try to understand BRL better, but from what you say above, those things don't seem to be really killer features. Even square brackets thing isn't a killer, I think.