Kubi's comments

Kubi | 6 years ago | on: Ask HN: Just found out that I’m gonna be a dad

Hi, Please ask if any part of my post is ambiguous (I'm not a native english speaker).

- Not leaving the baby alone especially when she cries, is simply one of the most important things. The first year is the time of developing the confidence. I recommend this: https://www.parentingscience.com/strange-situation.html

- Later, at age of 1..2 years: limits, rules will be more important. Without limits the child would not feel safe, and often tends to put control in her own hands, which is not her responsibility at that age. Also see: "fear of losing control". IMHO its especially hard if you've done right all the 1st year. :)

- Playing with her is a lot more important than giving toys.

- Tantrum is not a problem, even if it lasts for 30-40 minutes. It is an emotional expression, saying something like "Help, I lost the attachment to you!" A good limit for example: She must not hurt anybody, but expressing emotions is allowed.

- Screen, phone, tablet, Youtube, etc. is forbidden until 5 years, later time-limited (if inevitable). I know that a lot of people are opposed.

Yes, being a parent is challenging.

Kubi | 8 years ago | on: Ask HN: Weirdest hack that you ever saw in production?

Big C codebase. To be more precise, they said it's C++, but as far as I could see, it was C compiled with g++.

Some code read xml data. Instead of choosing one of the xml-parsers available, author decided to write another one. Instead of using C++ features, atoi() used. For empty strings, atoi() got NULL and segfaulted. Signal 11 has been handled and suppressed in order to avoid crashes. Certainly, the code had other segmentation faults too, which could not been discovered this way. :)

page 1