Do I need to minify my js file if i am doing winjs development? [closed] - winjs

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 4 years ago.
Improve this question
Is it possible for someone to look at the javascript code of a winjs app? Is it recommended to minify the js code for a winjs application? any other best practices?
I found this link but it did not help much. It refers to a sticky post. I looked at the sticky posts but they appeared to be unrelated.

Minification is just one strategy you can employ, depending on your needs. I wrote about this and other options on my blog: http://www.kraigbrockschmidt.com/2013/04/04/protecting-your-code/.

While in development use the unminified file so it easier to debug, on production it is recommended to use the minified file, and also as the sticky post said You can also protect your more sensitive algorithms and business logic from reverse engineering by putting them on a server and not in your app.

Related

Why widget-centric web frameworks aren't that popular? [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 talking about frameworks like Vaadin (Java), Wt (C++), Reahl (Python), Agile Toolkit (PHP) and etc. In my opinion these frameworks are much easier to code in (you code in one single language without the need to know JavaScript, HTML and CSS) and to understand (the usual GUI development approach based on widgets is much simpler for a noob to understand than MVC or MVVM). Why aren't these frameworks as popular as mainstream ones? Btw is there any of this kind of frameworks that I missed? For example I haven't seen one for Ruby, Go or other commonly used web development languages.

As a web developer what should my 1st step for web site security? [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 6 years ago.
Improve this question
I know how to build a site. But I don't know how to save it from a hacker.
You can spend ages on this, but assuming you're starting from scratch, I'd go with the following:
Read your framework/language security guide. For example if you're writing the web app in PHP/Symfony, read https://symfony.com/doc/current/book/security.html and https://secure.php.net/manual/en/security.php (this should be short and easy application of best practices / tweaking known settings)
Read anything relevant on OWASP. It may be hard to do all of it, but some sections to point out are: Top 10 web issues, Development guide, Cheat sheets.
Keep applying what you learned and read more :)

Wether to use passport library or not? [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
Am trying to get Facebook and google login functionality integrated in my node.js app.
I have heard of passport library but has never used it. Can anybody help me,whether to use this library or write the code without it?
link for passport lib:- http://passportjs.org/docs/facebook
if suggesting passport library,kindly share its pros and cons.
TIA.
Everything is basically already done for you with Passport. I would say that and the fact that it has a huge community behind it is it's biggest advantages. If you need an example how to do it (and how easy it is) I recommend from this article on scotch.io

What is the Best Practice for dropping the support of old browsers? [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
If you are making a Website which will not support IE8 and all browsers older then that. Whats the best practice for that? Should there just be an alert and the Site should show anyways (and look bad) or should the site completly be replaced by a warning?
Personally the approach I would take is similar to that of viewing a website on a mobile device, sometimes you will get a warning saying the website is not compatible. I.E like you said replace the website with a warning, possibly suggesting that the user updates their browser. Hope this helps!

node-static vs express.static [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 am trying to set up a static file server/cache in Node.js. I use Express.js.
Express comes in with a built-in static server, and Express is definitely one of the most used frameworks, and so one would expect the static middleware to be super reliable.
However, I look around the internet and find that tons of people, including Nodejitsu, recommend the node-static npm module.
I try to do some kind of comparative research between the two but don't find much.
Is there really any difference? I would like to use Express.static, as I am already using Express, but want to make the right choice.
This isn't an opinion war post, I am just looking for comparatives of features from those who know what they are talking about, not 'favorites'.

Resources