AntiXSS in ServiceStack [closed] - servicestack

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?

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.

Is it a good practice to use both active_model_serializer and Jbuilder? [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 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.

This edit resolves the original close reason and the question should be considered for reopening [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 7 years ago.
Improve this question
This edit resolves the original close reason and the question should be considered for reopening.
To be honest, just do it, you don't have to "look" for anything just make apps, make better and better apps, start with a simple MySql login app, then manipulate data from database make a forms app that displays something, make a simple text editor etc etc and put it on Github, so you can show it on a interview simple as that.
Good luck!

Is it a good idea to use global variables to store DB handles in a Go web 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 8 years ago.
Improve this question
Official guide says it's okay to use a global variable to cache templates:
http://golang.org/doc/articles/wiki/
First we create a global variable named templates, and initialize it
with ParseFiles.
Can global variables be used to store DB handles and repository objects? Or do they have to be initialized for every request?
Thanks a lot
Yes, that's perfectly fine, it's used in the official Go packages all over the place, now if you gonna modify these objects from your handlers, you will have to use a mutex so you wouldn't run into races.

Understanding the MEAN stack [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
Just a quick question. I have searched for a user group to post this in a more suitable location to no avail.
I am getting familiar with the MEAN stack: https://github.com/linnovate/mean
However I cannot see the reason for the separation into .jade templates under app/views, and .html under public.
Anyone know the logic behind this?
html files are static, they are delivered as is to the user, which is why they are stored in public folder. jade are templates, they are usually dynamically rendered (converted to html) per request. You can supply a data object (like user/session information) to templates to render html accordingly.

Resources