This is a discussion on "Ever get the developer's equivalent of writer's block?" within the PHP Forum section. This forum, and the thread "Ever get the developer's equivalent of writer's block? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Ever get the developer's equivalent of writer's block?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Ever get the developer's equivalent of writer's block?
I'm stuck.
I've been working on the same effin' page(s) for nearly a week now. I've scrapped it and started from scratch more than once. I've run into all kinds of weirdness and learned an awful lot (my php skills are on the low side of intermediate - but climbing rapidly!) but I'm no closer to being done and I'm about ready to scrap it all and start over one more time. Anyone else ever dealt with this? Any general advice for me (before I have to replace an $800 picture window and a $1200 notebook computer?) |
|
|
|
||||
|
Re: Ever get the developer's equivalent of writer's block?
Ryan, i know this is a but of a stupid question...lol....but how do you comment out in XHTML??? ive tried "//" and "/*blah*/" but it does not work!
|
|
||||
|
Re: Ever get the developer's equivalent of writer's block?
Dont worry, ive got it lol..... <!-- --> i knew it was somting like that but i was doing <-- -->
|
|
||||
|
Re: Ever get the developer's equivalent of writer's block?
XHTML should never need commenting. It's content, not a program. It's bad for your code to content ratio anyway (e.g. it could hurt your search engine rankings)
|
|
||||
|
Re: Ever get the developer's equivalent of writer's block?
nah, not that i am going to use it... but its good if people that dont know XHTML they can look at the comment then underneath there will be the code... that would be easier for them to find what's what.
|
|
|||
|
Re: Ever get the developer's equivalent of writer's block?
Now THAT is impressive!!! I came back to read the replies and noticed that "notebook computer" (in my original post - the one I'm about to throw through a window) had become an advert link... I moused over it, and the ad was for a Panasonic Toughbook! "Tough. Durable. blah blah blah". That's some pretty amazing context-sensitive advertisement!
Thanks for the response, Ryan. My code is actually very well commented. I developed a system which serves for both commenting and debug output...
All that said, it doesn't seem to be helping me that much at the moment. Having slept on it, I think this is my next approach... I'm going to break the whole thing up into a bunch of tiny, highly specialized standalone pages, each of which works on it's own. Then I'll wite a page including all of those pages. Then I'll copy page content and replace include statements with that code. Hope this works. I'm spending WAY too much time on this "Hello, World!" page! |
|
|||
|
Re: Ever get the developer's equivalent of writer's block?
Only if you publish your code without stripping the comments first!
|
|
||||
|
Re: Ever get the developer's equivalent of writer's block?
One thing I do sometimes is to pull out major code chunks and save them in a separate text file to isolate a specific functionality, then mix them back in. A tabbed text editor is a big help here.
|
![]() |
| Tags |
| coding practices, general, php |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Block PHP Tag | Jack Franklin | PHP Forum | 5 | Feb 13th, 2008 23:12 |
| New Kid on the Block:) | carib | Introduce Yourself | 8 | Apr 25th, 2007 00:54 |
| formmail equivalent | simonneaves | Classic ASP | 5 | Sep 21st, 2005 11:58 |
| Equivalent of Select Case in Php ? | Andy K | PHP Forum | 1 | Aug 19th, 2005 08:21 |
| New Man on the Block | phillyphreak | Introduce Yourself | 6 | Jul 1st, 2005 16:55 |