Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
1answer
128 views

Why use Grunt for JavaScript-related files instead of relying on MSBuild?

In a Microsoft ecosystem (i.e. WebForms/MVC/WebAPI VisualStudio projects) why should I rely on an external task runner for JavaScript files like Grunt if I already have MSBuild at my disposal as the ...
4
votes
1answer
137 views

How are application in separate data centers routed

A bit of down time at work let my mind wonder a bit. I was designing a single location application on Digital Ocean (load balancer to app servers to DB with DNS). All fine. Then I thought what if the ...
2
votes
1answer
268 views

Finding duplicate email addresses. How heavily should I normalize them?

I have a big list of email addresses and I want to find out which of those are duplicates. How to define "duplicate" is exactly what I'm posting about here. I know from experience that with Gmail, ...
5
votes
2answers
167 views

What strategy should I employ using C# to solve this use case?

So this is all hypothetical and theoretical really. This isn't a real system I'd have to architect, but its a good question. A company stores and reproduces contracts. Contracts can have many ...
2
votes
1answer
156 views

dynamic Layout; viewBag vs render actions

I am a intern student working on a project. We have the need to use a dynamic layout. Originally all that we needed was to know whether or not a search input should appear in the navbar and what ...
14
votes
5answers
2k views

What is the benefit of having “no runtime exceptions”, like Elm claims?

Some languages claim to have "no runtime exceptions" as a clear advantage over other languages that has them. I am confused on the matter. Runtime exception is just a tool, as far as I know, and ...
3
votes
2answers
251 views

How do services that rely on client-side access to an API or data consumption endpoint prevent abuse?

For example, web application monitoring services like New Relic RUM or Bucky use JavaScript to collect data on a user's session and eventually send that data back to an endpoint. For New Relic, the ...
3
votes
2answers
816 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) ...
2
votes
4answers
896 views

Should I avoid using CORS if possible?

I'm writing an API that will interface with an SPA front-end. For simplicity I currently have the API at api.example.com, and the SPA itself is at example.com. I have CORS set up and everything is ...
4
votes
1answer
11k views

Do I store blog posts in a database? And how do I continue to make posts?

I'm trying to make a simple blog from scratch, but it occurs to me that I probably shouldn't have a bunch of static html pages that I link to, especially since I want the home page to be a cascade of ...
2
votes
2answers
128 views

When would I use additional phases in the deployment pipeline of a web project?

All of my projects up to this point have been solo (I develop single page web applications). I've always used an IDE which automatically uploads changes to a test Amazon EC2 server over SFTP and I ...
6
votes
3answers
237 views

How to document URLs and interaction between pages

We're developing a web application that is now growing to quite a few pages, all dealing with complex data and rather complex interactions between pages. For instance, the login flow encompasses the ...
2
votes
1answer
223 views

Is taking a snapshot of UI to compare the data considered a good desicion?

If I have a complex attendance project to track the employees attendance and leaving, and according to that they get overtime money through a workflow. The schedule is something like that : 6 weeks ...
1
vote
0answers
68 views

designing better and crisp server.js (the file which is called to start node application 'e.g. node server.js')

While creating server.js file we need to provide routes information as var Login = require('./routes/login.js'); app.use('/login', Login); Now, suppose the node project is a REST services project. ...
1
vote
3answers
103 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
133 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
402 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
512 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
2k 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
320 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, ...
2
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
600 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
984 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
296 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 "...
7
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. ...
19
votes
1answer
31k 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
990 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
291 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
140 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
494 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
83 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
130 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
888 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
217 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
129 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
151 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
267 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
284 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
99 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
247 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 ...