- lowercase (use
google, css, zend framework
insteadGoogle, CSS, Zend Framework
, even with names) - english (describe the object in english words, transcribe all non-english characters and punctuation to alphanumeric characters
[a-z0-9]
, tags like2006, 90s
are ok) - simple (don't use multi-word tags unless it's a name or a well established phrase)
- singular (use
map, monkey, video
insteadmaps, monkeys, videos
) - noun (use
drawing, meditation, design
insteaddraw, meditate, designed
) - system (build a personal framework, a set of tags based on your areas of interest, level of abstraction, word preference, etc. and stick to it. Ask yourself what's the most appropriate set of tags for your purpose. Remember, whatever object you are tagging, there are possibly millions of tags applicable. Pick only the tags that fit your paradigm)
- balance (when tagging an item, choose the most relevant tags from your set. If you are tagging article, ask what is it about, not what's mentioned in it. If you create too few or too many relations, your system becomes ineffective)
- action tags (one thing that works for me are
action
tags like2check, 2read, 2explore, 2print
...) - consistency (whatever rules you pick, stick to them)
- reuse (try to reuse words you have already in your tag base before adding new word. Avoid having multiple synonyms with same meaning)
Showing posts with label bestpractice. Show all posts
Showing posts with label bestpractice. Show all posts
2008-07-08
Tagging best practices
Tagging (folksonomy) is a popular and powerful way of organizing stuff
on the web. But as your tagbase grows, it itself needs to get organized...
2007-12-15
Bootstrapping PHP application
What?
Bootstrapper is a single access point (index.php
script located in the web's document root) of the web application.
Its purpose is to handle all incoming requests by 1. setting up the application
environment, 2. routing the request to the correct action controller and 3. dispatching it.
Why?
Easy application configuration (all that is common is in single bootstrapper file).How?
Setting up the application environment
- set up php environment if necessary (error reporting, include paths,...)
- set up class loader (and register is as autoloader within php)
- load common classes
- load configuration into registry
- setup db and store db handle into registry
- set up caching
- set up front controller
- set up router
- dispatch front controller
Routing the request to the action controller
- set up router
Dispatching the request (dispatch loop)
- dispatch front controller
Links
- Blueprint for PHP Applications: Bootstrapping (part 1) by Jayson Minard
- Blueprint for PHP Applications: Bootstrapping (part 2) by Jayson Minard
Subscribe to:
Posts (Atom)