JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jun 24, 2019 16:15
@X4748 oh ok so basic CRUD on server, i expose a method that queries eveything by keyword and then the front end will filter on JSON fields? is it correct?
Jun 24, 2019 16:12
i have multiples models, some are sensitive (user data and credentials) and some are less sensitive (room in a building, articles)
Jun 24, 2019 16:11
hey guys, when building an web app, should i do the processing of queries server sided or client sided?
Jun 24, 2019 09:43
(i'm new to js)
Jun 24, 2019 09:43
but actually not sure
Jun 24, 2019 09:43
i would have said enable cors
Jun 24, 2019 09:43
wups sorry i don't know haha
Jun 24, 2019 09:42
@Falcon
Jun 24, 2019 09:42
by convention
Jun 24, 2019 09:41
hey guys, for nodejs, should i start page by 0 or 1 in queries?
Jun 21, 2019 10:44
ok so if the content is basic like this there shouldn't be a problem but i shouldn't do that if there is more complex stuff going on because i won't be able to track the error properly (is it what you meant?)
Jun 21, 2019 10:41
is it fine or can errors happen by nesting .then block in a .then block like this?
Jun 21, 2019 10:40
Jun 21, 2019 10:40
here is the code because in case i'm not being clear about the problem
Jun 21, 2019 10:38
@BenFortune yes but i'm not chaining them in my case, i'm nesting one in another one
Jun 21, 2019 10:37
i'm learning js (nodejs actually now) and i want to have good practise from the start so maybe my question has no sense or is a bit dumb
Jun 21, 2019 10:36
inside a then block i call a function with another .then
Jun 21, 2019 10:36
something like this:
function().then(()=>{function().then(()=> {//foo})))
Jun 21, 2019 10:34
is it bad practice to do call an asynchronous function in a promise resolution of another asynchronous function?
Jun 21, 2019 10:31
hey guys
Jun 18, 2019 21:02
hey guys, is it possible to summarize the usage of callback functions in 3 lines?