Posted in September 30, 2011 ¬ 4:34 pmh.admin
At work we pull ranks for how key-phrases ranked on certain search engines once a week. We have many clients and each client has multiple key-phrases and each key-phrase has ranks for multiple search engines. This information is stored in the database. This information adds up more and more over time. So the longer a [...]
Read the rest of this entry »
Posted in September 21, 2011 ¬ 4:30 pmh.admin
The Decorator Pattern uses composition and delegation instead of inheritance. Inheritance can lead to inflexibility, duplication, and an explosion of classes as your inheritance gets deeper and more complex. By using the Decorator Pattern we are able to modify the functionality of concrete components of a object at runtime.
Read the rest of this entry »
Posted in September 12, 2011 ¬ 11:42 amh.admin
The loading of our client information pages at work has been taking longer and longer over time. We have cached as much as we can to help solve this problem. There is only so much we can cache being that these pages are very dynamic and permission driven. Then we looked into MySQL indexes to [...]
Read the rest of this entry »
Posted in August 26, 2011 ¬ 3:56 pmh.admin
Refactoring is the process of taking a running program and adding to its value, not by changing its behavior but by giving it more of these qualities that enable us to continue developing at speed. Refactoring can also be thought of as making changes to code without change the observable behavior of the software. Adding [...]
Read the rest of this entry »
Developmentcode-refactoring-using-oops, codes-in-oop, dealing-with-parallel-inheritance-hierarchies-refactoring, don-roberts-duplicate-code, how-is-refactoring-in-object-oriented-programming, OOP, oop-refactoring, parallel-inheritance-hierarchy-pattern, reducing-duplicate-oop-code, refactor-code-using-oops, Refactoring, refactoring-in-oop, registration-email-duplicate-code-in-object-oriented
Posted in August 5, 2011 ¬ 3:45 pmh.admin
I found that you can create a GrooveShark Music Widget on your own website made from one of your playlist on GrooveShark. First thing is to goto GrooveShark and create an account so that your playlist will last. Next is to create a playlist on GrooveShark of songs you would like played on your website. [...]
Read the rest of this entry »
Developmentcreate-a-widget-from-grooveshark, custom-groove-shark-widget-themes, custom-widget-for-grooveshark, groove-shark-widget-for-your-website, grooveshark-dev, grooveshark-songwidget, grooveshark-website-widget, grooveshark-widget, grooveshark-widget-code, grooveshark-widget-code-customize, grooveshark-widget-codes, grooveshark-widget-customize, grooveshark-widget-for-my-website, grooveshark-widget-settings, grooveshark-widget-use-on-website, grooveshark-widgets-customize, music-gadget-for-website, music-widget-for-website, Tutorial, use-grooveshark-on-own-website
Posted in August 5, 2011 ¬ 3:25 pmh.admin
PHP Strategy Design Pattern Strategy Design Pattern Is an abstract base class that implements by inheriting classes that can be instantiated into concrete objects. Strategies can be used for deciding what type of image to create(.png or .jpeg) or what type of compression to use(.tar.qz or .zip) when zipping a file, determined by what system [...]
Read the rest of this entry »
Developmentadmin-strategy, database-startegy-pattern-php, Design Patterns, design-pattern-strategy-php, examples-of-strategy-design-pattern-php, how-to-give-the-permission-to-linux-for-kohana, php-strategy-design-pattern, php-strategy-entwurfsmuster-abstract, php-strategy-pattern-database, source-code-for-how-to-give-particular-permissions-to-admin-role-in-kohana, Strategy Design Pattern, strategy-pattern-database, strategy-pattern-in-php, strategy-pattern-php
Posted in April 27, 2011 ¬ 3:14 pmh.admin
The factory design pattern uses a static method inside a factory class that receives some input and according to that input decides what class instance to create as a concrete object. This solves the problem of when you do not know the kind of object that will be needed till run time.
Read the rest of this entry »
Developmentclass, Design Patterns, design-pattern-for-search-engine, design-pattern-php-include, Factory Design Pattern, factory-design-pattern-in-php, factory-pattern-php, functions-php-get_ranks, Gang of Four, google-search-parser-preg_match-httpwww-google-comsearch, google-search-preg_match_all-php, Object, PHP, php-design-pattern-factory, php-factory-class, php-factory-design-pattern-framework, php-factory-pattern-framework, php-search-design-pattern, Search Engine, static-pattern-in-php
Posted in April 25, 2011 ¬ 11:31 amh.admin
The Multiton Design Pattern is a variance on the Singleton Design Pattern. The Multiton Pattern expands on the Singleton concept to manage a associative array of named instances as key-value pairs or a Registry of singletons. The multiton pattern ensures a single instance per key.
Read the rest of this entry »
Developmentclass, database, Design Patterns, Gang of Four, multi-ton-design-pattern, multiple-db-connection-class-php-pattern, Multiton Design Pattern, multiton-design-pattern-example, multiton-how-to-use, multiton-pattern, multiton-pattern-php, multiton-php, Object, PHP, php-multi-ton, php-multi-ton-design-patterns, php-multiton, php-multiton-pattern, php-pattern-multiton, Singleton Design Pattern
Posted in April 21, 2011 ¬ 3:30 pmh.admin
The Singleton Design Pattern is for an object that handles a centralized operation in your application. The first time you call the constructor a single instance is created and every other time after that you call the constructor that same instance is returned.
Read the rest of this entry »
Developmentclass, database, Design Patterns, Gang of Four, gang-of-four-singleton-php, multiple-singleton-pattern-php, Multiton Design Pattern, multiton-pattern-php, Object, PHP, php-configuration-singleton, php-database-singleton, php-multi-ton-design-patterns, php-multiton-configuration-file, php-singleton-index-php-mehrere-clients, php-singleton-multiple-connections, runtime-selection-of-db-in-factory-design-pattern, Singleton Design Pattern, singleton-multiple-database-configurations-php, where-used-singleton-design-pattern-constructor-php-example
Posted in January 28, 2011 ¬ 5:02 pmh.admin
These steps were written for me by Steve Phillips (visual77.com). I believe by following these steps you will end up with a well written class.
Read the rest of this entry »