Timeline for Should I use my own public API on my site (via JS)?
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 27, 2014 at 16:08 | comment | added | Robert Harvey | Thought experiment: which code is safer from prying eyes, the code you keep on the server, or the Javascript that you push out to the web page? | |
| May 27, 2014 at 16:07 | comment | added | Dávid Szabó | I didn't yet, that's why i want to be sure, i want to know what would be the main security problems of a website like this. Thanks! | |
| May 27, 2014 at 16:05 | comment | added | Robert Harvey | If you've already made up your mind, then why did you ask the question? :) | |
| May 27, 2014 at 16:04 | comment | added | Dávid Szabó | A well written javascript code can be maintained easily, and i can't see any security problems. What would be the main security problems of this? As i said, i would limit the request per day or such, so no one can request too many, but a simple html site can also be loaded easily. | |
| May 27, 2014 at 16:02 | comment | added | Robert Harvey | Sure, but why do that, if you can do it with server side code? Remember, server-side code is going to be easier to maintain and more secure. | |
| May 27, 2014 at 16:01 | comment | added | Dávid Szabó | Yes sounds like that. But do you think Facebook could work with only an API on the server side, which is called by the interface (in this case Javascript)? Can i lose a various amount of users because of 'javascript only'? | |
| May 27, 2014 at 15:54 | history | edited | Robert Harvey | CC BY-SA 3.0 | edited body |
| May 27, 2014 at 15:52 | comment | added | Robert Harvey | Sounds like something similar to Facebook. Facebook is a mostly server-side application, except for the chat mechanism. Same with this website (Programmers). | |
| May 27, 2014 at 15:49 | vote | accept | Dávid Szabó | ||
| May 27, 2014 at 15:49 | comment | added | Dávid Szabó | I'm working on a user-driven website, with social features. Do you think it is good to use this 'Fat Client' (using Javascript for almost everything) for sites like that, for maybe 1 million users, can this be a problem later with more users? Thanks for your answer! | |
| May 27, 2014 at 15:49 | history | edited | Robert Harvey | CC BY-SA 3.0 | added 201 characters in body |
| May 27, 2014 at 15:38 | history | edited | Robert Harvey | CC BY-SA 3.0 | added 218 characters in body |
| May 27, 2014 at 15:33 | history | answered | Robert Harvey | CC BY-SA 3.0 |