mgastner / cartogram-cpp

Cartogram generator in C++
MIT License
8 stars 2 forks source link

Naming conventions for URLs #79

Open adisidev opened 2 years ago

adisidev commented 2 years ago

Currently, URLs in our code that exceed 80 characters are split into two comments. However, this ends up making it tougher to copy paste and visit the URL, or open it directly using an editor.

Indeed, the Google style guide for C++ to mentions that URLs can be above 80 characters: https://google.github.io/styleguide/cppguide.html#Line_Length

This stackexchange post has some more discussion about it. https://meta.stackexchange.com/questions/12527/do-i-have-to-worry-about-copyright-issues-for-code-posted-on-stack-overflow

Shall we perhaps consider merging the split URLs into one comment per URL?

mgastner commented 2 years ago

I rather suggest a URL shortening service