Hacker News new | past | comments | ask | show | jobs | submit login

It's typical Stroustrup style to write code in a variable width font. I'd wager they didn't have an option to use a variable-width font in their code blocks in their CMS and normal paragraphs are trimmed automatically.

I didn't see the author at first. However, immediately after seeing the code I checked for the author, because I was sure it was Stroustrup.






The other give away is that he wants to use his awful "I/O streams" feature even though he also wants very modern features like modules.

Normal people who have a modern environment would std::println but Bjarne insists on using the I/O streams from last century instead


While you are right about the books of Stroustrup, here your inference is wrong, because Stroustrup cannot have anything to do with the CSS style sheets of the ACM Web site, which, in conjunction with the browser settings, determine the font used for rendering the text.

On my browser, all the code is properly indented, most likely because my browsers are configured correctly, i.e. with a monospace font set as the default for "monospace".

Whoever does not see indentation, most likely has not set the right default font in their browser.


They just fixed it by now. It was different when the story was new.



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: