News for hackers. Stuff that matters.
Re:Show HN: xOS – a 32-bit OS for the PC by milanove on Saturday December 10, 2016 @09:37PM (#13149278)
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.
Re:Show HN: xOS – a 32-bit OS for the PC by saghm on Sunday December 11, 2016 @12:12AM (#13149706)
He's 15, I think it's okay to cut him some slack
Re:Show HN: xOS – a 32-bit OS for the PC by milanove on Sunday December 11, 2016 @02:20AM (#13149999)
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.
Re:Show HN: xOS – a 32-bit OS for the PC by morbidhawk on Monday December 12, 2016 @11:06AM (#13159027)
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.
Re:Show HN: xOS – a 32-bit OS for the PC by codazoda on Wednesday December 14, 2016 @04:08PM (#13179679)
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.