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.

Filter by
Sorted by
Tagged with
2
votes
2answers
131 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 ...
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
111 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 ...
14
votes
3answers
5k views

Does react.js make sense for a static content-driven site?

I'm pretty sold on the react.js model because it makes DOM manipulation so smooth and comprehensible. But I'm wondering how it could be leveraged for a site that's largely static with big blocks of ...
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
4answers
1k views

Should I check for software on a users machine via a web browser?

There has been a discussion recently (with my colleagues) on whether or not checks should be performed on client machines to check for specific software, within a web based platform, mainly because we ...
160
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
595 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 ...
7
votes
2answers
675 views

What's the Content-Security-Policy-friendly way to hand data from the server to the browser on page load?

When developing for the web, I often find myself wanting to pass a few variables from the server scripts to my javascript - data pulled from a database, and set differently on different pages running ...
3
votes
1answer
322 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 ...
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
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 ...
8
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. ...
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, @...
3
votes
5answers
1k views

Thoughts on web development architecture through integrating C++ in the future to a web application

I'm looking to build a website (it's actually going to be a commercial startup) I saw this question and it really shed some light on a few things that I was hoping to understand (kudos to the op). ...
4
votes
1answer
1k 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 ...
27
votes
3answers
18k views

Building web apps in server-side vs client-side vs hybrid? [closed]

There are currently multiple approaches for building web applications: 1. Server-side only This is a classical approach where you render pages on the server by a web framework like Ruby on Rails, ...
2
votes
0answers
641 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 ...
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
331 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 "...
4
votes
3answers
3k views

Exposing business logic as WCF service

I'm working on a middle-tier project which encapsulates the business logic (uses a DAL layer, and serves a web application server [ASP.net]) of a product deployed in a LAN. The BL serves as a bunch of ...
2
votes
3answers
1k 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 ...
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 (...
3
votes
3answers
1k 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
8answers
294 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" ...
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 ...
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
155 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 ...
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 ...
1
vote
2answers
103 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 ...
7
votes
1answer
227 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 ...
0
votes
2answers
238 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 ...
2
votes
0answers
131 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 ...
13
votes
1answer
5k views

What is the difference between web components and custom elements?

"Web Components" and "Custom elements" are often mixed up, and web searches for the title of this question don't yet produce much clarity. Let's fix that.
-2
votes
2answers
220 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 ...
0
votes
1answer
72 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 ...
22
votes
3answers
8k views

Store images in the database, or in files with a database link?

Is it appropriate to store the image files in the database? Or it would be better to store only the path of the file in the database, while keeping the file itself on the server? Are there any other ...
9
votes
6answers
2k views

Should I use title case in URLs?

We are currently deciding on a consistent naming convention across a site with multiple web applications. Historically, I've been an advocate of the 'lowercase all the letters!' when creating URLs: ...
2
votes
1answer
297 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
1answer
268 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 ...
17
votes
1answer
38k views

Why sending a file is so difficult using angular? [closed]

I have to send a file (very large file) to a server. I'm studying what options I have and how to do it. I'm using angular + express + nodejs. If I use a simple form, I could catch the file on the ...
1
vote
2answers
2k views

Best way to manage Git branches in different environments

I had a basic question regarding using a git repository in different environments. I'm more of a Sys admin than a web developer, so the teams I've worked on before just worked right in the master, ...
1
vote
4answers
119 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 ...
0
votes
1answer
118 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
196 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
470 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 ...
4
votes
2answers
373 views

How can one demonstrate client site website content after the sites have been updated?

I currently work for a web design and development company and for the past couple of months I have developed over 10 websites and about 2/3s are live on the web. now most of these websites were for ...