Search found 21 matches
- Thu Dec 15, 2005 8:57 pm
- Forum: General Discussion
- Topic: Frameworks vs DIY
- Replies: 1
- Views: 893
Frameworks vs DIY
Frameworks or Do-It-Yourself? Ruby on Rails came out with 1.0 the other day... I'm now taking a look at symfony, a PHP5 framework, as well as Ruby on Rails. The problem I have with frameworks is that I get this weird, funny sensation inside of me, telling me that I'm not doing the work... which shou...
- Sat Dec 10, 2005 7:23 pm
- Forum: Testing
- Topic: Types of Tests
- Replies: 1
- Views: 5838
Types of Tests
Just wanted to ask about all these different kinds of tests I hear people talk about... Acceptance tests Unit tests Integration tests I'm writing tests, but I'm not exactly sure differences. Also, most stuff I read are for applications and not for websites, how different are the acceptance tests for...
- Fri Nov 25, 2005 1:52 am
- Forum: PHP - Theory and Design
- Topic: Template Logic
- Replies: 13
- Views: 5102
I had some stuff to take care of, so didn't get back to this until today... There does seem to be quite a bit of ideas floating around about ways to separate content and presentation... I guess it comes down to the needs and goals of the project and the people who's working on it... I'm leaning towa...
- Mon Nov 21, 2005 12:30 pm
- Forum: PHP - Theory and Design
- Topic: Template Logic
- Replies: 13
- Views: 5102
Template Logic
Hi, Example: I'm writing a page displaying products resulting from a search. If there are no products found in the search, I should return no matches found. Should this logic be inside a template? Like (I'm using PHP as a template logic): <html> <?php if (count($products) == 0) ?> Sorry, No matches ...
- Wed Oct 26, 2005 1:26 am
- Forum: Testing
- Topic: TDD Session
- Replies: 11
- Views: 13663
It takes time to learn and you'll probably have to be prepared to tear things up and start again more than once. It can feel like you're getting nowhere but each time you'll be learning a little bit more. That's exactly what I'm feeling, but I'm learning and getting there. Thanks for all the advice...
- Mon Oct 24, 2005 8:27 pm
- Forum: Testing
- Topic: TDD Session
- Replies: 11
- Views: 13663
Thanks, McGruff, for the guidance. I'm going to try to work on a project using TDD, I'll post more if I have questions. My main issue is that I heard you should read books like PoEAA (in progress), and also I heard so much about MVC, Registry patterns and read all those Sitepoint forum discussions, ...
- Sun Oct 23, 2005 3:10 am
- Forum: PHP - Code
- Topic: Underscore naming
- Replies: 2
- Views: 595
Underscore naming
Hi,
I've seen some php functions named, such as:
What does underscore functions do?
My guess was in PHP4, there weren't private functions, so do underscore naming denote private functions?
Thanks![/quote]
I've seen some php functions named, such as:
Code: Select all
$class->_database()
$class->_print()My guess was in PHP4, there weren't private functions, so do underscore naming denote private functions?
Thanks![/quote]
- Sat Oct 22, 2005 10:21 pm
- Forum: Testing
- Topic: TDD Session
- Replies: 11
- Views: 13663
I was getting some undefined index errors (I'd recommend E_ALL error reporting) but a minor change got everything running green again: I was able to get rid of them. Just to reaffirm, it's good to get rid of those E_Notice as well, right? I remember reading something about PHP5 and error notices, c...
- Fri Oct 21, 2005 10:18 pm
- Forum: Testing
- Topic: TDD Session
- Replies: 11
- Views: 13663
Sorry for the delay, I had exams. 8) class PatternIterator { private $haystack; private $pattern; public function __construct($hay) { $this->haystack = $hay; } public function setPattern($pattern) { $this->pattern = $pattern; } public function next() { if ($this->pattern == '') { trigger_error('Empt...
- Wed Oct 19, 2005 12:53 am
- Forum: Testing
- Topic: TDD Session
- Replies: 11
- Views: 13663
Thanks very much for your time, McGruff. Much appreciated. Note - I am using PHP5. I hope that's not an inconvenience. class PatternIterator { private $haystack; public function __construct($hay) { $this->haystack = $hay; } public function next() { if ($this->haystack == '') { trigger_error('Empty r...
- Sun Oct 16, 2005 1:42 am
- Forum: Testing
- Topic: TDD Session
- Replies: 11
- Views: 13663
TDD Session
I don't get it. Well, I do... sort of. I get the gist behind the ideas of TDD. Now, as for execution of TDD, I have no clue. I heard we start testing top down. Also, TDD can drive the design. But how? I can't seem to figure it out. Looking at other people's fully done testing code doesn't seem to he...
- Wed Sep 14, 2005 12:59 am
- Forum: Linux
- Topic: Installing PHP5 on Ubuntu
- Replies: 3
- Views: 3640
- Sun Sep 11, 2005 1:52 pm
- Forum: Linux
- Topic: Installing PHP5 on Ubuntu
- Replies: 3
- Views: 3640
- Thu Aug 25, 2005 8:45 pm
- Forum: PHP - Theory and Design
- Topic: Application Controllers
- Replies: 14
- Views: 6777
- Fri Aug 19, 2005 1:00 am
- Forum: PHP - Theory and Design
- Topic: CoR and Intercepting Filter
- Replies: 4
- Views: 2838
CoR and Intercepting Filter
Hi,
I'm wondering if anyone can explain the difference between Chain of Responsibility and Intercepting Filters... They both use some sort of "chains", but what's the logic difference there?
Thanks!
I'm wondering if anyone can explain the difference between Chain of Responsibility and Intercepting Filters... They both use some sort of "chains", but what's the logic difference there?
Thanks!