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
1answer
66 views

Unique ids for nested resources

I have couple of nested resources like Merchant, Hotel, Room. A merchant can have many hotels and similarly a hotel can have many rooms. Right now for managing these resources I doing something like: ...
1
vote
2answers
553 views

What problems arise from writing PHP for IIS/SQL Server rather than Apache/MySQL?

I'm a .NET developer, currently writing an ASP.NET site hosted on our local servers with Windows, IIS, and SQL Server. We're speaking to a company in India about hiring a developer for a different ...
1
vote
1answer
122 views

Design for fetching liked resources

I have three resources Hotel, Address and Image. A hotel can have may images but only one address. While showing hotel details I need to fetch its address as well as all images of it so, in my ...
4
votes
5answers
245 views

RESTful URI map to database tables?

When designing a RESTful API, should your URI map to tables (for the most part). I have 2 tables that look like this: Users +-----------------------------------+ |id|first_name|last_name|email|role ...
2
votes
0answers
265 views

Where do I put WebSocket handling code following the MVP pattern?

I am currently working on a Web Application. One of the objectives is to use the MVP (Model View Presentation) Design Pattern. We would like to use WebSockets to communicate between client and the ...
0
votes
1answer
189 views

Best practices for creating multiple HTML buttons that are used for a similar purpose

I realize this may be subjective, but I don't see any clear-cut place for asking questions on good software design principals. I'm sure there are some software patterns and anti-patterns I should be ...
1
vote
1answer
358 views

Would onpushstate be an anti-pattern?

In Single Page Applications, it's common to update the URL when navigating, and re-render based on the new URL. This can happen when the user hits the back and forward button, clicks on an anchor tag, ...
0
votes
2answers
4k views

Handling errors in a client/server application

I am developing a web application and struggling to follow a clear semantic while returning response to the client. Taking an example of authenticating an user there can be following scenarios: 1. ...
4
votes
2answers
230 views

Showing custom data in presentation layer

I have couple of models Merchant and Offer. A merchant can have multiple offers. I am developing a web application and writing a custom component which show offer details like title, description etc. ...
3
votes
2answers
343 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 ...
0
votes
1answer
400 views

Remembering User-selected Values in Web API

I've created a website for a tennis league. The two main pages are standings and schedule. When a user accesses the site, I'd like to have them select the league and season first. For example, the ...
1
vote
1answer
195 views

Design Patterns for drawing a custom graph in a webapp

I am building a web application which is meant to help display prices of products. The web-app is centered around showing prices in a custom bar chart. I am thinking it should be composed of a Model ...
2
votes
3answers
209 views

How to manage an existing web application?

I am a student that will finish his degree in like 7 months. I have a side job where I am the only programmer for a small company. The web application is for invoices and employee working hours. This ...
0
votes
2answers
91 views

Object property depend on previous objects in a list. How best to go about this?

So basically I have an object with a few properties in it: public MyObject { public string Name {get;set;} public bool Complete {get; set;} } List<MyObject> myList = new List<MyObject>();...
0
votes
1answer
65 views

Upon session time out, login to landing page or back to page client was viewing

Trying to figure out what is the best practice when session times out so that i can do it right first time around. Assume user logs into a web app and goes to "/events" page, where they stay till ...
-2
votes
1answer
938 views

Drawing the conceptual architecture of my web application in simple steps

I need to present the conceptual architecture of my site in a couple of days. It is an extremely simple web-site: it is made using HTML, CSS, JavaScript, XML and XAMPP for PHP, MySQL and Apache ...
7
votes
6answers
562 views

Client side web development - dealing with authentication during development

We are beginning development of an Angular 2 application. Our back-end will be using ASP.NET Core WebAPI. Although my subject calls out authentication, this also applies to any API service that is-...
-1
votes
1answer
93 views

How to make sure I have the contract proposal approval in my system?

