Life of a Programmer
`Simplicity is prerequisite for reliability.’ - EWD
这几天跑单元测试代码的时候,遇到一个奇怪的问题。我有一个单元测试项目, 单独运行的时候,全都通过。但是,和整个 solution 下的其它单元测试一起跑的时候,
As a long-time Linux programmer, I barely got a laughter from my wife, when offered a few praises to the productivity of C#. It is interesting - we are apt to believe that what we’ve already known are the best, even we don’t have any convincing evidence. We are pretty much biased.
I do like the feature Language-Integrated Query, aka. LINQ, introduced since .Net 3.5. And here is a show case.
It happens to be one decade since my last visit to WuXi, Jiangsu province. It was a spring outing, and we were in sophomore (or junior) and I still remember that we watched repeatedly, , almost 6 times,Forrest Gump on the bus, during the long travel.
I planed to take my wife and son to the Yuantouzhu Park, because the sakura there are beautiful, and I was impressed by the Taihu Lake.
Tonight my wife signed a contract to buy an apartment, so that our son can attend a better school. Still, I do not buy in the reason, because I believe that the best education comes from the family, the role model we would build up for, and the belief we would pass to, our son.
I was irritated (although remained calm and silence), when one day, my wife asked, “Do you love our son?
I have been writing WebApi with OData v4 these days. While it is really fast, and convenient, I experienced a few pitfalls which costs me several hours.
URL Sensitivity 🔗The path segment etc. are case sensitive by default. Thus, you would probably receive an HTTP 404 when GET ~/api/customers instead of~/api/Customers.
String Parameter Issue 🔗Assuming that I have a bound function GetCustomerX for the entity type Customer, and it is indexed with a string identifier.