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

Questions tagged [web-development]

Web development is a broad term for the work involved in developing a web site for the World Wide Web or an intranet.

1
vote
3answers
100 views

Web form repopulation after invalid submit

In general, what should be the best way to repopulate a form when submission fails due to invalid inputs. Here, invalid would mean something did not pass the check or some validation methods server ...
1
vote
2answers
132 views

Database Architecture - Comprehensive history of likes/shares/etc for all accounts?

The Setup This is a membership-based site. Each account is capable of: Making posts (unlimited, no restriction on frequency) Liking, sharing and commenting (on) the other posts The goal is to ...
1
vote
1answer
379 views

Disadvantages of using vanilla code for a Single Page Application

I am building a SPA that basically incorporates multiple video streams (using WebRTC) and various other components such as a text 'chat' feature. I have spent a couple of weeks building a proof of ...
159
votes
8answers
19k views

Developing web applications for long lifespan (20+ years)

I'm currently developing a web application for government land planning. The application runs mostly in the browser, using ajax to load and save data. I will do the initial development, and then ...
0
votes
1answer
454 views

Handle object in handler or inside object

I've start wondering what's the best practice when handling objects in web development. Oversimplified the process when there is a page request often looks like: Page request. Fetch object data ...
2
votes
2answers
1k views

Fully API-based website - is it a good idea?

I sometimes hear about making web-site fully API based, meaning that even in browser the page is constructed based on API endpoint and practically nothing else. One of the benefits I see in this is ...
3
votes
1answer
318 views

In c# how do people make complex functions

Hi I'm working on a c# MVC code first project. I've started the project and have created the Models, database frontend etc. Now my attention has come to writing something that can read an excel ...
3
votes
4answers
138 views

Getting pure feedback early, without damaging brand by exposing unpolished features

Getting useful feedback early in the development cycle gets you to a high-quality feature faster. And the most useful feedback can be in the form of users actually using something in the wild, ...
3
votes
2answers
66 views

Encrypting a folder used for serving images?

I have a Node.js application that reads and writes images from a server. The images are stored in a directory on an Ubuntu operating system. Express static routes serve images from that folder when ...
1
vote
0answers
75 views

How to better manage beans?

In my application - I have to expose services using JAX-RS(for mobile platform) and consume the same set of services in a JSF based web app. Now, I have @Entity beans for persistence layer, @...
2
votes
0answers
555 views

Web application logging strategy

Basically: I am creating an enterprise web application. I would like to do extensive logging of both client and server activity, with all logs ultimately stored on the server. I have found many ...
3
votes
1answer
855 views

Caching data vs. caching output

I don't have much experience in caching among web applications, but I am trying to educate myself in the field and try out various techniques and approaches in ASP.NET MVC. The majority of tutorials ...
1
vote
1answer
2k views

Should a method always be static if it can be?

I am using Typescript in Webstorm with Angular 2 and I am frequently getting warnings that a given method can be static. Yes, these specific methods do not depend on the state of the object they are a ...
-1
votes
1answer
248 views

In a MVC application, what is the correct way to organize the entry points for the business logic?

Generally speaking in a MVC framework we have the Controllers that do things like making sense of a request, preparing the parameters and starting an action in the business logic through some kind of "...
6
votes
1answer
2k views

Why use IIS or apache tomcat instead of self-hosting?

I am a .NET developer. I see ASP.NET MVC framework now started providing a self-hosting feature. It makes a lot of sense (to me). A self-hosted application feels complete with no external dependency. ...
14
votes
1answer
27k views

Splitting a big project to create a multi-module Maven project

I am working on a Spring-MVC application in which we are using Maven for dependency management. As the project is big, we are thinking of splitting the project into several parts. I had some doubts, ...
2
votes
3answers
916 views

Need help choosing/creating a workflow for web development

I've been designing and programing websites for the most part of my adult life. I've always done this solo, freelancing mostly and working from a single machine. Currently, I use Dreamweaver for the ...
0
votes
1answer
48 views

How to work with starter kits and their updates?

When I start a new project based on a nice starter kit like this Angular 2 one. How do you keep up with changes to a base repo like this? I know that it is a 'starter', but it would be nice to merge ...
2
votes
8answers
287 views

Should web forms allow invalid input?

When completing online forms, many online applications will instruct users how to format their input, detect whether the input is formatted correctly, and issue error messages if it's entered "wrong" ...
10
votes
2answers
2k views

Who designs databases in web development? [closed]

In the context of web development, who designs databases? Despite a whole host of information associating back-end web dev with server-side processing, data modeling, and the like, the database design ...
0
votes
2answers
128 views

Validation for each record in csv file

I create page to import records so users can import records using a CSV file. I am already using Sanitization to remove unexpected characters for specific field of the record, Do I have to validate ...
1
vote
1answer
2k views

Two way data synchronization between web application and REST API server

I have a web application and a REST API server (Microsoft Dynamics CRM 2016) that I don't have access to it's code, but I have access to the available resources. I need to create a data sync between ...
3
votes
2answers
1k views

Architecture review - case study (Spring MVC)

I'm developing an Java Web Application with Spring, and I have some questions about my architecture. Before showing it, here is the context: I am developing a web application with more than 80 ...
6
votes
1answer
458 views

Node.js deployment — npm or gulp

Suppose that I have a project written in JS via such frameworks like Node.js and Express. It also uses Mocha as a test framework and Gulp as a build system. I wonder what is the best way to expose ...
1
vote
0answers
78 views

Choice of response type in web application architecture

