theoriginalandrew
KPCKevin Powell - Community
•Created by vinicius! on 12/18/2024 in #front-end
Send generic responses from the api to the client or be more specific in the response?
i mean teeeeechnically its a frontend problem 😉
14 replies
KPCKevin Powell - Community
•Created by vinicius! on 12/18/2024 in #front-end
Send generic responses from the api to the client or be more specific in the response?
I've seen some error messages like
That user wasn't found
but to me that is different than saying "you didn't type something correctly," so just saying the credentials are invalid or similar feels the most accurate without accidentally giving db fields out14 replies
KPCKevin Powell - Community
•Created by vinicius! on 12/18/2024 in #front-end
Send generic responses from the api to the client or be more specific in the response?
Now I would recommend for something like registration, that you would specify the field that is wrong like if it doesn't pass rules that you've defined, but for a login, just something generic is easier
14 replies
KPCKevin Powell - Community
•Created by vinicius! on 12/18/2024 in #front-end
Send generic responses from the api to the client or be more specific in the response?
user facing => what it will show in the interface
internal => intercepting the API response and modifying it for the interface
both go to the browser, just one is "do i modify the response" or "just give the unfiltered response
14 replies
KPCKevin Powell - Community
•Created by vinicius! on 12/18/2024 in #front-end
Send generic responses from the api to the client or be more specific in the response?
if user facing, then I think something more generic like
Invalid Credentials
is just fine14 replies
KPCKevin Powell - Community
•Created by vinicius! on 12/18/2024 in #front-end
Send generic responses from the api to the client or be more specific in the response?
Are you using these responses for a user facing message or something internal for you to manage?
14 replies
KPCKevin Powell - Community
•Created by Kart28 on 12/18/2024 in #front-end
Help with css
Please modify your question based on this thread: https://discord.com/channels/436251713830125568/1022288836715356180
4 replies
KPCKevin Powell - Community
•Created by i_lost_to_loba_kreygasm on 12/18/2024 in #front-end
Is my interpretation of grid rows correct ? If anyone can let me know
@Kart28 make your own thread in #front-end and ask for help there
5 replies
KPCKevin Powell - Community
•Created by Mago on 12/4/2024 in #front-end
Any recommendation for JS porfolio project?
You can build anything with vanilla JS and not use a framework. Frameworks just make it easier to do stuff and things, but its all built under the hood with vanilla JS
5 replies
KPCKevin Powell - Community
•Created by snxxwyy on 10/13/2024 in #front-end
async function/promises vs try and catch
no prob 🙂
63 replies
KPCKevin Powell - Community
•Created by snxxwyy on 10/13/2024 in #front-end
async function/promises vs try and catch
😉
63 replies
KPCKevin Powell - Community
•Created by snxxwyy on 10/13/2024 in #front-end
async function/promises vs try and catch
and if you really need to,
finally
after you're done with everything and finished with the promise you made, then you cleanup to move on63 replies
KPCKevin Powell - Community
•Created by snxxwyy on 10/13/2024 in #front-end
async function/promises vs try and catch
but if you
catch
issues with the promised "work" then you need to deal with that information too63 replies
KPCKevin Powell - Community
•Created by snxxwyy on 10/13/2024 in #front-end
async function/promises vs try and catch
and
then
you do stuff with the information that was promised to you63 replies
KPCKevin Powell - Community
•Created by snxxwyy on 10/13/2024 in #front-end
async function/promises vs try and catch
until the promise is
resolved
63 replies
KPCKevin Powell - Community
•Created by snxxwyy on 10/13/2024 in #front-end
async function/promises vs try and catch
yep and you gotta wait no matter what 🙂
63 replies
KPCKevin Powell - Community
•Created by snxxwyy on 10/13/2024 in #front-end
async function/promises vs try and catch
An easy way to think about
await
is when someone makes a promise to you, they are saying "wait for me to do this" so you have to wait- and when its a JS promise, its the same thing, async is happening at different times and you have to await
for the responses63 replies
KPCKevin Powell - Community
•Created by A1most on 9/6/2024 in #front-end
can anyone help me make a login page with html?
so this is more of a "can you do this for me post?" That's not what this forum section is for - please provide at least some code you've tried to write on a codepen or something like that.
49 replies
KPCKevin Powell - Community
•Created by vince on 6/17/2024 in #front-end
How to match border height of element
also just converting from CSS-in-JS to classes only is also a nightmare 🙂
27 replies
KPCKevin Powell - Community
•Created by vince on 6/17/2024 in #front-end
How to match border height of element
literally just a toggle for a 1px divider 😄
27 replies