<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Web Ninja Wannabe - Latest Comments</title><link>http://webninjawannabe.disqus.com/</link><description>Web Ninja Wannabe is focused on design, web development and other internet topics. We deliver useful information, latest trends and techniques, useful ideas, innovative approaches and tools.</description><atom:link href="https://webninjawannabe.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 26 Sep 2013 09:50:17 -0000</lastBuildDate><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-1059784476</link><description>&lt;p&gt;In the end your OOP code was longer than than the original. So much from the "self-proclaimed advanced developer"?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Live_scroll</dc:creator><pubDate>Thu, 26 Sep 2013 09:50:17 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-1050134781</link><description>&lt;p&gt;I have to disagree with a lot of this.&lt;/p&gt;&lt;p&gt;"Professional programmers  are avoiding these types of variables now. Because it is really  not really a good practice."&lt;/p&gt;&lt;p&gt;I'm not sure what to say about this, because it simply is not true.  Good luck implementing anything without the use of primitive types.  They are primitive for a reason.&lt;/p&gt;&lt;p&gt;"It’s much easier in implementing security"&lt;/p&gt;&lt;p&gt;OOP does not make implementing security easier.  The code you demonstrated there can be done with or without OOP.  Your concern seems to be in repetition of code.  Wrap the code in a function.  There is no need to encapsulate this into a class.  Your first mistake in security would also be filtering the input.  Blacklisting is not the way to go in validating your input.&lt;/p&gt;&lt;p&gt;"It makes the coding more organized"&lt;/p&gt;&lt;p&gt;Not true.  When used improperly, OOP will increase the number of components in the code.  More components means higher complexity, which means less predictability.  Also consider inheritance.  You've created a hierarchy that may not even be necessary.  It also sometimes seems a bit silly to have to dig through base classes to find base implementations of virtual functions.  Depending on the language, the child class may not even specify if the function is being overriden or not (C++ for example does not do this).  Multiple inheritance?  Say hello to function ambiguity.&lt;/p&gt;&lt;p&gt;"It helps your team to work with each other easily"&lt;/p&gt;&lt;p&gt;This is not something that can be solved by OOP.  This is an issue with your team and documentation.  Consider the fact that it is still possible for two different programmers on the team to come up with similar class or object names.&lt;/p&gt;&lt;p&gt;"Using OOP can help you work like your brains are in a LAN connection."&lt;/p&gt;&lt;p&gt;Our brains do not think in an object oriented manner, so this is not true.  By nature, we think procedurally.  As a programmer, you may start to think in an object oriented manner, but that is only because you have trained yourself over time to do so.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MGZero</dc:creator><pubDate>Wed, 18 Sep 2013 18:37:45 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-1050121178</link><description>&lt;p&gt;'this' does not represent the class.  It represents a particular instance of the class.  Please don't call out someone on not being a "real" programmer when you can't get things straight yourself.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MGZero</dc:creator><pubDate>Wed, 18 Sep 2013 18:24:06 -0000</pubDate></item><item><title>Re: Squid Proxy: How To Make a Transparent Squid Proxy Server on Ubuntu</title><link>http://www.webninjawannabe.com/securities/squid-proxy-how-to-make-a-transparent-squid-proxy-server-on-ubuntu#comment-1046793466</link><description>&lt;p&gt;Hi mate just wonder do you deploy this with SARG?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mleo</dc:creator><pubDate>Mon, 16 Sep 2013 12:12:55 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-983661778</link><description>&lt;p&gt;Thank you for your reply fadgebadger,&lt;/p&gt;&lt;p&gt;I had to agree that yes I can be code with or without OOP. But the question here is it more efficient and team collaboration friendly than using OOP? The answer is NO.&lt;/p&gt;&lt;p&gt;As for usual team programmers, the usual team consist of two kinds: backend and frontend. front end usually develops the UI and the backend develops all the server process codes.&lt;/p&gt;&lt;p&gt;So the next question is, is it possible for a procedural programming to interconnect harmoniously with the two kinds of programmers? NO.&lt;/p&gt;&lt;p&gt;How are you going to interact with the frontend programmers if they request a result from SQL (ex: employee's full info) if you don't use Objects? Without methods? Implementations? Classes? Also, how do you define good programmers that uses procedural?&lt;/p&gt;&lt;p&gt;Yes I agree that not every web needs OOP procedures BUT if you want to make it more extensible, expandable and manageable, there is no other way but to use procedures like OOP. And those kinds of procedures makes the team more efficient   and more organized.&lt;/p&gt;&lt;p&gt;While its the programmers choice weather to use OOPs or not. Yet its easy for you to manage your codes and your codes alone, but it isn't an option on a team collaborative programming.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">M00G33k</dc:creator><pubDate>Thu, 01 Aug 2013 02:55:16 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-981749221</link><description>&lt;p&gt;Whilst I respect your reply I have personally built some incredibly large applications with procedural code with no issues. Well organised code is key, and this can be done procedural by good developers. OOP has it's place but not in every web application. A good programmer should know when to deem it necessary to code in either OOP or procedural, dependent on the project.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fadgebadger</dc:creator><pubDate>Tue, 30 Jul 2013 15:46:19 -0000</pubDate></item><item><title>Re: The Cost of A Logo</title><link>http://www.webninjawannabe.com/inspirations/graphic-designs/the-cost-of-a-logo#comment-952571502</link><description>&lt;p&gt;ang cute ni papi. this is mind games&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">HOTCOCKY</dc:creator><pubDate>Fri, 05 Jul 2013 01:33:25 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-947683017</link><description>&lt;p&gt;Hello Vortex,&lt;br&gt;Have you ever tried using any Framework like CodeIgniter? Those codes run on something similar like this. In large IT companies, we strictly use OOPs and frameworks are like our best friend. It seems to me that you haven't built any big applications. I know its easier to understand if its like 5 lines of code. Of course, its obvious that using OOP would be terrible if the code is just like that.&lt;/p&gt;&lt;p&gt;The problem with PHP is that everyone can code without fully understanding the concept of PROGRAMMING. As for myself, I code in Java. So Procedural programming is impossible.  Have you tried building something more complex like a forum? social networking? Have you ever tried working with a team? Handling Database Tables and converting them to models(OOPs)? I don't want to be harsh but for your own sake, please try understanding Software Engineering more and you will unlock more potential and make things more easier.&lt;/p&gt;&lt;p&gt;As for $this (this), in ANY programming languages, it automatically represents the CLASS when coding inside any statements (Any REAL programmer would know). But if you want and this bothers you, you can simply just use $x = $this; its just the same anyway.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">m00g33k</dc:creator><pubDate>Mon, 01 Jul 2013 03:17:36 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-940745539</link><description>&lt;p&gt;Your arguments and the code you present completely destroy your arguments. What is easier to read and code? Procedural coding, every damn time! What does  $this-&amp;gt;Mars = "Hello Mars!" even mean? Hell if I know! What the hell is $this? Why not simply use $x = "Hello Mars!" You don't have to try and figure out what $this is! I hate, hate, hate to death Object Oriented Programming because it make no immediate sense, while procedural programming always does. And what the hell is with "public" and "private" and whatever else there is words in the code? Can you tell by immediately looking at it? Absolutely not! OOP is simply junk code that makes things a hundred times more difficult.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vortex100</dc:creator><pubDate>Mon, 24 Jun 2013 17:06:46 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-940701653</link><description>&lt;p&gt;PHP runs on server.&lt;br&gt;PHP runs for every page (in standard scenario)&lt;br&gt;It make sense to make PHP code as short and as simple as possible, to make web page run faster.&lt;br&gt;OOP is cool, but it takes additional resources.&lt;br&gt;I prefer OOP in compiler not web languages.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jan78</dc:creator><pubDate>Mon, 24 Jun 2013 16:23:03 -0000</pubDate></item><item><title>Re: Using query_post()</title><link>http://localhost/wordpress/2013/05/03/using-query_post/#comment-887762278</link><description>&lt;p&gt;If you use query_posts within a template page, WordPress will have already executed the database query and retrieved the records by the time it gets to your template page (that’s how it knew which template page to serve up!). So when you over-ride the default query with query_posts(), you’re essentially throwing away the default query and its results and re-executing another query against the database.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ven Francis</dc:creator><pubDate>Tue, 07 May 2013 02:41:21 -0000</pubDate></item><item><title>Re: Executive Briefing on Philippine Outsourcing held in London on 16th June 2011</title><link>http://localhost/wordpress/2013/04/02/executive-briefing-on-philippine-outsourcing-held-in-london-on-16th-june-2011/#comment-887711948</link><description>&lt;p&gt;The venue was hosted by Aegis Global BPO at their impressive Lansdowne House offices in Berkeley Square, Green Park, London.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ven Francis</dc:creator><pubDate>Tue, 07 May 2013 02:11:50 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-837073314</link><description>&lt;p&gt;you can do same stuff without OOP look this:&lt;br&gt;in a file named: common.php we write this:&lt;br&gt;$planetWorld = "Hello world!";&lt;br&gt;$planetMars = "Hello Mars!";&lt;br&gt;$planetVenus = "Hello Venus!";&lt;br&gt;$planetJupiter = "Hello Jupiter!";&lt;/p&gt;&lt;p&gt;then in the main file and all others just:&lt;br&gt;include "common.php";&lt;br&gt;echo $plantMars;&lt;br&gt;echo $plantWorld;&lt;br&gt;echo $plantVenus;&lt;br&gt;echo $plantJupiter;&lt;/p&gt;&lt;p&gt;----------------------------------------------------------------&lt;br&gt;as you can see no OOP is shorter than OOP.&lt;br&gt;Conclusion: OOP is a religion, and not the only way to do....Choose your religion (the best paid IRL) and go on.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tony</dc:creator><pubDate>Thu, 21 Mar 2013 06:42:13 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-837067975</link><description>&lt;p&gt;ahahah very funny! with OP you reduce your code by 99.9% but at end your comparation example was much longer in OOP.&lt;/p&gt;&lt;p&gt;LOL you're very funny guy!&lt;/p&gt;&lt;p&gt;OOP is not a sience, is a way to think. You can done a perfect code with and without OOP.&lt;/p&gt;&lt;p&gt;This is the only truth!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tony</dc:creator><pubDate>Thu, 21 Mar 2013 06:37:54 -0000</pubDate></item><item><title>Re: Image Optimization Simple Tips and Practices</title><link>http://www.webninjawannabe.com/tutorials/image-optimization-simple-tips-and-practices#comment-830877142</link><description>&lt;p&gt;Image optimization is very important for any blog or website. Optimized images results in faster websites  as well as meaningful representations.Images are normally a major component of any site. Optimization of images is not only the size of images but also the proper use of tags.Good to read your post.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ambreen11</dc:creator><pubDate>Sat, 16 Mar 2013 01:05:23 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-829239211</link><description>&lt;p&gt;Good and useful article &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">prasanth p</dc:creator><pubDate>Thu, 14 Mar 2013 11:56:56 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-813370120</link><description>&lt;p&gt;Thanks mate, I was scratching my head about this one. It's all clear to me now!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan from England</dc:creator><pubDate>Tue, 26 Feb 2013 17:01:37 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-810405090</link><description>&lt;p&gt;ahhh ..,thats why..&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">PINKpearl Fernandez</dc:creator><pubDate>Sun, 24 Feb 2013 01:04:51 -0000</pubDate></item><item><title>Re: Inspiring Infrared Photography</title><link>http://www.webninjawannabe.com/inspirations/inspiring-infrared-photography#comment-752232682</link><description>&lt;p&gt;Would it be possible to use one of your photos for my book cover?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan Perez</dc:creator><pubDate>Mon, 31 Dec 2012 15:54:30 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-722573451</link><description>&lt;p&gt;Nice post.When will be ur next post? &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Asdasd</dc:creator><pubDate>Thu, 29 Nov 2012 08:58:42 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-542124320</link><description>&lt;p&gt;Nice post &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dee</dc:creator><pubDate>Wed, 30 May 2012 14:41:51 -0000</pubDate></item><item><title>Re: 5 Reasons Why Use Object Oriented Programming (OOP) in PHP</title><link>http://www.webninjawannabe.com/tutorials/5-reasons-why-use-object-oriented-programming-in-php#comment-541640517</link><description>&lt;p&gt;its nice &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aliansafeer</dc:creator><pubDate>Wed, 30 May 2012 03:03:42 -0000</pubDate></item><item><title>Re: Restore The Web Security Tools Plugin Back in the WordPress Repository!</title><link>http://www.webninjawannabe.com/securities/restore-the-web-security-tools-plugin-back-in-the-wordpress-repository#comment-455139595</link><description>&lt;p&gt; Lets try this &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">KennyLin</dc:creator><pubDate>Sat, 03 Mar 2012 00:20:00 -0000</pubDate></item><item><title>Re: Restore The Web Security Tools Plugin Back in the WordPress Repository!</title><link>http://www.webninjawannabe.com/securities/restore-the-web-security-tools-plugin-back-in-the-wordpress-repository#comment-455136328</link><description>&lt;p&gt; :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">KennyLin</dc:creator><pubDate>Sat, 03 Mar 2012 00:09:57 -0000</pubDate></item><item><title>Re: Restore The Web Security Tools Plugin Back in the WordPress Repository!</title><link>http://www.webninjawannabe.com/securities/restore-the-web-security-tools-plugin-back-in-the-wordpress-repository#comment-430547374</link><description>&lt;p&gt;hi Dia, sure let ralph read this. also, i send an email to Matt Mullenweg about this. So let's pray he'd help. :)&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ven Francis</dc:creator><pubDate>Sun, 05 Feb 2012 22:49:38 -0000</pubDate></item></channel></rss>