www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: Code style and project status

Re: Code style and project status

From: Will Cosgrove <will_at_panic.com>
Date: Wed, 20 Mar 2019 15:33:52 -0700

>> Any chance we can extend the line length over 80 characters? Is there a reason to use this antiquated value?
>
> Some call it antiquated. I call it sensible.
>
> Seriously though, I'm open to discussing the rules as I believe consistency is more valuable than insisting on an exact style. Code style is a lot about taste and religion.
>
> So what do you say is a suitable max length?

My first thought would be 100 characters. A modest increase.

> I actually think it works the other way around. It forces us to stop using ridiculously long and hard-to-read names and instead encourage us to use shorter names that are more readable and easier to remember. I do think we still have far too many very long names in libssh2.

The issue with shorter variables/function names is when people come into the project and do not know what they represent. There needs to be some balance. I error on the side of being verbose as you may have guessed.

Thanks,

Will

_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2019-03-20

the libssh2 team