Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

6
votes
1answer
100 views

Redundant code sent down the pipe with Micro-frontends

My understanding of Micro-frontends is that the key problem they solve is in helping enterprises have multiple, possible disparate teams, work on individual components/small-apps that will be used to ...
1
vote
1answer
57 views

How can I avoid using global variables in simple Javascript SPA?

To learn Javascript I am building a simple Single-Page Application. It is a basic slideshow app that needs only to process some basic settings and execute some behaviors. The basic structure of my ...
0
votes
1answer
31 views

Best practices for maintaining data contracts with different ends of the system

I am currently researching best practices for data contracts between components in our system. Right now we've stuck to using Word documents and JIRA tickets when the contract changes. The data ...
-2
votes
0answers
23 views

Information from front end is not being sent to database

Following is my code in php that I wrote to transfer data from front page to database for a website I am making as a project, I didn't define the parameters for mysqli-connect function separately ...
0
votes
1answer
54 views

How to handle “Other” option in a list of options?

This is almost everywhere. For example, I need to pick a fruit from a list of fruits from a dropdown. And the last option on that dropdown is "Other", by selecting that another text field appears to ...
1
vote
1answer
193 views

Why is one way data flow (eg. React, Vue, Angular) faster than two way data binding with dirty checking?

I understand that two way data binding can be expensive and slow. For example, imagine a toy grocery list app that lets you list grocery items and their prices, and shows you the sum of the prices (...
0
votes
1answer
41 views

Make Docker-based SPA configurable

I have a single page app (Vue JS) that is built and released as docker image. The docker image is based on the official Nginx Docker image and serves the SPA as static content. Until now, there was ...
0
votes
2answers
340 views

Ways to authenticate and redirect with decoupled front-end web application

I have a coupled web application (frontend and api backend served from the same application). It's worked well for our needs but I've been curious about the differences that would go into having a ...
0
votes
5answers
365 views

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

Even though it depends on the context, I was wondering: during a project that requires a frontend and a backend developer, who most often starts with the tasks first? This assumes the web design is ...
3
votes
0answers
176 views

Microservices and Modular based front end

I'm a software developer, and the kind of developer we call "front end developer". I'm working on stuff like Angular JS, Angular 2 and others. I wanted to know how we can organize our front end code ...
0
votes
2answers
166 views

CSS Methodologies for a Few Classes

We've been using BEM for several Drupal CMS projects quite successfully. This means we've been following a frontend-first approach where frontend developers specify the HTML, which is then implemented ...
0
votes
0answers
22 views

Front end application design, split Auth and Account to diffrent modules

I'm currently a part of a team that rewrites an entire application using Angular5, RXjS and state management. our biggest struggle at the moment is to figure out if we should split the Account and the ...
-3
votes
1answer
95 views

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

If I have a list of products and I need the total price of those products. Where is better to calculate the total sum, back end or front end? Front end React Back end PHP Table that shows Invoices ...
0
votes
2answers
127 views

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

I am currently using NodeJS & Express to load webpages which contain element content that is rendered via a query to MongoDB. A GET request will create Button elements, binding the MongoDB _id ...
1
vote
1answer
34 views

One resource per business object or many resources for many purposes?

I'm developing a JavaScript UI client and my back-end developer refuses to pass me the data in a form that I don't have to transform afterwards. So, I'm currently working on a mapper that contains a ...
0
votes
1answer
34 views

SOA with dynamic forms

When building a Service Oriented Architecture (because the services will be used by automated systems or other consumers), how can I go about creating a simple, dynamic form-based web frontend for ...
2
votes
1answer
156 views

How do I design a backend API with a different query range?

If I have a blog system, there is now a query that is given a range and then gets the number of new blogs in that range. The range may be: one day one week a month six months a year How do I design ...
8
votes
3answers
859 views

Why does “front-end” only pertain to web development?

As a WPF developer, I was confused when I discovered that I'm not considered front-end because my platform isn't web, even though I clearly deal with user interaction and the front end of an ...
0
votes
1answer
245 views

REST API implementation for graph data - Where to calculate graph units

We have a graph that shows bandwidth usage over time. The bandwidth is returned from the server in bytes. We need to decide which units to show in the graph in case there are several different ...
0
votes
0answers
141 views

How to embed WebView in Native app like Quora & Instagram did to their timelines?

I heard that Quora and Instagram's feeds are built on top of WebView component, how exactly do I build something like that ? Here are few ideas I believe are how they work Create and host an ...
1
vote
2answers
514 views

What other approaches are there to break circular dependency in MVC?

I'm attempting to build a web front-end based on the MVC pattern, as opposed to based on the libraries involved (e.g. React.js). I'm using constructor-based dependency injection and interfaces to de-...
0
votes
1answer
79 views

What is separating code by type vs. by function in called? [closed]

In for example web-frontend development, there are two main ways to structure a project: client -js -component_1.js -component_2.js -html -component_1.html -component_2.html -css -...
0
votes
1answer
75 views

Is RSS generation from MySQL server an ideal method for Facebook-like user feed in a website?

Researching this topic took me a long time, mainly because of my lack of knowledge of how RSS actually works, I understand that generating RSS is basically generating an XML file with multiple items ...
0
votes
2answers
127 views

How to create a learning environment for frontend developers if you don't use modern js platforms [closed]

We have a lot of frontend developers leaving the company because they want to work with react, angular, npm and what not. We use some corporate cms platforms and these javascript platforms don't ...
2
votes
3answers
138 views

Add extra HTML classes for frontend-tests?

Imagine a structure like this, a list with products. <div class="container"> <div class="teaser"> <img src="..."> <p>Product 1</p> </div> ...
1
vote
6answers
336 views

Inter-language Communication

If you have a program that has a front-end and a back-end written in two different languages, how do those two systems communicate with each other? I have no professional experience in programming, I'...
3
votes
1answer
842 views

Architecture for real-time application, avoiding duplicate messages for queues with no active consumers

I am designing the architecture of an application which has your typical backend and frontend components. The frontend application must be semi real-time. For this requirement, the backend is pushing ...
-1
votes
2answers
200 views

Front end engineering : Best way to implement a step by step check out cart

I have implemented a checkout cart like this : Navigation rules are as follows : User can move to next step only on completing the current step. But he is free to click on the previous tab and edit ...
1
vote
2answers
258 views

Hardcoding on frontend

I have an API which returns a list of articles. An article can have three status: Approved, Pending and Rejected. Now the front-end needs to hit the API in following scenarios: Get all the articles ...
3
votes
2answers
324 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 ...
4
votes
3answers
541 views

Best practices for front-end project with many views

We are a small front-end dev-team working with 18 months of experience and recently we got in touch with a first major project, ie. a medium complexity back-office web app, but with lots and lots of ...
3
votes
3answers
3k views

Microservice at a frontend level

I'm a software developer, and the kind of developer we call "front end developer". I'm working on stuff like Angular, React, Vuejs and many others. I wanted to know how we can organize our front end ...
3
votes
2answers
729 views

How to define and share a JSON schema between the front-end and back-end of an application?

We have a mobile app that accepts input into some fields, formalises them as a JSON document and then sends it to the back-end for processing. We want to agree on a schema for this document that can ...
16
votes
3answers
8k views

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

I am creating new business web application and I want to achieve: Use the best technologies from their respective realms. I want reliable backend framework with solid ORM. And I want the most ...
3
votes
2answers
632 views

How to structure an App one back-end & Multiples front-end

I have a big challenge to solve where I have some ideas but I don't know what would be the best solution. Basically I have to develop an application where I have to develop a back-end(web service) ...
-3
votes
1answer
2k views

What is best one between JSF and angular for java hibernate,spring,strut application?

I want to develop application using java frameworks(spring,hibernate,strut). This application has large complex operations.I want to know what is the best between JSF and angular? As well as i want ...
1
vote
0answers
132 views

Putting NoSQL DB schemas on front-end, safely

We are using Firebase which is probably similar to MongoDB in that it stores arbitrary JSON structures. We are also using Node.js and so the library in question could in theory be used both backend ...
57
votes
8answers
7k views

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

I'm working with a small team that creates a proprietary web application and UX isn't much of a priority since our own people will be the ones operating it, but we do try to make their jobs easier. ...
2
votes
1answer
555 views

How to decouple UI states?

I have written a new shiny Todo service with my favorite front-end and back-end framework. To minimize coupling I return data in some standard format like JSON or Protobuf and leave it up to the ...
0
votes
3answers
158 views

Should REST APIs contain the ability to dispatch email?

When building a service that uses both a back-end REST API, and (a) front-end application(s), is it proper to build into that API the ability to dispatch email? Take Twitter for example; for those ...
-1
votes
3answers
778 views

What is a correct way to exchange information between “frontend” and “backend”? [closed]

I am not so experienced in client-server applications and I could not find exactly answer to my question anywhere in google. I am developing part of application on server side and my collegue who ...
17
votes
2answers
17k views

Methods of separating front and back-end with full stack javascript?

Suppose I have a front-end which is mostly a single-page application written using angular, grunt, and bower. And suppose I have a backend, which is mostly just a REST API sitting on top of an ORM, ...
3
votes
1answer
657 views

Is having only static pages calling the backend a good idea?

I'm new to web applications development, specially when it comes to frontend, but as I understood, a typical structure for a big application would have a frontend php (or equivalent) layer calling the ...
3
votes
3answers
468 views

Web Services vs Server Side Methods

With all the front end development frameworks now available. I'd like to know if the generally accepted protocol is for a back end service to simply provide web services for the front end to consume? ...
1
vote
2answers
853 views

What are the advantages of a 'traditional' 'backend' architecture for a standard CRUD app? [closed]

In the past few years, 'client-side' web applications have become popular. A common approach nowadays is to have the backend as thin as possible, mostly exposing an API for the client-side Javascript ...
8
votes
1answer
994 views

Version control of a website : dev/production front-end files

I'm trying to think of a better way to version control our website projects. Keep in mind I'm only a front-end dev so I don't have a profound knowledge of VCS. Workflows are changing, and past ...
1
vote
0answers
371 views

How do webpack and gulp complement each other?

I've started with TypeScript 2.5 years ago with Visual Studio and ASP.Net MVC. VS Web Essentials would compile ts files on save and the WebOptimizer library would bundle them together at runtime in a ...
-1
votes
1answer
196 views

How do front-end developers test pages when the files they are handed are PHP views? [closed]

Someone who has a PHP project invited me to do the front-end work on his site. I don't know PHP, I've only ever worked with HTML/CSS/JS files. I cloned the project files from GitHub, and all of the ...
3
votes
1answer
2k views

Javascript unit testing - mocks or fixtures?

Interested in some opnion... I'm introducing unit testing of JS into a team, it'll largely be testing modules with many dom interactions and updates. Traditionally I've always used mocks and spys ...
0
votes
2answers
357 views

When developing an MVC framework, how should I be using Knockout.js?

I'm currently using the Laravel PHP MVC Framework to develop a web application; and it's going along quite nicely. I'm very comfortable with the expectations of the framework and how my application ...