tag:blogger.com,1999:blog-27967160127034725262018-03-07T02:12:35.165+06:00Coders' ViewSerkan Yılmazhttp://www.blogger.com/profile/11379749113801460028noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-2796716012703472526.post-32138474441826968312009-08-28T12:00:00.009+06:002009-09-25T03:32:48.754+06:00Programming high-performance applications on the Cell BE processor, Part 1: An introduction to Linux on the PLAYSTATION 3The Sony® PLAYSTATION® 3 (PS3) is the easiest and cheapest way for programmers to get their hands on the new Cell Broadband Engine™ (Cell BE) processor and take it for a drive. Discover what the fuss is all about, how to install Linux® on the PS3, and how to get started developing for the Cell BE processor on the PS3.
The PLAYSTATION 3 is unusual for a gaming console for two reasons. First, it Serkan Yılmazhttp://www.blogger.com/profile/11379749113801460028noreply@blogger.com0tag:blogger.com,1999:blog-2796716012703472526.post-55450897156340849382009-07-20T03:40:00.008+06:002009-09-25T03:40:14.107+06:00Build seven good object-oriented habits in PHPWith PHP's object-oriented (OO) language features, if you aren't already creating your applications with OO principles in mind, these seven habits will help you get started in the transition between procedural programming and OO programming.
In the early days of PHP programming, PHP code was limited to being procedural in nature. Procedural code is characterized by the use of procedures for the Serkan Yılmazhttp://www.blogger.com/profile/11379749113801460028noreply@blogger.com0tag:blogger.com,1999:blog-2796716012703472526.post-73203668431005306702009-07-17T19:59:00.005+06:002009-09-25T03:41:18.752+06:00How to create an API? Here are 10 tutorialsBehind almost every successful web application, there is an easy-to-use & feature-rich API as they simply help the main application to spread into others & reached by more users.
Also, an API-enabled application can be easily developed further using the API itself.
In order to create an API for your web application, here are 10 tutorials to get you started. But before that, you may want to Serkan Yılmazhttp://www.blogger.com/profile/11379749113801460028noreply@blogger.com0tag:blogger.com,1999:blog-2796716012703472526.post-50480114815103058852009-05-23T03:45:00.005+06:002009-09-25T03:41:36.437+06:00The chain-of-command pattern using PHPBuilding on the loose-coupling theme, the chain-of-command pattern routes a message, command, request, or whatever you like through a set of handlers. Each handler decides for itself whether it can handle the request. If it can, the request is handled, and the process stops. You can add or remove handlers from the system without influencing other handlers. Chain.php shows an example of this Serkan Yılmazhttp://www.blogger.com/profile/11379749113801460028noreply@blogger.com0tag:blogger.com,1999:blog-2796716012703472526.post-50293959183249596692009-05-23T03:27:00.009+06:002009-09-25T03:41:51.055+06:00The strategy pattern using PHPIn the strategy pattern, algorithms are extracted from complex classes so they can be replaced easily. For example, the strategy pattern is an option if you want to change the way pages are ranked in a search engine. Think about a search engine in several parts -- one that iterates through the pages, one that ranks each page, and another that orders the results based on the rank. In a complex Serkan Yılmazhttp://www.blogger.com/profile/11379749113801460028noreply@blogger.com2tag:blogger.com,1999:blog-2796716012703472526.post-25295339951235020812009-05-23T03:16:00.008+06:002009-09-25T03:42:06.059+06:00The observer pattern using PHPThe observer pattern gives you another way to avoid tight coupling between components. This pattern is simple: One object makes itself observable by adding a method that allows another object, the observer, to register itself. When the observable object changes, it sends a message to the registered observers. What those observers do with that information isn't relevant or important to the Serkan Yılmazhttp://www.blogger.com/profile/11379749113801460028noreply@blogger.com0tag:blogger.com,1999:blog-2796716012703472526.post-7443558935027228762009-05-23T03:09:00.009+06:002009-09-25T03:42:19.938+06:00The singleton pattern using PHPSome application resources are exclusive in that there is one and only one of this type of resource. For example, the connection to a database through the database handle is exclusive. You want to share the database handle in an application because it's an overhead to keep opening and closing connections, particularly during a single page fetch.
The singleton pattern covers this need. An object Serkan Yılmazhttp://www.blogger.com/profile/11379749113801460028noreply@blogger.com3tag:blogger.com,1999:blog-2796716012703472526.post-13625198683381297102009-05-23T01:40:00.011+06:002009-09-25T03:42:33.867+06:00The factory pattern using PHPMany of the design patterns in the original Design Patterns book encourage loose coupling. To understand this concept, it's easiest to talk about a struggle that many developers go through in large systems. The problem occurs when you change one piece of code and watch as a cascade of breakage happens in other parts of the system -- parts you thought were completely unrelated.
The problem is Serkan Yılmazhttp://www.blogger.com/profile/11379749113801460028noreply@blogger.com0