Hacker Newsnew | past | comments | ask | show | jobs | submit | marcoc's commentslogin

For me the link to forbes.com/billionaires isn't working right now. Archived copy https://web.archive.org/web/20251111072724/https://www.forbe...


Which one?


Now that I think about it, are there any color schemes or extensions that highlight the error handling logic differently so that one can better focus on the “main” logic flow of the code while the error handling logic is still there?


You would have to infer the intent of the code. One example, from a small project I'm working on:

    $ find . -name "*.go" | xargs grep 'if err !=' | wc -l   
     242
    $ find . -name "*.go" | xargs grep 'if err ==' | wc -l
      12
So about 5% of the error checking code is about handling the edge cases, where we are very much interested in what the error actually is, and need to handle those conditions carefully.

If you discard that as "error handling noise", you're in for a bug. Which is, by the way, perhaps the worst side-effect of verbose, repetitive error handling.

Apropos syntax highlighting: many themes in regular use (certainly most of the defaults) choose a low-contrast color for the comments. The comments are often the most important part of the code.


Goland folds it visually partially https://github.com/golang/vscode-go/issues/2311


I would love something like this, and if it exists, I've not come across it. Offloading a way of differentiating error handling syntax vs. normal code to the IDE seems like a nice way of handling this issue.




How can one create a professional looking pdf like the QOAF specification one?


Two-column layout in Microsoft Word, large header, smaller footer, with appropriate font choices would get you basically all the way there.


HTML+CSS, converted to PDF via the Save As PDF feature in Firefox. (Or the same could be done with other browsers, but this one apparently comes from FF.)


I looked at the PDF, and can confidently say I could typeset that in a word processor, using a stylesheet to sustain it.

That's not what they did, apparently.

The document properties call out https://cairographics.org


Cairo’s a couple layers down from what you’re talking about. It’s the actual glyph rendering.


Yeah. It's just a clue indicating they didn't use a word processor.



Do you have a source for this information?



Why? Does Lapham have a paywall?


1) Boats need to enter/exit Venice Laguna

2) Venice Laguna is huge, I don't think that could be feasible


The objection in TFA was ecological damage due to de-oxygenation of the water. They don't mention boats as a problem so I'd guess that's taken care of?

As for the size of the laguna, they're talking about walling the whole thing off so some circulation pumps shouldn't be too much of a stretch. Alternately they could install some kind of bubbler system (like a giant version of a fish tank air pump) to keep the water aerated in situ. Again, it's not going to be pocket change but it's an option.


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

Search: