Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
77 votes

Is the frontend or backend (API) responsible for formatting data in a specific locale?

Approach 1 – handling formatting in the frontend – is usually the best answer, as once something has been formatted it is less suitable for further processing. If there are multiple consumers in ...
pjc50's user avatar
  • 13.5k
74 votes
Accepted

Should a developer do UI mockups if there are no designers in the project?

I very often work in such projects, and the answer is a resounding YES, and as early as possible. People find it much easier to criticize improve some draft than to come up with a solution from ...
Stefan Schmiedl's user avatar
54 votes

Why is XSLT so rarely used on the web?

XSLT does not really have a useful role in the modern interactive web. The purpose of XSLT is to transform from one XML language into another - but you actually never need to do that in the first ...
JacquesB's user avatar
  • 59.7k
39 votes

Should a developer do UI mockups if there are no designers in the project?

Mockups are fantastic and there is no reason a dev shouldn't do them. (It can even be handy for a dev to do a rough draft of a UI layout even when you have UI designers on the project.) I highly ...
Matthew Whited's user avatar
23 votes

Why does "front-end" only pertain to web development?

The premise of your question is wrong. When you say that you "discovered that WPF is not considered 'Front End' development", what you really meant is that you discovered that large swaths of the ...
kmote's user avatar
  • 3,322
20 votes

Why is XSLT so rarely used on the web?

Depends what you mean by "in Web". XSLT is very widely used. As far as we can judge from metrics like the number of StackOverflow questions, it is in the top 30 programming languages, which probably ...
Michael Kay's user avatar
  • 3,529
16 votes

Implicit vs. explicit data structure retrieval from a REST API

Both are coupled to the back-end model. Just in different ways. If the back-end model changes, both solutions will break. Gracefully or not but will break anyways. The key is where the front-end code ...
Laiv's user avatar
  • 14.7k
15 votes
Accepted

Is it normal design to completely decouple backend and frontend web applications and allow them to communicate with (JSON) REST API?

Is it normal design to completely decouple backend and frontend web applications and allow them to communicate with (JSON) REST API? Yes it is normal. But it's normal only if you need to have that ...
Bogdan's user avatar
  • 3,620
13 votes
Accepted

Redundant code sent down the pipe with Micro-frontends

