https://github.com/better-ecosystem/better-shell see README.md for basic information. Some of my "friends" says the codebase is quite readable however, their opinion are quite untrustworthy according to me...
#Command Line Shell
19 messages · Page 1 of 1 (latest)
Better than other "rust" alternatives
Well done .
Here are some suggestion:
- write the full name of the identifier like (get_previous_commad instead of get_prev) to make your code descriptive
- Don't use prefix "m_" with data members , instead you can use "this" pointer to indicate that this is class data member
- finally read clean code book for Uncle Bob to enhance your code readability
but in general it's very good.
m_ need to show that is private most of times
underscore i mean
at the end
Even if it's as you say , what's the wisdom of using it?
"You also don't need to prefix member variables with m_ anymore. Your classes and functions should be small enough that you don't need them."
From clean code book
I would agree with not using Hungarian notation, or a subset of it for members.
I personally wouldn't use anything for members and in the case there's a clash, I'd do this->field = field as an example.
some clean code book also says goto is the bane of all evil
based
dont read clean code
clean code book is bad anyway
Why?
because by java dev
But the logic is the same and also Java is from C family
every language nowadays is from the C family
Anyway That reason mentioned above isn't logical to hate the greatest clean book
