Ở những nơi không sử dụng Scrum hoặc thất bại trong việc áp dụng Scrum thì có hai điều cốt lõi sau: - Thứ nhất, môi trường out source nên không tự chủ được trong sự linh động về việc phải "tung" sản phẩn của mình ra khi nào. - Thứ hai, nếu là làm … Continue reading Scrum – First thought
Category: Methodology
What does TDD mean?
From http://blog.goyello.com/2011/08/29/what-does-tdd-mean/ Pawel Olesiejuk Test Driven Development (TDD) is not about writing tests. Writing tests is writing tests, period. TDD is more than that, it’s a methodology. It has started as a part of the agile methodology invented by Ken Beck called eXtreme Programming (we recommend Kent Beck’s book “Extreme Programming Explained”). The main idea … Continue reading What does TDD mean?
Write Private Functions Not Private Methods
From http://pivotallabs.com/write-private-functions-not-private-methods/ Jared Carroll Sunday, June 30, 2013 Khi một class có quá nhiều private method (được gọi là "Lớp tảng băng trôi" - Iceberg class) thì đó là dấu hiệu cho biết class đó có thể đang làm hơn 1 nhiệm vụ (responsibility). Vì vậy việc tách (extract) những private method đó ra class khác giúp lớp … Continue reading Write Private Functions Not Private Methods
From Primitive Obsession to Domain Modelling
From http://blog.ploeh.dk/2015/01/19/from-primitive-obsession-to-domain-modelling/ A string is sometimes not a string. Model it accordingly. Recently, I was reviewing some code that looked like this: There was a few things with this that struck me as a bit odd; most notably the use of IsNullOrWhiteSpace. When I review code, IsNullOrWhiteSpace is one of the many things I look for, … Continue reading From Primitive Obsession to Domain Modelling
Parameter and Return Type Interfaces
From http://brendan.enrick.com/post/Parameter-and-Return-Type-Interfaces Brendan Enrick Thêm 1 ví dụ về Interface Segregation Principle. Trong bài này, tác giả đề cập đến việc áp dụng Interface Segregation Principle cho 2 trường hợp cơ bản nhất là kiểu dữ liệu của tham số (parameter) được truyền vào trong 1 hàm và kiểu dữ liệu của kết quả trả về (return) từ 1 … Continue reading Parameter and Return Type Interfaces
Tản mạn về Dependency Injection
Tản mạn về Dependency Injection Như thường lệ, blog của mình sẽ rất ít các định nghĩa, rất nhiều code, hình ảnh minh họa và những câu nói dí dỏm. OK, hãy bắt đầu với định nghĩa về Dependency Dependency Khi trong class A có sự tồn tại của lớp B, dùng lớp B để … Continue reading Tản mạn về Dependency Injection
We Are Complicating Things a Bit too Much (TDD & DDD)
The other day, I saw something that really encompasses one of the biggest hurdles for younger developers to get through. That hurdle is terminology. These days, there is all sorts of "___ driven development". In our team, we even joke about "assumption driven development". Naming things is one of the hardest things to deal with … Continue reading We Are Complicating Things a Bit too Much (TDD & DDD)
Working Effectively with Legacy Code (Robert C. Martin Series)
Thêm 1 cuốn sách gối đầu cho lập trình viên, đặc biệt với những ai đang làm trên legacy system. Mọi câu hỏi, khó khăn hay những cách làm việc ưu việt với legacy code sẽ được tác giả giải đáp trong suốt 25 chương của cuốn sách này. 🙂 From Amazon Get more out … Continue reading Working Effectively with Legacy Code (Robert C. Martin Series)
Template Method Pattern – Khuôn mẫu cho tất cả
Template Method Pattern Chào mọi người, hôm nay mình sẽ tiếp tục loạt bài về Design Pattern với một pattern mới: Template Method Pattern. Từ template làm chúng ta liên tưởng đến các template trong thiết kế web, khi chúng ta có 1 trang templae đã có sẵn header, footer, navigation, chỉ riêng phần boby … Continue reading Template Method Pattern – Khuôn mẫu cho tất cả
Facade pattern – Đơn giản hóa tất cả
Facade pattern Chào mọi người, hôm nay mình sẽ tiếp tục loạt bài về Design Pattern với một pattern mới: Facade Pattern. Cái tên nghe rất lạ nhưng khi bước vào implement, các bạn sẽ thấy đây là mẫu pattern gần gũi và được sử dụng nhiều nhất trong chương trình. Định nghĩa Nói một … Continue reading Facade pattern – Đơn giản hóa tất cả