I am building a website and in it I am trying to follow the rbac (role-based access control) model. Now, the thing is that managers need to send their contract proposals to approvers (people who will ...
0
votes
1answer
516 views

Is it possible to secure a REST API and validate the integrity of each requests?

I am trying to design a public facing website and would like to experiment with a WebAPI backend and one of the popular front end javascript frameworks. Now, this application is not going to require ...
5
votes
1answer
117 views

Should we be putting CSS in the HTML via <style> during the build process to avoid the extra network requests that <link> requires?

Normally we link to CSS via the <link> tag. However, this leads to the browser making a network request for the stylesheet, which is slow. What if, in the build process, we took our CSS file ...
0
votes
2answers
128 views

Deployed Website's Integrity

Yesterday, the deployment of a financial website on a client was replaced with an older version which created unexpected issues and a downtime of almost 12 hours. We came to know that two guys from ...
0
votes
3answers
202 views

Same JavaScript on different web pages

I have a web site with several web pages. Each page requires some JavaScript: i.e. different JavaScript for different pages, which some JavaScript that's common to every page. Some of the JavaScript ...
4
votes
1answer
134 views

How to integrate versions with changelog?

Before I start the question I want to tell you guys I'm new to this type of workflow. The previous companies I worked didn't used Version Control and/or changelogs. Also, I've been working as ...
4
votes
6answers
3k views

Splitting up a very large function/program into smaller functions. Effective?

I know function names can be very expressive. And therefore it can be tempting split up a program into particular functions and call them from a large "oversee-able" functions file. However is this ...
2
votes
1answer
93 views

Basic question on how to redirect users to third party payment sites

My sincere apologies, if this question is too vague but I am really curious in understanding how payment redirection works in web development without exposing data in url parameters. In detail with ...
5
votes
1answer
3k views

Is it bad practice to call another API from a Filter?

I am using Java, Spring and Jersey. I have a REST API A which receives a query parameter called q and sends this to another API B to get a response. I need to implement a change where I first need ...
3
votes
1answer
927 views

How should I run multiple instances of my Docker project on one server?

I have built a blogging application, running in several containers that are managed with docker-compose. Now I'm wondering - how does one run multiple instances of such application on one server? I'...
8
votes
1answer
2k views

Is it better practice to bundle scripts into a single bundle per page, or have several bundles?

In a web application I'm working on, there are 3 types of scripts (same applies to stylesheets): Those needed on every single page (e.g. jquery) Those needed on several pages, but not all (e.g. a ...
7
votes
4answers
931 views

How to handle version number in code, across branches?

I'm working on a PHP app, using three main branches: 'master' (current stable release), 'bugfix' (for patches) and 'next' (for next minor version). We store the current version number in the code - ...
3
votes
3answers
895 views

Realtime frontend dashboard, calling api every 3 seconds, reduce cpu loads

I am working on a networking project. Where I am creating a dashboard to view real time status (CPU/memory usage, up/down traffic and few others) of multiple routers by calling API request to server ...
1
vote
0answers
324 views

Make PHP run like NodeJS [closed]

I like how NodeJS works, the program runs once, includes whatever it needs in order to function, defines its routes and then starts serving requests. On the other hand there is PHP - every request ...
4
votes
1answer
102 views

How can customer specific implementation be handled?

How can I handle customer specific implementation. So for example a custom needs a different way to show data, a different model or a different logic. I've read about HMVC but I can't find frameworks ...
3
votes
1answer
250 views

Git structure on production server

So I want to add our git repo to the server so that we can pull in the latest changes from the master branch and easily update the live sites via SSH. I don't want changes tracked by Git on the live ...
0
votes
2answers
77 views

Strategy for loading page-specific static files on a web application

I'm working on a project that has a massive script.js file where all the shared functions, code and more is placed; but it also has code that has some page-specific behavior. Evidently, this causes ...
0
votes
1answer
382 views

Technical Design document and external agency

My company is recruiting an external agency to do a site redesign/development (agency has not been selected yet). Regarding the technical design document, should my company produce that document or ...
4
votes
1answer
1k views

Designing web application using two different frameworks

i'm relatively new to web development and i wanted to understand what does it mean when someone say "they used django for backend and javascript frameworks for front end." please correct me if i'm ...
1
vote
1answer
45 views

Is there a convention for handling tables and modals

I have a table, each row can spawn a model with additional information. Is there a best practice for displaying tons of information like this? I've considered the following options: Save all ...
8
votes
1answer
695 views

Options to handle large (multi-gigabyte) file uploads

How would you implement a very large file upload functionality with a Django application and S3? In my side job as a photographer, I have several clients for which I have a need to share multi-...
3
votes
1answer
1k views

Keeping data between two databases in sync

Let's say I have a forum application running, and I start building a separate web application with a Python web framework. Both applications use their own MySQL databases, which contain their own ...
2
votes
1answer
75 views

Communicating warnings in CI context - Nodejs, Grunt, Slack

We have a fairly complex Gruntfile.js that performs numerous things to process a bunch of EPUBs. It's part of our CI process being run regularly on Jenkins. Sometimes we want to notify the person who ...
6
votes
1answer
383 views

How to efficiently implement data-heavy screen updates in a web application?

Imagine an engineering type web application where there is a screen that displays around 100 of unique data values. The user can "page through" the screen by clicking Right/Left arrows, and the screen ...
-1
votes
1answer
322 views

I'm building an app with Node, Express, and MongoDB. Is AngularJS necessary?

Node, Express, and MongoDB are really connected so I can understand why they are frequently used together. For a web app of medium complexity, can I get away with only using HTML/CSS and EJS for the ...
0
votes
1answer
451 views

Data filtering & requests: fetch all entries or split data?

I am in a situation I cannot decide which approach is the most optimal (performance wise) while being maintainable at the same time (in the sense of having a clear logic). The question is laid in the ...
0
votes
1answer
2k views

How can I safely expose web API endpoints for user-private data?

I'm building a web application wherein users CRUD their own private data. Can I safely expose API endpoints? Despite years in-industry and endless web-research, I'm not clear on the best ...
3
votes
2answers
287 views

What should I think of when making an internal API public? [closed]

An internal API I've built will soon be consumed by a third party. Should I open the current internal API to the public, or should I create a new API endpoints for external access?
1
vote
0answers
46 views

Using fixtures to maintain static database assets

I have a pattern that's something like this: Create a database model UsagePlan which stores how many usage tokens a paid customer receives in exchange for its respective monthly fee. Through my ORM (...
4
votes
1answer
210 views

Is loading the same .jpg in different qualities a waste of data?

I'm building a web site and I want to use a big background image. Because of speed considerations, I thought that it would make sense to send a low-res version of the image the user first (for fast ...
3
votes
3answers
315 views

Options for the RESTFul approach for follow and unfollowing

I'm looking at implementing a new RESTFul call where a User can follow/unfollow a generic 'thing' item, but I need to know the best or common approach below, 1 or 2? 1) A GET or POST on the ...
4
votes
2answers
180 views

Should a web application be aware of its URL, including its sub-directory?

Let's say I have a reverse proxy set up getting traffic at http://gluten-free-snacks.example.com. It serves different URLs by sub-directories, not sub-domains, for a better web UX. Its default ...
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 ...