-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Use lombok for biolerplate code [FEATURE] #4141
Comments
This has already been discussed so many times.... |
So, Why not to be an option - not a have to? |
Because of Policy 2 |
Ok. Thanks. |
And because that's going to fail, add tons of bugs to the project, and in the end we will need to maintain this. |
@jdubois, But still, I hope if lombok (especially |
@MuhammadHewedy just why would you want to generate code at compile time when the generator you use can do it at generation time:
|
I believe code generations is not good, so IMHO, minimising the (not-so-good) generated code is a good idea. |
What do you mean by code generation is not good? Doesn't lombok also Thanks & regards, On 15 Sep 2016 04:56, "Muhammad Hewedy" [email protected] wrote:
|
Generating binary files ( Even spring-framework generates byte code which we don't consider code generation. Code generation is the process of generating source code that could be used/edited by the developer. Why (getters/setters/toString/equals/hascode/and others) is better when using lombok instead of using the IDE features to do so, IMHO for many reason, most obvious one is the code is much clean (besides this is not a code generation). https://www.wikiwand.com/en/Automatic_programming#/Source_code_generation |
@MuhammadHewedy even if the code generated is imported by modifying the bytecode, it's still some kind of code generation. You just don't see the intermediate source code. |
Why are we still talking about this? Le 15 sept. 2016 11:31 AM, "Muhammad Hewedy" [email protected] a
|
@MuhammadHewedy have a look at the 10 other closed issues relating to Lombok if this is relevant to your interest. |
Thanks and sorry for this long argument as this is not the right place for. |
Hi all, Sorry to beat a dead horse and maybe upset Julien, and I'm not going to open a new ticket for this for obvious reasons considering the JHipster's team views on it. I just wanted to mention that MapStruct and Lombok now play well with each other. Granted Lombok was horrible before 2012 (I've had some nightmares with it), since then it was always possible with delomboking at the appropriate time during build, and now not a line of black magic is even needed. Contrary to the popular opinion here I've had dozens of spring boot applications in production with lombok (including big monoliths and some microservices) with Lombok, Mapstruct, QueryDSL, etc. and use it heavily as well as all my coworkers with great success. So while I respect the team's position if you guys don't want to support it directly, I think it shows a limitation of the scaffolding possibilities of JHipster. Does the module / marketplace system allows to change this behavior ? If so, well, I better start working 😄 If not, maybe it's time to open a broader discussion about how 3rd party developers could add modules to JHipster to change its scaffolding behavior and create even more options without involving the core team ? This would comply with the Policy 2 (a.k.a. the anti Lombok policy). Given the popularity of JHipster and the current avalanche of conferences / talks / podcasts about it and its touted openness and flexibility, I hope that some thought is at least given to this. Thanks. |
@sleclercq That's the purpose of the module system, so other developers can add features and options without it being in the core code. Please read the other Lombok issue (#664) where we discussed writing a module for this. You are welcome to write a module and this is one of the scenarios that is perfect for it. I'm locking this topic to contributors so the conversation moves to just one issue. |
@sleclercq if you are writing a module and have issues please let us know and we will be happy to help |
|
Overview of the issue
https://projectlombok.org/ provides simple annotation that help write clean code, like the
@Data
annotation that I can see it might be very useful on Entity classes.JHipster Version(s)
1.8.5
The text was updated successfully, but these errors were encountered: