Jump to content

Hall of Famer

Members
  • Posts

    314
  • Joined

  • Last visited

Everything posted by Hall of Famer

  1. Using logic code in .tpl file is not recommended. It's a good practice to provide one more layer of separation of responsibility. Create a controller or view class that handles php code processing, the .tpl file is better off simply outputting html elements and assigned php variables.
  2. Webhostingbuzz is working well for me at this point.
  3. This looks nice, although the document on killerphp.com is probably easier for amateurs to understand. Anyway an intermediate skilled programmer needs to understand all the concepts in the tutorial you posted and apply them nicely in real php applications. Without OOP, a coder is at best a beginner/amateur. So I heard that a new book called Pro PHP MVC would be released by Oct 31st, cant wait to grab one. This is perhaps a good way for intermediate skilled programmers aspiring to improve into advanced programmers.
  4. Well Id say PHP 6 needs to make Array and String as objects by default. For Arrays, numeric arrays are accessed using the square bracket notation($array[0], $array[1]), while for associative arrays the ->operator should be used($array->field1, $array->field2). Also I am surprised no one on php rfc has ever suggested inner/nested classes, which is kinda surprising seeing how even static class was brought up a while ago. Anyone interested in making a push for inner/nested class?
  5. Which of the following OOP feature is not yet supported as of PHP 5.4? A. Abstract Class B. Inner/Nested Class C. Interface D. Namespace E. Trait And the answer is... Well we all know what it is. XD
  6. Well this one is just about one year old... I guess laptops are just not suitable for video gaming.
  7. Those sims games are really nice and worth buying, unfortunately my laptop gets red hot when it runs any modern video games, even a cooling pad does not suffice.
  8. Do you actually read things before you post? Of course I do, and apparently you failed to realize what I was actually talking about.
  9. Well there must be a reason why it was Godaddy instead of HostGator and other hosting companies.
  10. the feedback forum has exploded with criticism from angry customers. Thoughts? https://www.vbulletin.com/forum/forumdisplay.php/205-vBulletin-5-Connect-Beta-Feedback https://www.vbulletin.com/forum/showthread.php/407223-VB5-Demo-Feedback
  11. Why dont we migrate to VB3.8? It is still by far the best forum software to me. But I am definitely fine with IPB, it seems to be getting more and more popular especially with VB fighting against Xenforo on the court. SMF is really an inferior forum software, it has no class or object in its source code AT ALL. It's just so unbelievable, not surprised if the script is already unable to maintain and upgrade at this point.
  12. Oops, just found that Lithium uses K&R indent style, guess Cake is not the loner afterall.
  13. I think Cjax integrates JQuery? If not there should be a plugin anyway.
  14. Well it's better to provide your php code for cronjob so the people can look into it and tell you what is wrong.
  15. I use PHPdocumentor too, a graphical user interface can be installed on your server with Softculous, and it's fairly simple to use.
  16. As far as I know, two common indent styles exist in the programming world: K&R and Allman. Well not to be disrespectful for other indent styles, I am just talking about the two most widely used ones. For me, I've been coding with K&R styles throughout my life, and find it more comfortable personally. I do, however, realize that most PHP frameworks use Allman indenting style, good examples are Zend Framework, Symfony and Codeignitor. CakePHP is perhaps the only framework stick to K&R intent style. I was wondering though, how many of you here are advocates for K&R or Allman style. And why? I was told before that it was just a matter of preference, like the color we choose for our shirts. But is it really so? Are there any other important reasons behind this preference? Is it just a coincidence that CakePHP is the only popular PHP framework using K&R?
  17. I m using Netbeans, although it keeps telling me that I have undefined variables that are taken from an included/required file.
  18. Again, what part of PHP's OOP syntax did it take from Java? Java didn't invent OOP. Java took its ideas from something else as well. Well I believe abstract class/method, final class/method and interface are all concept/syntax PHP borrowed from Java? I know static is not, since C++ has that too.
  19. Well lately I've been searching into PHP AJAX framework, which can be quite helpful for me. Don't get me wrong, I can code in both PHP and Javascript, but when they are integrated together I am totally confused. This is where PHP AJAX framework comes to play in my mind, as they can separate PHP completely from javascript(and some actually allow you to code without much javascript). I find this cjax as the most popular framework for PHP AJAX and good news is that it's still being developed(unlike dead projects like PHPlivex and half-dead projects like Xajax). The project description and download links can all be found from its official site. Seems that CakePHP and Codeignitor both use this third party library. http://cjax.sourceforge.net/ So I was wondering, how many of you prefer using a PHP-AJAX library/framework like cjax? If you were building a custom MVC framework of your own, would you use cjax in your project? And why?
  20. ZF2 is supposed to be significantly different from ZF1, this sounds kinda intriguing and I'd definitely love to see what makes it so unique.
  21. umm I think PHP borrows lots of its idea of object oriented programming syntax from Java, and of course it has evolved from them. The concept of trait is not available in Java, the namespace system also works differently from Java's package system. It's really hard to say which one is a more powerful programming language, especially considering one is primarily used for web development while the other is for designing desktop softwares. Would be nice if PHP is as much object-oriented as Java though, but I can see why it's not happening at least yet(compensation for amateur programmers struggling with objects, you bet).
  22. Yeah, I was attending a school in Pennsylvania for the past four years, now it is Cornell for me.
  23. Well this is weird, about 70% of my classmates use Windows 7, it is also common in my school's library. Of course if you count different types of students the number may vary. More than 50% of graphical art students use Apple/Mac, but for Business and Engineering students the usage of Windows is common.
  24. Neither was the majority of PHP's OOP implementation. OOP existed long before Java did. Of course I know about this, but Java did introduce some nice OOP syntax and concept that makes it more convenient and useful to program in OOP. If OOP exists for the mere purpose of information hiding, then perhaps we dont really need it at all as you can do the same job with functions.
  25. Why? Go ahead, tell us why the ability to program with or without objects is a drawback, instead of a feature. My car isn't fully a forward-moving car, it has reverse. major drawback? Bad analogy my friend, a car without reverse-moving mechanism is a huge drawback, while a programing language that prohibits procedural programming is an improvement of standard and quality. Let's think about a University that used to accept only high school seniors with great academic performance and excellent extracurricular activities, but now also takes in kids with poor intelligence and lots of extra issues like drug-usage. Of course the school increases its 'diversity' on campus and is apparently earning more money. Would you call this an improvement, from quality point of view?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.