Questions tagged [front-end]
Component in charge of the interation with the end-user.
181 questions
2
votes
1
answer
152
views
Differences between multiple useState vs single object useState in React forms?
In a React form with several fields (name, email, password, etc.), is there any substantial difference between:
Using a separate useState for each field
const [firstName, setFirstName] = useState(&...
0
votes
3
answers
145
views
Proper way to handle \n and string termination in a C multi-threaded TCP server using recv
I am developing a multi-threaded TCP server in C for a simple tris game. I am using pthread to handle multiple clients. When a client sends a command like "CREATE" or "JOIN", I use ...
2
votes
3
answers
280
views
Should the frontend maintain its own semantic domain model or bind directly to backend DTOs in large-scale legacy migrations?
I am starting to question my role as a frontend software developer for big systems.
A bit of my problems started when I was developing a the first forms and interpolating the first bits of data in the ...
1
vote
1
answer
176
views
Is it safe to store a JWT in localStorage if my Next.js app is protected against XSS?
I’m building a Next.js SPA with React. All user input is sanitized and rendered safely using state/JSX — no dangerouslySetInnerHTML or direct DOM manipulation.
Given this setup, is it safe to store my ...
-1
votes
1
answer
536
views
Does it make sense to use next.js only for the front-end?
We need to do the front-end with spa. The question is whether to use a full-stack framework like next.js, but only the front-end part, without server-side components. If I don't use them, could these ...
3
votes
3
answers
1k
views
Is a SPA still a SPA if SSR is used?
I’m developing a system with separate front-end and back-end components:
The back-end is already implemented with Node.js and Express, exposing REST APIs.
The front-end must be a private SPA, ...
0
votes
2
answers
240
views
Is exposing full backend entities to a Vue frontend a bad practice? A case for DTOs?
I am doing the frontend for a Java Spring backend. The project uses JavaFX for the front but I a migrating it for web usage (with VueJS). When I make an API call to retrieve an object, I am receiving ...
6
votes
2
answers
37k
views
Understanding Front End vs Back End Javascript?
I've been noticing lately, as I've played around with Javascript, HTML5, and Node.js for the first time, that Javascript seems to be a language that is used very differently (and with different syntax)...
2
votes
3
answers
210
views
Entity/DAO for any combination of values?
You have a nice set of entities
but then someone decides to add one or two more stupid values that are used only in one place (or maybe, not so stupid but ones I would rather avoid)
Now, you have a ...
1
vote
1
answer
173
views
How to deliver static frontend via CDN (https) to customer for an on-prem client (http)
Our customers have specific backend programs running on their local machines with no access to the internet, we want to deliver a UI to them to help visualizing their backend(s). The customers ...
25
votes
3
answers
30k
views
Should frontend and backend be on separate GitHub repos?
We are new to git, but this fundamental question needs to be sorted out before we can begin. It's two devs who have been working standalone for a while. Now the time has come to adopt git (at the ...
7
votes
4
answers
2k
views
How to maintain consistency when retrieving partial vs. full data in an API Resource
I'm working on a API for the logistics department, and I have a resource called logisticTransport, which is an entity in our database. I'm facing a challenge with maintaining consistency when ...
4
votes
3
answers
2k
views
How would you optimize the rendering of 10,000 elements on a webpage?
I'm a full stack web developer, I've been looking for a job lately as a junior since I don't have experience with working for companies, but I've done some projects in the past from design to ...
1
vote
3
answers
3k
views
Backend to client communication: WebSocket or Message Queue?
I have a hobby project, for simplicity imagine a poker game, consisting of a backend (Spring) and a client application (Flutter) where the client can join rooms in which he can take a seat. The client ...
1
vote
1
answer
1k
views
building a frontend for a microservice backend: architectures? (spring boot stack)
to summarize a bit my current situation: I am building a backend based on microservices using spring boot.
These are aggregated behind an api-gateway.
My intention is to consume these api's from both ...