News for hackers. Stuff that matters.
Re:ProtonMail Rewrites Your Emails by hughw on Friday July 07, 2023 @08:38PM (#36640104)
I've learned to avoid software tools that proclaim they are "opinionated" which usually means it's their way or the highway.
Re:ProtonMail Rewrites Your Emails by themodelplumber on Friday July 07, 2023 @08:55PM (#36640220)
Shouldn't it be like:

Non-opinionated ... Opinionated ... My Way or the Highway

Re:ProtonMail Rewrites Your Emails by willcipriano on Friday July 07, 2023 @09:50PM (#36640577)
People who proclaim themselves opinioned also seem to have bad opinions.
Re:ProtonMail Rewrites Your Emails by brookst on Friday July 07, 2023 @10:46PM (#36640889)
That’s just, like, your opinion, man.
Re:ProtonMail Rewrites Your Emails by aerio on Friday July 07, 2023 @10:02PM (#36640635)
>they are "opinionated" which usually means it's their way or the highway.

That's what opinionated means, yes.

Re:ProtonMail Rewrites Your Emails by eviks on Saturday July 08, 2023 @12:33AM (#36641373)
Not really, that's just one of the opinions, another could be to have opinionated defaults with an option to change anything, so highway isn't the only alternative
Re:ProtonMail Rewrites Your Emails by jakear on Saturday July 08, 2023 @02:23AM (#36641875)
Except "opinionated defaults with an option to change anything" is called "configurable", which is the antithesis of "opinionated".
Re:ProtonMail Rewrites Your Emails by eviks on Saturday July 08, 2023 @07:14AM (#36643326)
no, configurable only captures the second part, there are plenty of projects that are configurable, but have bad defaults, leaving everything to be set up properly by every single user instead of doing tha config upfront (and expressing an opinion re. how it should be configured)

For example

- being able to change an encryption protocol is "configurable"

- Setting the default to be unencrypted so that the user chooses it is "unopinionated defaults".

- Setting the most modern encryption protocol by default is "opinionated defaults"

Re:ProtonMail Rewrites Your Emails by jakear on Saturday July 08, 2023 @09:35AM (#36644259)
All defaults are opinionated defaults. The fact that you consider a particular default "bad" supports that claim more than anything.

To your point, setting the default to be unencrypted reflects the opinion "this layer of the stack shouldn't be responsible for handling encryption unless the user has no other choice".

Re:ProtonMail Rewrites Your Emails by andsoitis on Friday July 07, 2023 @10:03PM (#36640640)
> I've learned to avoid software tools that proclaim they are "opinionated" which usually means it's their way or the highway.

What is a good example where software is described by its maker as opinionated and where it results in "their way or the highway"?

I'm asking because all software need defaults and no software can do anything that all users would want, so the software maker has to make choices of what they offer (i.e. reflecting the maker's opinion).

Re:ProtonMail Rewrites Your Emails by TheCleric on Friday July 07, 2023 @10:20PM (#36640753)
Python formatter Black: https://github.com/psf/black

By using Black, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters.

Black makes code review faster by producing the smallest diffs possible. Blackened code looks the same regardless of the project you’re reading.

Re:ProtonMail Rewrites Your Emails by ncr100 on Saturday July 08, 2023 @11:31AM (#36645350)
As a noob to Python, Black plugin in pycharm accelerated my usage greatly.+1 to this opinionated tool.
Re:ProtonMail Rewrites Your Emails by TheCleric on Saturday July 08, 2023 @12:13PM (#36645770)
I know folks who swear by it. I just happen to dislike most of its opinions.
Re:ProtonMail Rewrites Your Emails by hughw on Friday July 07, 2023 @10:34PM (#36640823)
Ruby on Rails? Doesn't mean Rails sucks.. tons of people are very productive on Rails. It uses Ruby idiomatically in a way that I would wish to break out of, which would be difficult and counterproductive, because of its strong opinion that I shouldn't. But I don't want to work in Rails, and Rails doesn't miss me.
Re:ProtonMail Rewrites Your Emails by forbiddenlake on Friday July 07, 2023 @10:43PM (#36640874)
Wireguard. If you want to use different options for its encryption, you can't. I don't think that's a bad thing, but for example someone wanting FIPS certification might.
Re:ProtonMail Rewrites Your Emails by brynjolf on Saturday July 08, 2023 @12:58AM (#36641470)
Prettier which is a Ecmasceipt formatter. It basically doesn't have settings as a feature. You can change some things like eol and if you want to use tabs or spaces. Everything else is more or less as it comes, and they want it to be that way to stop discussions in the teams using it and to not allow feature creep.

I call Pettier a compromise tool, noone is happy noone is too mad when you force it on checkin etc

Re:ProtonMail Rewrites Your Emails by lvncelot on Saturday July 08, 2023 @05:20AM (#36642758)
Prettier also came to mind, and I'm usually pretty happy with the "it's formatted this way, deal with it" approach - but I also would like the tool to behave predictably with updates. Prettier had some changes in 2.5 related to multi-line-classes (namely, forbidding them), which in turn made it unusable for projects with tailwind usage, as it now forces extremely long lines in some cases. (Especially for elements that have styling based on multiple breakpoints and a darkmode variant, you're hitting >120 chars easily).

I know that you can go for descriptive classnames and "@apply", but I was still miffed about a change like this in an already existing tool, with a lot of community pushback and no compromise in sight.

(Here's a relevant discussion, but keep in mind that multi-line-classes worked at some point and now just don't: https://github.com/tailwindlabs/tailwindcss/discussions/7763)

So for prettier, it wasn't just "format your code our way or else" - which is a good approach for a formatter, see also gofmt - it was "your current set up doesn't work anymore, tough luck".

Re:ProtonMail Rewrites Your Emails by TheCleric on Saturday July 08, 2023 @12:17PM (#36645826)
This hasn't been my experience. I've been able to throw together a .prettierrc.js file that gets me everything I want to tweak from the default (line length, quote types, etc.).

Out of curiosity, what did you find to be something unchangeable?

Re:ProtonMail Rewrites Your Emails by brynjolf on Saturday July 08, 2023 @06:56PM (#36649609)
I had opinions on how it placed curly brackets for example, I wanted it more similar to C# with the bracket on a new line.

No big deal but a bit annoying to have two ways of doing it.

Re:ProtonMail Rewrites Your Emails by thiht on Saturday July 08, 2023 @02:04PM (#36647002)
> noone is happy

I’m 100% happy with Prettier. The trick is to not care too much about how the code looks. Consistent style trumps any choice for me.

Re:ProtonMail Rewrites Your Emails by dreamcompiler on Saturday July 08, 2023 @04:28AM (#36642502)
The entirety of MacOS. The number of cases where you must use it "Steve's way or the highway" are legion. Changing MacOS default behavior involves one of several mechanisms:

1. Changing a preference with a GUI editor. Only a small percentage of all defaults can be changed this way.

2. Changing a preference with "defaults write..." and hoping the change will stick the next time you upgrade the OS.

3. Change the default for one usage but it will revert the next time you do that operation. Many examples wrt how Spotlight searches work in the Finder.

4. You can't change the default at all. Example: Themes. Last time I checked there were two, and nobody can make others.

Re:ProtonMail Rewrites Your Emails by brookst on Friday July 07, 2023 @10:45PM (#36640883)
There’s a reason people use appropriately sized wrenches, which are opinionated, rather than crescent wrenches, which are not.
Re:ProtonMail Rewrites Your Emails by hughw on Friday July 07, 2023 @10:56PM (#36640966)
Sure, maybe for tools that need to do one thing, I’d prefer opinionated ones.
Re:ProtonMail Rewrites Your Emails by jameson71 on Friday July 07, 2023 @11:09PM (#36641022)
Unix was built on that philosophy
Re:ProtonMail Rewrites Your Emails by cj on Saturday July 08, 2023 @08:02AM (#36643574)
Yes, which is fine as long as the vendor makes it known upfront that it’s their way or the highway.

This is a valid business strategy in my experience especially for B2B enterprise SaaS, where you know your product works very well if used to solve a specific set of problems using your SaaS tool in a way that you, the vendor, prescribe.

At our company we tell prospective customers that if they don’t like the workflows we demo to them, they shouldn’t buy our product because the customers who like our product are the ones who use this workflow, and people who don’t like our product use strange workflows we don’t recommend.

I think the problem is when the customer isn’t made aware of the opinionated workflows/features/etc until after the fact.

Re:ProtonMail Rewrites Your Emails by Takennickname on Saturday July 15, 2023 @10:57AM (#36737363)
Lol. Yes. Opinionated means they have a strong opinion on how things should be done.