Is it a good practice to use both active_model_serializer and Jbuilder? [closed] - active-model-serializers

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 5 years ago.
Improve this question
I have a legacy Ruby on Rails API project, I notice that the project uses both active_model_serializer and Jbuilder. There are app/serializers diretory for active_model_serializer, and app/view/api/ for Jbuilder.
I'm new to Ruby on Rails API. From what I have read from the internet it seems active_model_serializer and Jbuilder are both used to deal with JSON data, there's even an article arguing which one is better.
I don't know which one is better, but is it a good practice to use both?

There's no problem in using both, but it's definitely not a good practice. It can be confusing for new people coming to the project. I'd say it's ok to use both if you transition from one to the other (most often from Jbuilder to AMS), but it's good to eventually stick with one of them.

Related

use of libraries like bootstrap and semantic ui [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
Do you use bootstrap, semantic ui or any other library for building web pages, or do you directly code the html and css yourself?
I am curious whether developers use the frameworks or prefer the traditional way of doing things?
Please tell.
Always depends on what you want.
If It's about get the shit done very quickly and with a good Ui, use bootstrap or another libraries, but if you something very unique, you make your own styles.
But generally we use a combination of both, libraries and our own styles when is necessary.

AntiXSS in ServiceStack [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 7 years ago.
Improve this question
Experimenting AntiXSS in ServiceStack. I saw you have lots of work put into AntiXsrf namespace. I added token in form, tried AntiForgery.Validate using global and request filter, all seem work fine.
Also, if I use request filter, is there a way to decorate auth/credential? Since I also has a CustomAuthProvider, I can authService.RequestContext.Get() and run validate separately if necessary.
Just want to verify this is the right approach, or in case you already have something built in that I missed.
BTW, is stackoverflow the preferred place to ask all these amateurish questions ^_^ ? Or should I ask more often in the google groups?

Looking for a list with examples of a class names [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 8 years ago.
Improve this question
Is there any list/source/dictionary with examples of a good class names somewhere over the Internet? I'm not looking for naming conventions, but rather for some resource with names and explanations when is proper to use them. I'm finding it somewhat difficult to came up with good names when I'm naming my classes so something like this will be helpfull:
SomethingBuilder - use in such cases...
SomethingRequest - use in such cases...
I suggest to look for repositories of frameworks or projects. They have plenty of classes with some really good names. Examples are symfony, kohana, cakephp, codeigniter, drupal etc... You can search for them on github to reach their repositories.
I know it is not a straight answer to your question but it still may be of help.

Examples of planning and search usage [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
What are applications where search techniques or more specifically planning techniques are used? I am most interested in examples in use.
I know that A* is used for path planning in Robotics, that planning is used in logistics (details would be great) but what other usages are there?
For Search in general Google, etc come to mind with their inverted indices. Again, where else is it used?
For planning examples, including logistics challenges, take a look at this list. Each use case comes with multiple datasets and a problem definition.

Which is language is best for MCU to PC Communication applications? [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 8 years ago.
Improve this question
I am looking forward to learn a language mainly for my electronic projects. My projects may include PC to MCU communications, TCP/IP (like catching new facebook comments and sending it to MCU) etc. I have seen a lot of similar projects using python and perl. So which one will be better and easier to learn as well as to implement?
At the risk of suggesting something "weird" -- you might want to take a look at Processing and its microcontroller counterpart Wiring. They are designed for exactly this sort of use case.

Resources