Tag Info

New answers tagged

2

The author makes the distinction between what is in the "board game" or not with the following example: eBay the website and eBay the board game both need buyers, sellers, items, and bids – but only eBay the website needs users, sessions, cookies, login/logout etc. See how he mentions "buyers" and "sellers"? These are just different names for "users", ...


3

I'm on the fence whether your code should be called a fluent interface or a train wreck. Either way, method chaining should not be overused because it decreases readability. I have first hand experience from a project where I found myself writing wrapper functions to shorter some chains. Furthermore, some folks such as Robert C. Martin in "Clean Code" ...


1

First, I think it is a good idea to refactor the with part into its own function. It makes IMHO the code easier to read, and it corresponds to the "Single Level of Abstraction" principle, which is one characteristic of clean code. Second, if it is a good idea to decorate every class of your program with this additional method, depends. I would do this only ...



Top 50 recent answers are included