-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Preserve old feature) - use of Channel.create() to separate Channel logic from process logic #1269
Comments
The deprecation message for the channel create and close operation has been removed to not annoy users of pipeline which want to stay with the current syntax. However the deprecation remains for those methods when using DSL2. Related: #1269
In the above example, it's enough to move the snippet
after The main problem with The However, the idea is to not break existing code without bothering users who do not want to move to the new syntax. Therefore I've removed the deprecation messages for |
Well this particular example is too small to be convincing, but anyway, it's great if these methods will not be deprecated! |
@JohnHadish can you provide an example of how you are |
Channel.create()
allows a different way of organising the code, separating all channel code from all process code (see below). I am not 100% convinced by the argument thatChannel.create()
is misused; there are also cases where it is useful, and I am now running a Pipeline That Shall Not Be Named where the authors do all sorts of hell-raising tricks with most of the NF language, e.g.(Bad code can be written in any language). I'll end with a small example of the channel/process separation; would this still be supported in DSL2 in some other way?
create()
can be avoided by rearranging the code but the point is that by grouping all the channel logic together the flow logic of the program is easier to grasp (imagine this scaling to 10 processes with as least as many channels between them).This use case is quite possibly not on anyone else's radar and I don't want to make it into a huge thing. I encountered it only very recently and think it's cool. I'll try to link to a more fully fledge example ASAP.
The text was updated successfully, but these errors were encountered: