Senior software engineer (embedded) with over 15 years of professional experience, expert knowledge of Linux, Python and C, and less expert knowledge of C++.
I was expecting to find something like "I hate managing conflicting package dependencies for large projects" or "I hate some aspects of duck-typing" etc... Then I read a bit and found a rant about braces, or a lack of! If that's something to "hate" it's a new one for me! Indentation is fine, setup your editor (for all languages to replace tab with 4x space, strip trailing whitespace and you're sorted).
I don't get what's so bad about
def foo():
print("foo")
vs
def foo()
{
print("foo")
}
The only thing (in regards to Python function syntax) which I would consider ranting about is abuse of lambda (considering lambda==annoymous function, why would anyone name one!), i.e.
foo = lambda x:print(f"value of x is {x}")
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I was expecting to find something like "I hate managing conflicting package dependencies for large projects" or "I hate some aspects of duck-typing" etc... Then I read a bit and found a rant about braces, or a lack of! If that's something to "hate" it's a new one for me! Indentation is fine, setup your editor (for all languages to replace tab with 4x space, strip trailing whitespace and you're sorted).
I don't get what's so bad about
The only thing (in regards to Python function syntax) which I would consider ranting about is abuse of lambda (considering lambda==annoymous function, why would anyone name one!), i.e.