package convention for java Springboot lightweight controllers? [closed] - spring-boot

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
We have the controllers already being used with many apis in the package
com.mycomp.myapp.controllers
The controllers developed are heavy, so planning to add light weight apis with minimum request parameters.
confused between these two
com.mycomp.myapp.controllers.lite or com.mycomp.myapp.lite.controllers
Can anyone suggest the package names with conventions?

I think you should go with com.mycomp.myapp.controllers.lite.
Because actually you are creating controllers only and now controllers would be distinguished by light or heavyweight. That's why the distinguishing part should be inside the controller package.
Happy coding :)

Related

Is vendoring a standard approach or is it obsolete? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I'm about to setup a new project in Go. I came across the term vendoring. Is this standard or an obsolete concept. I'm coming from a nodejs world and this feels like copying the nod_modules folder to a separate directory or am I confusing the whole purpose of this?
It's not technically obsolete, but most cases should use go modules instead.

Where to put classes in a Laravel project [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I have a coded years ago a custom PHP class to create and manage HTML tables.
I'd like to add it in my new Laravel project.
Where do you think it would be the best to put those files ?
Best regards,
Nicolas
It's as you want. Laravel adopts the MVC architecture, if you see that your PHP class deals with databases put it Model folder (/App), if it's dealing with views, put it in views folder (/resources/views) and if it's a controller class you have to put it in controller (/App/Http/Controllers).
But the main thing you have to do is to read the Laravel documentation to understand really how it works. The link for the documentation is https://laravel.com/docs

Is it still relevant to use Repository Pattern in a laravel application?” [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I'm setting up a new laravel project, and want to reduce code in my controllers. Do I need to use repository pattern?”
Do I need to use repository pattern?
Trying to organise your code doesn't directly mean that you "have to" and "need to" use the repository pattern. You can safely use helper classes to extract some of the logic from the controllers. Moreover, Laravel structures its code quite well. You can help it by implementing gateways or using observers where possible. Using events is a possibility too. However, you should be aware of how these things work before implementing them since you might introduce errors with the testing later on.

Why is Spring Initializr spelled initializr instead of initializer? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I just started learning spring and while going to site https://start.spring.io/ I found that the spring people have spelled initializer as initializr. I was wondering whether it was random or is their a reason behind it.
It was inspired by http://www.initializr.com/ (which is maybe slightly different in intent, but fills a similar niche).

What is the difference between Zend & CodeIgniter [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I would like to know what is the different between CodeIgniter and Zend MVC Framework in regarding to coding style?
e.g. Retrieving/Inserting values in the database etc.
The concept are similar but the coding style is different:
Zend Framework uses both table gateway pattern and row gateway pattern but CodeIgniter only uses the later.
If you are asking about the conventions used in naming variables and methods then Zend is different from CodeIgniter. Therefore the coding style are not the same!
Hope it helps!

Resources