Home
The Data Literacy Test

Put a 1 next to each term that looks familiar. If you think you know what a term means but aren’t sure, give yourself a 0.5. Add the points and put it as a  comment when you’re done.

Read more...
 
Static Method Does Not Work In Double Quotes

Methods declared as 'static' won't work in double quotes. That is, you can not use MyClass::MyStaticMethod() in double quotes, nor can you use variable's variable. This article will give you some illustrations.

Read more...
 
Principles of Object-Oriented Design

These principles are the hard-won product of decades of experience in software engineering. They are not the product of a single mind, but they represent the integration and writings of a large number of software developers and researchers. Although they are presented here as principles of object-oriented design, they are really special cases of long-standing principles of software engineering. 

Read more...
 
14 Rules for Faster Pages

High Performance Web Sites: 14 Rules for Faster Pages

Steve Souders of Yahoo's "Exceptional Performance Team" gave a great presentation  at Web 2.0 about optimizing website performance by focusing on front end issues. The Web 2.0 talks have just been put up and the ppt is fascinating and absolutely a must-read for anyone involved in web products.

Read more...
 
A Good HTML Parser In PHP

First let me give you an explanation of what I want to do.

As you have noticed, most blogger sites or content management systems (CMS) allow users to input hypertext content. In such systems, one of the filters is a filter which handles the user input string. Here I don't want to talk about the security tricks. What I will show you is about the HTML matches in the user input.

Read more...
 
Best Practices For Using MySQL Index

The table used in this case is a user subscription table. Generally this table keeps records of users' subscription details: which topic they subscribed, when they last viewed their topics subscribed, who last replied a topic and when, when a default subscription will be expired (not used currently). Formerly we  wanted to use multiple tables. That is, store user $uid's information in table mysubs_$t ($t = $uid%8). After some consideration of the problems may be brought in the future, I decided to use one table.

Read more...
 
Fastest Way To Get Total Records From A Table

This article gives out a relative fastest way to get the number of records from a huge table, which means, the table has millions, or even hundreds of millions, of records.

In such huge tables, each possible optimization method is worth considering. Sometimes, evan one single optimized SQL sentence can save you a lot of time, especially in busy websites.

Here, the example I will use to take the test is an Innodb, not MyISAM, engined table, which has five indices and 'id' as the primary key, with more than twenty million records.

Read more...
 
When To Use Design Patterns And Why

The article generally talks about what is design pattern, when to use them and, why to use them.
You could hear what are others' opinions...

Read more...
 
Vim Tips (Tricks) Collected

Vim, an improved version of the vi editor, is one of the most popular text editors for Unix and Linux systems. It's highly configurable to enable efficient text editing. And, you know, it's free. It may be a little difficult for newcomers, but for experienced user, it shows its productivity. To make your text editing more efficient, I made a collection of those vim tips.

Read more...
 
«StartPrevious1234NextEnd»

Page 3 of 4

Copyright © 2010 PHP42. All Rights Reserved.
 

About

Shelley Shyan's Profile

Shelley Shyan is a Senior Web Engineer living in Beijing, China. He works on various Internet based projects and is also a freelance consultant.

Zend Certified Engineer     RSS Feed

Beijing Weather

Cloudy | 88°F-70°F

Who's Online

We have 12 guests online

Other Languages Blog DirectoryFind the best blogs at Blogs.com.Internet blogsWeb Developement Blogs - BlogCatalog Blog DirectoryTechnologyBlog DiggerSpreadfirefox Affiliate Button