Hacker News new | ask | show | jobs
by milanove 3640 days ago
He also created a remake of this in C called "mos". Kind of irks me that he does "if(var == true)" instead of "if(var)" in certain spots though.
3 comments

He's 15, I think it's okay to cut him some slack
He was able to make his own operating system though. However, I agree. In comparison to his achievement, simple code style choices are nearly irrelevant.
Why is the second version so much better? To me I think it's just a preference of the person reading the code. That it is true is implied, being explicit that it evaluates to true might be more clear to him when he goes back and reads his code.
I prefer the longhand version; seems a tiny bit more readable. We're talking about C, but it becomes important in some higher level languages. Just my personal preference though.