hxchen's comments

hxchen | 7 years ago | on: Program Synthesis in 2017-18

A great chance ahead is to solve the "I know it when I see it" kind of problems, with Programming-by-Example practice.

Say sorting. You don't need to learn any computer science to tell a list of number is sorted or not.

Problem with the specs. Yes it's irritating to give spec that covers all the cases. But it's a universal problem in software engineering "How do I know the code works"? which applies to programs written by either human or computers.

As far as I know the solution is to write a lot of test cases. By doing that you just created a lot of examples to train a program synthesizer. It doesn't really matter the codes that pass all your tests are written by the engineer you hired or the synthesizer.

hxchen | 7 years ago | on: The Psychology of Dreaded Tasks

Same here.

Another point is that many things are "anxious" because we are doing it for the first time. Like something you used to fear about few years ago, now turns out easy because you have done it tons of time.

Something we can do better is speed up this process intentionally, by deliberate practicing.

While fear-setting can help you get started on "anxious" tasks when you have to do, dedicate some time to exercise the same thing everyday will make "anxious" thing less anxious to you in the long run.

Ben Franklin method: https://medium.com/personal-growth/the-benjamin-franklin-met...

hxchen | 7 years ago | on: Beware of strncpy and strncat

Reason: performance.

If you just do string manipulation, memncpy is faster.

If you need to convert data type, like int to string, then use snprintf.

hxchen | 7 years ago | on: Ask HN: Are you working on interesting technical problems?

Dude I got you.

Two kinds of "work": work that gives you money, and work that gives you value. They are not necessarily the same one.

Most people have to work for money. The best we can do is to gather more "money" (or resources). So that you can dedicate more of your time to generate, as you said, "interesting outcomes".

I recommend the book "Your Money or Your Life" by Vicki Robin. I learnt a lot relevant ideas from it.

hxchen | 7 years ago | on: Ask HN: When is federation a better solution than decentralization?

I agree with you on that hybrid would be a more sustainable solution.

I want to highlight a technical perspective. That’s the scalability issue of Blockchain. Fully decentralization cannot afford scalability, just as we cannot afford referendum on every polical proposal.

In fact, many technical solutions to scale the Blockchain are using the same principle of your idea of federation.

page 1