Skip navigation.

Blog da chuyen sang dia chi: hoctudau.com

moi cac ban sang dia chi moi : hoctudau.com (hoac: http://ohisee.com)

Những sách nên đọc

Trước tiên tôi xin ghi chú là tôi chưa bao giờ đặt sự giàu có (về tiền bạc) làm mục tiêu cuộc đời mình, và bài viết này chỉ dành cho những ai quan tâm đến việc làm web, những ai chỉ quan tâm đến làm giàu xin miễn đọc blog này. Đơn giản vì đây là 1 blog về IT và sách đương nhiên là sách IT. Cần tìm hiểu về làm giàu xin sang chỗ khác đọc, hoặc làm việc gì đó có ích cho mục tiêu của bạn hơn.

Tôi liệt kê 1 số quyển tôi cho là viết hợp lý và chính xác:
Clientside bao gồm:
HTML Mastery
CSS Mastery
Pro Javascript Teachniques

Serverside - PHP
Apress Beginning PHP and MySQL 5 From Novice to Professional 2nd Edition (2006)
Prentice Hall PHP 5 Power Programming (2004)
O'reilly Programming PHP 2nd Edition (2006)

Thôi tạm thế là quá nhiều rồi :D, nên tự làm, 80% skill ở đó mà ra, thực tế là tôi cũng gần như ko bao giờ đọc sách :D trong gần 10 năm nay, và đang khôi phục thói quen đó.

Ebook về CSS

Tập hợp các ebook về CSS nói riêng và IT nói chung:

Tiếng Việt:
Tài Liệu về CSS tiếng Việt - Cơ bản

Các quy luật đối với việc thiết kế và phát triển website

Khai bút đầu năm, sẽ dịch bài này khi chuyển nhà mới, he he. http://www.blueflavor.com/blog/thinking/the_immutable_laws_of_web_design_and_development.php

Brooks’ Law

Adding manpower to a late software project makes it later.

Probably the law I quote the most. I can’t tell you how many times a client has asked, “can’t we just throw another guy at the problem?”

Parkinson’s Law

Work expands so as to fill the time available for its completion.

In other words—scope creep. Keep projects short and sweet, otherwise they tend to become unmanageable beasts.

Hoare’s Law of Large Programs

Inside every large problem is a small problem struggling to get out.

A perfect reminder that we often create larger problems from small ones. Always remember to focus on the goal or need, everything else is secondary.

Lister’s Law

People under time pressure don’t think faster.

Tell that to any startup and they will probably show you to the door, but very true. The only result you get from putting people under pressure is unnecessary stress. Take a deep breate and avoid letting your stress become someone else’s.

Pareto Principle

For many phenomena, 80% of consequences stem from 20% of the causes.

Also known as the “80/20 Rule,” though most people seem to use it incorrectly. I don’t know if I fully believe in this principle. I think we tend to have a false perception that this is true, therefore tend to focus on 20% of the problem, or the dreaded edge case.

The Peter Principle

In a hierarchy, every employee tends to rise to his level of incompetence.

This principle comes in to play when dealing with the opinions of overzealous stakeholders. It can be difficult to call out that you know more about this web stuff than your boss, but you it must be done.

Otherwise…

Conway’s Law

Any piece of software reflects the organizational structure that produced it.

This law is absolutely true of websites as well. Organizations that have bad communication or poorly defined roles often have websites that cost them way more then they should.

Fitts’ Law

The time to acquire a target is a function of the distance to and the size of the target.

This one seems to be a favorite with speakers at web conferences, but is a handy reminder of information and visual design.

Tesler’s Law of Conservation as Complexity

You cannot reduce the complexity of a given task beyond a certain point. Once you’ve reached that point, you can only shift the burden around.

A good principle of information architecture. Complex tasks tend to be broken up and can often become more confusing in the process. Identify the hard stuff early on and treat it different than everything else.

Occam’s Razor

The explanation requiring the fewest assumptions is most likely to be correct.

This principle is helpful when trying to understand human behavior. Sometimes things just work, you may not think it is right, and you may no understand why, just go with it.

Hofstadter’s Law

A task always takes longer than you expect, even when you take into account Hofstadter’s Law.

Isn’t that the truth. The best trick here is to record your time, then you always have a record to refer to. This gives you a good starting point to estimate how long the next task will take.

Ninety-ninety Law

The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.

The law is absolutely true. Once the end is in sight, the finish line tends to drift into the distance. Keeping development milestones short and sweet tend to help. It allows developers to feel like they’ve accomplished something rather than wallow in a pit of despair.

Hartree’s Law

Whatever the state of a project, the time a project-leader will estimate for completion is constant.

This law always reminds me of the movie Money Pit. Whenever the contractors were asked when the job would be done they said, “oh… in about two weeks” but in reality it took a year. Trying to set the right completion expectation is always hard. I find just being totally honest with the client goes a long way to not setting false hopes.

Jakob’s Law of the Internet User Experience

Users spend most of their time on other sites. This means that users prefer your site to work the same way as all the other sites they already know.

Coined by Jakob Nielsen, the king of sameness. While this statement may read like BS, there is some truth it. People adapt to what they know, they have certain assumptions about the way things work that cannot be ignored.

Which could also be said this way…

Fisher’s Fundamental Theorem

The more highly adapted an organism becomes, the less adaptable it is to any new change.

But…

Clarke’s Second Law

The only way of discovering the limits of the possible is to venture a little way past them into the impossible.

Coined by Author C. Clarke, I find his laws to be both keen observations as well as powerful reminders to seek out the unknown, question the assumed truth and constantly push for new discovery, invention.

Gỡ lỗi trong CSS.

Việc gỡ lỗi CSS có thể là một công việc không đơn giản nhất là khi bạn làm việc với một site có cấu trúc phức tạp hoặc có nhiều file css.

Sau đây là các bước gỡ lỗi.

Bước 1: Validate site của bạn.
Đây là việc mà đằng nào bạn cũng phải làm, nên ta cứ làm đầu tiên. Việc này cũng giúp bạn tránh được những lỗi "ngớ ngẩn" như là viết sai cú pháp, thiếu thừa một dấu chấm chẳng hạn. Sau đây là 2 tool để validate xHTML và CSS:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/
Nhưng dù sao sự đánh giá của những công cụ này chỉ là tương đối mà thôi, nhiều khi site rất hoàn thiện nhưng công cụ vẫn có thể sai chứ. Trong giai đoạn này, những công cụ debug như Firebug, Web Developer Toolbar, hoặc IE Developer Toolbar ... tỏ ra hữu dụng.

Bước 2: Chia nhỏ css thành nhiều file khác nhau.
Đầu tiên là chia nhỏ css thành nhiều file css ngoài khác nhau. Sau đó thử bỏ link đến từng file để xác định vai trò của chúng. Sau đó có thể đổi thứ tự xuất hiện của các file css. Nếu vẫn chưa xác định được bước bạn sắp đến công việc nặng nhọc hơn.

Bước 3: Cut & Paste & Edit.
Vấn đề có thể xuất hiện trong code xHTML, hoặc từng chi tiết CSS. Bây giờ bạn thử xóa đi vài đoạn xHTML hoặc CSS, thay đổi thuộc tính để xác định vai trò của nó.


Bước 4: Phân tích.
Sau khi xác định được chỗ gây lỗi, đây là lúc bạn tạo ra 1 test case nhỏ về nó để học hỏi thêm, lúc đó bạn cần hỏi thêm Mr Google , hoặc là đọc thêm trên W3C, w3schools, CMX để bổ sung kiến thức của mình về bug vừa gặp, có khi cũng cần nhớ lại kiến thức bạn đã đọc trong sách nữa.

Tóm lại cho dù bạn ko gỡ được lỗi thì bạn cũng học hỏi đựợc nhiều, và đó mới là điều quan trọng :D, cho nên nếu bạn copy 1 đoạn code trên CSS trên mạng xuống để sài, thì cũng nên thử áp dụng 4 bước trên chỉ để học hỏi :D.

W3Schools - Hoc lam web thong qua cac vi du

Trong hoc tap, thu vi va hieu qua nhat la khi co the thuc hanh ngay.

HTML thi de qua roi, con CSS, JS,... thi sao. Tren w3schools co nhung vi du de chung ta thuc hanh ngay.

CSS Examples
http://www.w3schools.com/css/css_examples.asp

JavaScript Examples
http://www.w3schools.com/js/js_examples.asp

JavaScript Object Examples
http://www.w3schools.com/js/js_examples_2.asp

JavaScript HTML DOM Examples
http://www.w3schools.com/js/js_examples_3.asp

HTML DOM Examples
http://www.w3schools.com/htmldom/dom_examples.asp

DHTML Examples
http://www.w3schools.com/dhtml/dhtml_examples.asp

AJAX - a simple examples.
http://www.w3schools.com/ajax/ajax_server.asp

http://www.w3schools.com/ajax/ajax_serverscript.asp

ASP.NET Examples
http://www.w3schools.com/aspnet/aspnet_examples.asp
Download Opera, the fastest and most secure browser
January 2010
M T W T F S S
December 2009February 2010
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31