You're absolutely correct that there's a tradeoff involved here: you are trading in some aspects of the user experience to get a better developer experience (which in turn might improve the user ...
amon's user avatar
  • 134k
13 votes
Accepted

Should frontend and backend be on separate GitHub repos?

There are two main considerations for deciding to use one or two repositories: Will it hinder or aid the development of the front-end or the back-end if the other is also present in your dev ...
Bart van Ingen Schenau's user avatar
11 votes

Should a developer do UI mockups if there are no designers in the project?

Yes, absolutely. Don't let someone else tell you how to do your job. And you are right, it's very much like doing UML for your data model. Assuming you are a developer, your job is to deliver quality ...
Bryan Oakley's user avatar
  • 25.3k
11 votes

Is the frontend or backend (API) responsible for formatting data in a specific locale?

When you think about having one frontend application and one backend, the decision seems to be very arbitrary and both can work. But the more you have different frontends and backends the clearer it ...
Helena's user avatar
  • 817
10 votes

Should a developer do UI mockups if there are no designers in the project?

When designing "a new screen", you want to discuss the rough idea of the UI first with a user and/or your colleagues. You cannot discuss this with a user "in code" or "in UML", that simply does not ...
Doc Brown's user avatar
  • 208k
10 votes

Frontend and backend developer working on a project - who starts the tasks first?

you are never really sure how the backend dev will return the hashmap to the frontend Okay, that is your problem. With that problem as a given, it doesn't matter who starts work first -- it will be a ...
LSerni's user avatar
  • 2,441
10 votes
Accepted

Clearing up misconceptions about a Flask backend and client-side rendering

You are incorrect about the need for separate front-end and back-end servers. You need only one server, which can be your Flask-based server, that provides one (static) HTML page when users access ...
Bart van Ingen Schenau's user avatar
8 votes

Why is XSLT so rarely used on the web?

I am flip-flopping back and forth between answering this question and closing it as primarily-opinion-based. So, here's my flip: In short, because XML makes a crappy programming language. Something ...
Jörg W Mittag's user avatar
8 votes
Accepted

Authentication and authorization - front-end vs back-end dilemma

The backend person might have omitted their valid justifications Back-end person claims that front-end should to have two calls. First to authenticate user (login process) with JWT response only ...
Flater's user avatar
  • 51.7k
8 votes

Should data transformation be on the front or on the back end in this scenario?

The decision to do the transformation on the front-end or the backend should depend much more on the kind of transformation that you want to do rather than the number of items involved in the ...
Bart van Ingen Schenau's user avatar
8 votes

Should data transformation be on the front or on the back end in this scenario?

Where to transform data? Should data transformation be on the front or on the back end? The question is slightly nonsensical, or at least glossing over certain necessary consideration. Conversion ...
Flater's user avatar
  • 51.7k
8 votes

What process to get away from a 10+ years old frontend?

The important questions you need to answer first: What are the problems with the current system? Just "messy" isn't concrete enough. In what way does the current messiness make your life ...
deceze's user avatar
  • 2,295
7 votes

How to avoid the accident that an item price is updated right after a user clicks purchase?

Say you changed your price at 11:39:46am. The customer looked 5 seconds earlier and ordered five seconds later. Had you changed the price ten seconds later, everything would have been fine. If you try ...
gnasher729's user avatar
  • 45.7k
7 votes

Failing to publish changes to code on Sundays

If the failing checks are truly unit tests (and not integration tests), then they are dependent upon the actual current date. What the test framework should provide is a way to override the current ...
Dan Wilson's user avatar
  • 3,103
6 votes
Accepted

Inter-language Communication

For communication between two programs (processes), we need Inter-Process Communication (IPC) Sockets are often used even for processes on a single machine. For example, there is a lot of tooling ...
amon's user avatar
  • 134k
6 votes

Is it acceptable to break MVC by storing data in the DOM in order to reduce load on the Database Server, ever?

One can never trust input from a client, especially sensitive input like prices. If you want to cache information to avoid stressing the database server (did you measure that this is actually an ...
D. Jurcau's user avatar
  • 557
6 votes
Accepted

Where is better to calculate the total sum, back end or front end?

All business logic must be done on the backend. On some cases you can replicate on front end (for quick feedback to the user) but never as the source of truth.
Miyamoto Akira's user avatar
6 votes

Frontend and backend developer working on a project - who starts the tasks first?

I would first design the data contacts first then both start working on it at the same time. This may change but if designed well this should be minimal. The is the beauty of have the back end the ...
Joe Tyman's user avatar
  • 199
6 votes

Where should the display messages on the UI be stored?

I guess there is no definitive answer in favour of one or the other, it heavily depends on many factors. Some of them may be answered objectively or because of business requirements, some of them are ...
siegi's user avatar
  • 317
6 votes

Can you modify the front-end source code of a mobile app?

It's not just that people might be able to hack into your front-end app. They might be connecting directly to your server with an app that they wrote themselves. I can get around whatever security ...
gnasher729's user avatar
  • 45.7k
6 votes
Accepted

What should my next SemVer version number be?

Use version 3.10 since it is a backwards-compatible new feature. Semantic versioning does not limit you to only 10 revisions of a particular major/minor version. I'm using version 1.73.0 of VS Code ...
mmathis's user avatar
  • 5,488
6 votes

Implicit vs. explicit data structure retrieval from a REST API

I never trust any data from any server. The server developers may have changed it without telling me, or it could be hacked. Your function should guarantee to either return what you want it to return, ...
gnasher729's user avatar
  • 45.7k

Only top scored, non community-wiki answers of a minimum length are eligible