-
Notifications
You must be signed in to change notification settings - Fork 104
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
Discussion, requirements about NetBeansIDE-mvvmFX-Plugin #342
Comments
Hi Peter, here some other ideas for future versions:
|
I don't know what typical netbeans users would expect. I think a sub folder is good idea but I would expect it to be a top level folder ("Samples/mvvmFX") or a sub folder of JavaFX. In my opinion Maven is only a technical aspect so I wouldn't search there for samples. On the other hand in your screenshot there is a JSF and a REST application in the maven sub folder too so it's probably ok to add mvvmFX there too. But as I said I'm not a netbeans user so I have no strong opinion in this case ;-) |
Hm yes :) the examples are hybrid projects (Maven and JavaFX and more). So I thinks its okay when we make a new folder directly under "Samples" like you suggested -> "Samples/mvvmFX" directly under the "Maven" folder. Its also easier for the user to find :) . |
Hi, a) Name from the mini examplesIntention is here when the user create more then one (we will hope that he create all :) ) that all projects are ordered together in the project overview through their naming. Current:
Suggestion:
b) Naming convention package, View, ViewModelI thought that the packagename, PrefixView, PrefixViewModel names are per convention are must equals like in
When mvvmFX have the naming convention that the packagename and Prefix from View and ViewModels must equals then it should checked from the library. When not its a little more effort to implement the functionality in the plugin that the user can type what he want. I see in 3 examples package, prefix from View, ViewModel are equals, in other not. Normaly I would do here a refactoring for all 5 projects, that the package and prefix from View and ViewModel are equals. c) Tutorials and JavaDoc in examplesI see that in wiki from mvvmFX are many tutorials about the examples. What do you think about the idea to extend the JavaDoc (and commentary) from the projects. So the user have the opportunity when he have created an example via the plugin that he can read in the JavaDoc and commentary in the project whats going on. QuestionsFor the possibility that I do a request in the future :) . I see that the indentation in the sourcecode is 2 tabs and between every line is an empty line. Is that a project convention? Normally I make 1 tab indentation and structure the lines individual. |
Hi, What I'm asking myself is whether we need all these examples in the IDE plugin. Some of them may not be really interesting for a developer who simply want's to try out the framework. For example the synchronizeFX example is more a prove of concept that the integration with the synchronizeFX lib is working. I think we should have:
All others are optional in my opinion. But as always: It's only a suggestion, the decision is yours ;-) b) We recommend a naming convention of "View" and "ViewModel". If there are places in the examples where this convention isn't used yet we should rename them.
For the package naming: In my opinion the naming of packages is a responsibility of the developer. There may be good reasons to put multiple views and viewmodels into the same package. I'm doing this sometimes when two views are tightly related to each other and I don't want to split them. c) I totally agree with you. We should have extended the javadoc in the first place but, as you might know from your own projects, creating good documentation is hard and time consuming. It's a lame excuse of course so shame on me. indentation) we have an eclipse formatter that has settings for indentation and other style guides. The problem is: I don't use eclipse (anymore) and maybe wasn't careful enough in the past so maybe there are different styles in the code. Would be a good opportunity to introduce a common style guide. How do you configure style settings in netbeans? Is there a way to share such settings between IDEs? I have a question too: How do we update examples in the future? From time to time I'm refactoring the examples when a new feature is introduced to the framework. Maybe I should file an issue in your github project to update the examples from time to time? Thanks for your questions and your work :-) |
Hi, a) Examples
In both cases I used the projects as they are in your GitHub repository or in maven central. At first I will choose the first possiblity so I can also contribute to the examples. So as a summary:
Extended Examples
b) Naming convention (View, ViewModel)
contacts-example
c) JavaDoc and commentary So I think its okay when we first let this step out :). d) Codestyle They have two styles for Idea and Eclipse which can import into the IDE:
There is a bug #56 'Add Java style for Netbeans' where the users want also a style xml I think the files can modified for the projects needs and then shared over the repository (when you decide to use them). e) Update examples in plugin Summary
|
Hi, b) The `PersonLoginViewModelNotifications' class is an enum for notifications that are used in the example. It's not realy a "viewmodel" but only belongs to the viewmodel "layer". For the missing "View" suffix you are right. This should be adjusted. c) I've added #347 for this task. d) I don't know the google style guide. I will take a look at it. Another option is http://editorconfig.org/ e) this is fine for me. |
@Naoghuman Are you still working on the plugin? Can you give a short update? |
Hi lestard, I plan for next week to refresh what the actual stand here is. But I remembered that after the refactoring from the examples it should be now possible to start with the first functionality from the plugin -> create the examples during the new wizard. I will write an internal TODO and give you then next week an update here. Hopes that is okay? |
Hi peter, |
I see that one task is still open.
https://platform.netbeans.org/tutorials/nbm-projectsamples.html
|
TODO Refactoring welcome example:
pom:
project:
documentation:
questions:
|
Hi, For the new package name: I think it should be Are you planning to make this refactorings on your own or is it meant as a task list for me? :-) |
Hi, a) For the new package name I will take you suggestion:
One point more: Is there a reason why the test-files aren't in the same package like the files to test? (with old packages, for example)
I know it that the packages in src/ and test/ have to the same, so my question? |
After holiday and through some changes in my job I come unfortunately to the decision that I haven't the time to develop this plugin. I'm sorry and wish you happy development with your project in the future. Peter |
Hi Peter, As we are mostly using IntelliJ at work it's unlikely that we will develope a plugin for netbeans on our own. For this reason I will close this issue now and reopen it if someone starts working on this again. |
Like suggest from Alexander here a ticket for a planed NetBeans plugin.
https://github.com/Naoghuman/NetBeansIDE-mvvmFX-Plugin
First steps I planed was:
I thing for the first version is that okay.
The text was updated successfully, but these errors were encountered: