FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » syntax question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: syntax question [message #174344 is a reply to message #174343] Mon, 06 June 2011 11:19 Go to previous message
jeff is currently offline  jeff   
Messages: 8
Registered: May 2005
Location: Toronto
Karma:
Junior Member
On 6/6/2011 6:20 AM, Jerry Stuckle wrote:
> On 6/6/2011 12:30 AM, jeff wrote:
>> On 6/5/2011 5:26 PM, Denis McMahon wrote:
>>> On Sat, 04 Jun 2011 11:16:32 -0700, Co wrote:
>> <snip>
>>> Oh gods. Lay the code out so you can see it!
>>>
>>> If you use the heredoc format, you can lay your code out so that you
>>> have
>>> a better chance of spotting missing tags etc.
>>
>> I've been looking at a lot of newbie and not so newbie php lately and
>> absolutely no one is using heredocs.
>>
>> It's concatenation hell to read and I imagine just as hard to write.
>> Mistakes abound, as you might expect.
>>
>> So for those two lines of heredoc prose, I thank you.
>>
>> Jeff
>>
>
> I don't know who's code you've been looking at, but I've seen a lot of
> heredoc code used.


I hung out in web developer forum for about a month. Don't remember a
single example that wasn't mine. (for that matter I'm not sure I saw a
function, let alone an object) I think that when newbies learn, this is
never something they learn. Some never get around to it.

It can be quite useful in a lot of situations. It's
> easy to both read and write.

Of course it is. Jerry we are on the same page, which has always been a
bit hard for you to grasp.
>
> However, your comments about "concatenation hell" makes me wonder if you
> understand what heredoc actually is. There is no concatenation in heredoc.

Which is a great reason to use it.

The beauty and curse of PHP, like the old ASP is that you can write
completely unmaintainable procedural code and it all works. Until you
need to change it...
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: comment utiliser l'addresse book de thunderbird
Next Topic: help with regular expressions
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 14:10:02 GMT 2024

Total time taken to generate the page: 0.04732 seconds