I've been using various server side languages/frameworks for developing back-end web applications. Every server-side framework that I've been using has the capability for returning views/templates (...
2
votes
0answers
124 views

Should I strictly follow restful guidelines

I have the following resources in my Asp.net web API: route: consisting of the following relevant properties arrival_location_id leaving_location_id and location: id name coordinates The thing is,...
1
vote
1answer
1k views

Storing uploaded images for website

I'm developing a website (using PHP, JS, and MYSQL) which allow user to upload images. My requirements are as below: User is able to upload 1 or multiple images at a time. Website is able to save ...
1
vote
0answers
826 views

Bootstrap components and SMACSS/BEM methodologies

I have no enough experience in web development and I need advice from more experienced developers. I have been exploring SMACSS and BEM methodologies for a few weeks, and I like them, it makes really ...
-2
votes
2answers
215 views

Why don't servers deliver JS and CSS at the same time as HTML?

Since every time a web browser requests a page, we are almost certain that there are .css and .js files to be sent as well. Why do we wait for the browser to parse the DOM and discover those files ...
1
vote
2answers
128 views

How can I maintain a database record of an entity that belongs to several categories of another entity, per year, per season, etc

I am building a kind of School Management System. I want to be managing the database records of things like assessment, term/season, academic years. every info must belong to a particular academic ...
2
votes
1answer
145 views

Using relative units instead of px following DRY principles

I am relatively new in web development, but I am trying always to find the best way and make my code even CSS and HTML clean. So I've started exploring best practices. First of all lets start ...
3
votes
2answers
261 views

What is the best way to develop a script with multiple people?

Hello I am new to PHP programming. Sorry if my question seems silly. I already know I have to use a version control. My doubts about the source code protection. How can I work with other programmers ...
0
votes
1answer
71 views

Viewing local changes to website on separate device

I'm trying to figure out how to do something, and I can't quite seem to get it to work. Let me describe the situation: Using a hosts file, we redirect the resources (CSS/JS/etc) of a website, let's ...
1
vote
1answer
256 views

How is approval done in cors via preflight request?

As far as I have known in CORS, browser sends preflight with OPTIONS request to the server to gain approval for the real subsequent GET/POST request. Now, HTTP is sessionless. Is the custom header THE ...
1
vote
2answers
97 views

Review page use of AJAX

I am currently working on a site that heavily uses AJAX. I have a page that when called renders the basic HTML and then uses AJAX to get the data that the pages needs and then renders the rest of the ...
1
vote
1answer
189 views

MVC, Services and DAO: Fundamental design choices, error handling and return values

Edit: There is no "right" or "wrong" answer here, I was merely trying to get people to share their dos and don'ts. Behind this rather vague topic I would like to address a few problems I've been ...
0
votes
2answers
232 views

How should I architect my back end based on these needs?

I haven't started building my back end yet but I need to now. My needs are the following: Database needs to be holding millions of game information (just info that can be stored in a typical db ...
0
votes
1answer
103 views

Which strategy to use in Client-Server messaging to trigger specific behavior in them?

I'm developing a virtual assistant to manage transactions in a business. I'm using an external service to handle Natural Language and get intents, actions and parameters from my user requests. The ...
0
votes
1answer
188 views

Understanding streams

I have started learning streaming APIs and I found one of the good documentations here. There was a comparison given by author to demonstrate the effectiveness of the streams. var http = require('...
1
vote
1answer
426 views

Consume ASP.Net REST API service

I am creating ASP.Net REST API application and stuck on the part where I should consume the REST service. I am not sure how to find the way let me accomplish the following: 1. I don't want it to be ...
7
votes
1answer
221 views

App opening standard browser instead of active browser

Say you have a smartphone with two browsers, DefaultBrowser and OtherBrowser. You visit the webshop by opening Otherbrowser, and proceed through the cart steps At the end, you go from OtherBrowser ...
2
votes
1answer
456 views

Structuring a Game with Angular.JS [closed]

For a GameJam I'm trying to code a simple web-based text adventure game with sprites and small animations in AngularJS. I'm a little new to Angular and am having some trouble figuring out how to ...
1
vote
4answers
230 views

How can developing web application in statically compiled language become efficient?

I have some (or just a little) experience in writing web application backend with interpreted language, php, python and javascript (node js). When writing the backend app, usually what I do is write ...
0
votes
1answer
142 views

Manipulating DOM via script or rebuild website - which is better?

Let's assume you want to change what user sees on the website. There are two ways to do that: a) manipulate the DOM via JavaScript, but user has to download whole script, with possibility he may not ...
3
votes
3answers
808 views

Where should view-specific data/logic be defined in a PHP MVC application?

After many hours of research and thinking I have found an understanding, then coming to question it again, I am struggling to find something concrete which I can grasp and apply to my code in a ...
-2
votes
1answer
89 views

Controllers and Separation of Concerns: discussing possible strategies

I've been working on a project based off of this tutorial. Unfortunately, the controller classes in this are quite dense and have terrible separation of concerns. I should have realized this ...
1
vote
4answers
113 views

Handling missing values in response

Suppose a web application relies heavily on the third party APIs and I am expecting a response from it but somehow I don't get any, maybe because of the API exception or missing value on the API side ...
1
vote
4answers
1k views

Do i have to make all my website PHP with embedded HTML to make a good secure website?

I see all websites (THE big ones) make both PHP and HTML in same page .. Do I need to make all my website pages as PHP and embedded HTML inside it ? Can't I make the website all as HTML Pages and PHP ...
0
votes
2answers
2k views

How does two-way data binding differ from simple auto-sync?

The AngularJS documentation mentions that it considers one-way data binding to be 'bad' and two-way data bind to be 'good*'. However, on looking over the definitions of two-way data binding used, all ...
1
vote
1answer
163 views

The advantages of a static blog generator with dynamic content

This is a design question. I am building a mathematically oriented blog, where I can discuss various areas of statistics. Now with math comes the importance of visualization--in particular interactive ...