Questions tagged [front-end]
Component in charge of the interation with the end-user.
181 questions
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 ...
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(&...
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 ...
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, ...
-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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
0
votes
2
answers
434
views
What process to get away from a 10+ years old frontend?
there is an app with lets say, 75 years worth of development in it. The frontend is a bit a chaos, there is jquery, there is vuejs (vue 2 of course), there is a lot of server side rendering with over ...
0
votes
1
answer
337
views
Monorepo dilemma: Where do you store your common business logics?
In my current monorepo structure for frontend, this is how it looks:
apps\
jira\
confljuence\
packages
ui
utils\src (contains common utils like useDebounce.ts, isEmptyObject.ts, etc.)
From what i ...
1
vote
4
answers
856
views
How exactly is the cancellation token mechanism implemented over HTTP?
In a web application with a frontend and a backend part, how exactly is the cancellation token mechanism implemented over HTTP? HTTP is a stateless protocol and it does not allow "sharing" ...
1
vote
3
answers
619
views
frontend server obtain data from backend server, or frontend server return page with javascript that obtain data from backend server?
I'm currently learning how to separate frontend server and backend server. However, i'm not sure which approach should i take between the two
Frontend server obtain data from backend server and ...