You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Update Workspace and WorkspaceView public API #1560
I agree with everything except the methods you're proposing to remove from Workspace. I just don't see the harm they do and they offer utility to us. They're well-defined and unlikely to change. Why not offer them?
Also, this could be another issue / PR, but I'd really like to rename our each* methods to onEach* to emphasize their now-and-later evented nature.
I don't see those methods don't offering much utility because they are only used once in Atom Core. The only method used in a package is destroyActivePane and it is used in a spec. Also their functionality can be easily recreated by using getActivePane().destroy(), getActivePane().savePaneItem(), etc...
We can easily make them public later if we see a pattern emerge. But it is going to be a lot harder to remove them.
Maybe we need to have a hangout about what our API goals are. I think starting out with a smaller API and growing it where problems emerge is a better strategy. It will make package authors job easier because deciding on what API to call is less ambiguous and it will be easier to understand other peoples package code if the API is small and specific.
I posted this list before, but here are my goals for the API
I agree with your bullet points, but I don't see how these methods violate any of them.
As for your strategy, I'm not totally convinced. I like the idea of keeping things private that we're unsure about. Other than that, I not sure what is served by holding back methods like this. We saw fit to add them. They have a clear purpose. They're pretty uncontroversial.
I guess I'm skeptical that someone is going to give us the feedback "I wish this method existed." If they're interested in the task the method performs, they're just going to duplicate its implementation in every package.
My thinking is that if a method deserves to exist for our own purposes and is unlikely to be removed in our own estimation, we're doing our users a disservice by denying it to them.
2 against 1, so I yield. I still think we're being a bit too stingy in our philosophy but losing these particular methods is not going to keep me up at night.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
nathansobo commentedon Feb 20, 2014
I agree with everything except the methods you're proposing to remove from
Workspace. I just don't see the harm they do and they offer utility to us. They're well-defined and unlikely to change. Why not offer them?Also, this could be another issue / PR, but I'd really like to rename our
each*methods toonEach*to emphasize their now-and-later evented nature.probablycorey commentedon Feb 20, 2014
I don't see those methods don't offering much utility because they are only used once in Atom Core. The only method used in a package is
destroyActivePaneand it is used in a spec. Also their functionality can be easily recreated by usinggetActivePane().destroy(),getActivePane().savePaneItem(), etc...We can easily make them public later if we see a pattern emerge. But it is going to be a lot harder to remove them.
nathansobo commentedon Feb 20, 2014
Why would we remove them in the future? They do exactly what they say they do.
probablycorey commentedon Feb 20, 2014
Maybe we need to have a hangout about what our API goals are. I think starting out with a smaller API and growing it where problems emerge is a better strategy. It will make package authors job easier because deciding on what API to call is less ambiguous and it will be easier to understand other peoples package code if the API is small and specific.
I posted this list before, but here are my goals for the API
nathansobo commentedon Feb 20, 2014
I agree with your bullet points, but I don't see how these methods violate any of them.
As for your strategy, I'm not totally convinced. I like the idea of keeping things private that we're unsure about. Other than that, I not sure what is served by holding back methods like this. We saw fit to add them. They have a clear purpose. They're pretty uncontroversial.
I guess I'm skeptical that someone is going to give us the feedback "I wish this method existed." If they're interested in the task the method performs, they're just going to duplicate its implementation in every package.
My thinking is that if a method deserves to exist for our own purposes and is unlikely to be removed in our own estimation, we're doing our users a disservice by denying it to them.
kevinsawicki commentedon Feb 20, 2014
I think starting with a really small public API is the right approach so I'm in favor of making everything listed here private/deprecated.
Then over the coming months as we see it used in the wild we can add more to the public API on a case by case basis as needs/uses arise.
nathansobo commentedon Feb 20, 2014
2 against 1, so I yield. I still think we're being a bit too stingy in our philosophy but losing these particular methods is not going to keep me up at night.
Update WorkspaceView and Workspace public API
lock commentedon Jan 25, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!