Earlier quoted context omitted.
Outdated version could simply be counted as nonexistent, then a new version would be installed "as needed".
And then you'd need to figure out how to install that new version side-by-side with the existing one, or otherwise you will upgrade and break the existing setup of a lot of people. That is also not always trivial, especially if you have an existing setup like e.g. system python + pyenv managed python. Should the linters then be installed via the system package manager? How would you handle that across many different…
GitHub Super Linter: one linter to rule them all
141–150 of 360 posts
Re: GitHub Super Linter: one linter to rule them all
#142Earlier quoted context omitted.
Java is going downhill(as in not much new code is being written in it), so of the mainstream languages is going to get supported last if ever.
This is an inane comment, there's TONS of new code being written in it, probably more than any other language. Outside the HN bubble of Rust/Draco/OCaml companies tend to stick with the Java/JS/Ruby/C# languages.
Nah, it's a pretty safe bet that the language with the most new code being written is JavaScript. If it weren't JavaScript, I'd actually guess Excel next. (Okay, maybe not in terms of LOC, but certainly in number of applications.)
Re: GitHub Super Linter: one linter to rule them all
#143Earlier quoted context omitted.
This is just me btw, don't take offense: Because some things are better expressed in different rules. That's why some syntax is optional in the first place, that's the reason it was made that way. The flexibility is a very intentional feature. It wasn't an accident. Maybe you want multiple spaces to vertically align code in a complex set of logic. Maybe you want to express things on multiple lines to break them up. M…
So are you saying sometimes you want to initialise a variable without ever doing anything with it afterwards? That that's not the result of a typo down in your code in the vast majority of cases? I mean, I'll be the first to agree that blocking your development in the heat of it over some stylistic issue like quote styles is counter-productive, but if those rules are turned off and the rest help you catch actual bugs…
It's not like I'm some grumpy malcontent that hasn't given it a go.
If you want to use it go ahead, I just thought I'd be standing in a larger crowd
Re: GitHub Super Linter: one linter to rule them all
#144Great! Now do it for code formatters! After using Prettier for a few years I'm firmly in the camp of mandatory/enforced code formatters. As long as it's a half decent formatter like Prettier I believe my personal opinions on the specific formatting choices are much less important than essentially never having to think about formatting again, in particular having to ask people to fix formatting in code reviews (or fix…
If you find formatting discussions with your teammates painful, Maybe some fraction of your team are stubborn jerks?
I've worked where formatting discussions were always friendly and constructive. It can be done.
Re: GitHub Super Linter: one linter to rule them all
#145Earlier quoted context omitted.
This is an inane comment, there's TONS of new code being written in it, probably more than any other language. Outside the HN bubble of Rust/Draco/OCaml companies tend to stick with the Java/JS/Ruby/C# languages.
> there's TONS of new code being written in [Java], probably more than any other language Nah, it's a pretty safe bet that the language with the most new code being written is JavaScript. If it weren't JavaScript, I'd actually guess Excel next. (Okay, maybe not in terms of LOC, but certainly in number of applications.)
With Python or C++ being next.
But they don't count Excel :)
Re: GitHub Super Linter: one linter to rule them all
#146Great! Now do it for code formatters! After using Prettier for a few years I'm firmly in the camp of mandatory/enforced code formatters. As long as it's a half decent formatter like Prettier I believe my personal opinions on the specific formatting choices are much less important than essentially never having to think about formatting again, in particular having to ask people to fix formatting in code reviews (or fix…
I can definitely format code better than Black does. But that's probably not true for the average programmer. I do appreciate it formatting big dicts for me. If you find formatting discussions with your teammates painful, Maybe some fraction of your team are stubborn jerks? I've worked where formatting discussions were always friendly and constructive. It can be done.
It also really democratizes the language, because even folks brand new to Python or who are inexperienced with programming in general end up with code that is well-formatted and consistent with everything else.
Re: GitHub Super Linter: one linter to rule them all
#147Earlier quoted context omitted.
I can definitely format code better than Black does. But that's probably not true for the average programmer. I do appreciate it formatting big dicts for me. If you find formatting discussions with your teammates painful, Maybe some fraction of your team are stubborn jerks? I've worked where formatting discussions were always friendly and constructive. It can be done.
My experience with black is that it’s good enough for Python that it’s a waste of time to not use it. Sure, on many teams formatting discussions are friendly. But why even spend the time? It also really democratizes the language, because even folks brand new to Python or who are inexperienced with programming in general end up with code that is well-formatted and consistent with everything else.
Re: GitHub Super Linter: one linter to rule them all
#148Earlier quoted context omitted.
Code autoformatting is amazing and I never want to go back; even though I strenuously disagree with the particular formatting my team/company has chosen for python, I'm so relieved to never ever have a style discussion in PRs that I don't care about double quotes vs single quotes anymore. BUT I'm tired of seeing diff chunks on github where 95% of the chunk is because black/gofmt decided to change the formatting / ind…
Why don’t we just check ASTs in to git instead of text files ?
The challenge is that version control on text files (list of lines) is fairly straight forward and language agnostic, while OTOH the VCS would have to run after the language parser processes on the text file, and then be able to interface with the AST generated by the parser (for multiple languages). I presume this would become easy if different languages have the same parsing setup, or we have language/project-specific VCS tools. While the answers are not obvious (to me, at least) this definitely seems like the right direction to move in, instead of getting hung up on plain text and formatting issues.
Re: GitHub Super Linter: one linter to rule them all
#149Earlier quoted context omitted.
My experience with black is that it’s good enough for Python that it’s a waste of time to not use it. Sure, on many teams formatting discussions are friendly. But why even spend the time? It also really democratizes the language, because even folks brand new to Python or who are inexperienced with programming in general end up with code that is well-formatted and consistent with everything else.
To me, because readability is the most important aspect of programming, and it needs to be done right.
Re: GitHub Super Linter: one linter to rule them all
#150Great! Now do it for code formatters! After using Prettier for a few years I'm firmly in the camp of mandatory/enforced code formatters. As long as it's a half decent formatter like Prettier I believe my personal opinions on the specific formatting choices are much less important than essentially never having to think about formatting again, in particular having to ask people to fix formatting in code reviews (or fix…
But totally agree on forced lining.
Stopping things like reassign function parameters, no unused variables and the like really makes code far nicer.
I also love auto formatting in vscode saves a lot of time.