395 reputation
212
bio website tactoth.weebly.com
location Beijing, China
age 27
visits member for 4 years, 2 months
seen Nov 25 at 8:24

I started programming in 2000 with QBasic, began doing outsourcing project from topcoder in 2006, and became a professional software engineer in 2007. I work mainly with C++ and Java. Currently I work for Banckle, my area of work is to write streaming servers.

I like most simple sports, especially swimming. I like events in which the audience can use their creativity, there're lots of them here in Beijing, which make it a quite good place to stay. However I want to explore other countries in this world. So far I haven't had any chance, but I'm seeking them.


Jun
3
accepted When you use inheritance to reuse code, do you find it too tricky that it swallows the benifits of reuse?
May
27
comment When you use inheritance to reuse code, do you find it too tricky that it swallows the benifits of reuse?
@Farrell In fact I mark it 'protected intensively so that it can be overloaded'. I think when I do this I'm using some ideas from MFC, which was badly designed.
May
26
awarded  Autobiographer
May
26
comment When you use inheritance to reuse code, do you find it too tricky that it swallows the benifits of reuse?
It's a vague question and the intention is to collect some ideas to make it easy to make design decisions. I've been switching between composition and inheritance back and forth.
May
26
comment When you use inheritance to reuse code, do you find it too tricky that it swallows the benifits of reuse?
The code example is too big, I have 30+ classes needs to be sorted out.
May
26
comment When you use inheritance to reuse code, do you find it too tricky that it swallows the benifits of reuse?
Thanks for the answer, I still think inheritance is mainly used to share logic, I've always been applying the principle that when codes can be shared, they should be shared, and when you decide not to share them, you find it becomes clearer.
May
26
asked When you use inheritance to reuse code, do you find it too tricky that it swallows the benifits of reuse?
Mar
24
comment What is the biggest trouble developers encounter when debugging?
as long as you can debug, the trouble is much smaller
Jan
27
comment What are some famous one-liner or two-liner programs and equations?
if that has been written as: if(GetRadarInfo()=1){...}, we wouldn't get this bug because it doesn't compile. So don't always introduce intermediate variable.
Nov
11
comment What do you optimize for?
@JRBWilkinson Well, should be case by case
Nov
9
comment What are some famous one-liner or two-liner programs and equations?
@Kaz Dragon such as?
Nov
9
answered What do you optimize for?
Nov
8
comment What are some famous one-liner or two-liner programs and equations?
Also I'm wondering how often do people swap values in real life programing.
Nov
8
comment What are some famous one-liner or two-liner programs and equations?
I'm just curious how is this implemented? does it create a temporary table (y, x), then assign x the 1st element and y the 2nd element?
Nov
1
answered What are the Top Developer Productivity Tools/Plugins for Java in Eclipse?
Nov
1
revised What simple techniques do you use to improve performance?
added 165 characters in body
Nov
1
comment What simple techniques do you use to improve performance?
@macneil :D fine, suggestion taken
Oct
31
comment What simple techniques do you use to improve performance?
@macneil if you are working in a higher level language, think in the same level.
Oct
31
comment What simple techniques do you use to improve performance?
@macneil well... that trick makes codes not that common and totally doesn't work, that piece of optimization is supposed to be done by compiler.
Oct
29
awarded  Scholar