Web is referred to a network environment without any specific web frameworks used in programming.

learn more… | top users | synonyms

-2
votes
0answers
21 views

submitting a post request with an empty field does not update the previous value to an empty string

I have the following line, where the value may become outdated and need to be cleared. However, the database only updates when the value is changed to some non-empty string. <textarea name="...
5
votes
3answers
82 views

How do I scale up a bot/service?

I have this bot that I've created for Twitter. It's written in Python. It lives on my Raspberry Pi and I've set up a cronjob to run it every 60 seconds. Part 2 of the project is to build a web app ...
1
vote
3answers
113 views

Is there any situation where there is a good reason to use an anchor <a> element without a href attribute?

I recently came across a website that contained an anchor element without a href attribute. I immediately thought that was stupid, but, could there be an actual situation where having an anchor ...
-1
votes
2answers
122 views

What handles the work of video streaming in ASP.NET MVC?

I want to play video using ASP.NET MVC. In my understanding, the model deals with the video files stored in file system and data in database. The controller retrieves the path of video file from model ...
0
votes
2answers
152 views

What is the correct way to pass JSON objects in an http request when a GET request is most appropriate?

One scenario is when you're creating a search endpoint. In the example below, I want to search a database of companies and the queries can become complicated; enough where I want to have the ...
-2
votes
2answers
192 views

Angular JS vs Modern MVC frameworks

I might be wrong for some things here, but here is what I recently though about. Modern frameworks MVC such as ASP.NET MVC 5, CakePHP, Java Spring etc. has their logic clearly separated into Models ...
0
votes
0answers
28 views

HTML Encoding - XSS protection

My general rule for web development is that the server encodes HTML tags in any user-generated input when it is first submitted to prevent XSS. However recently someone suggested that instead of ...
-1
votes
1answer
171 views

Why is it non-trivial to write mathematics on the web? [closed]

I wanted to write a readable fraction with html and found it non-trivial and not portable. Why is it not very easy to write mathematical formulas with html and why has it taken so long to include ...
0
votes
3answers
50 views

Do and Undo action in the same / different page - Is there a difference?

If I'm bulding an application like a social network and I implement a like / favorite button with AJAX, is it preferable to use one URL to like / dislike or 2 differents URL? If I use one, for ...
0
votes
2answers
202 views

node.js C++ addons to do all major computations [closed]

A major limitation of node.js is its single threaded execution and the fact that JS is slow with computations. What are the advantages/drawbacks of using C++ to do the application's heavy lifting ...
0
votes
0answers
24 views

Web Service instances on web server

I was hoping someone might be able to explain or point me to an article on how web services are handled on a web server. Specifically, when clients connect to a web service, do they all go to connect ...
4
votes
3answers
309 views

Hide, obfuscate or otherwise prevent the harvesting of email addresses [closed]

I am developing a public repository webapp for my organization. It will be public webapp, exposed to the internet. All people and organisational units can be queried and its contact data will be ...
1
vote
2answers
278 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 ...
0
votes
3answers
150 views

Would it be possible to transfer an HTML file using a protocol different from HTTP?

I am reading about internet and stuff and just learned that web pages are really just HTML files. Also, I have learned that HTTP is just a transfer protocol. So my question is, would it be possible ...
0
votes
0answers
24 views

What is preferred in an MVC framework, having each string defined as a variable in the Controller or generating them in the Template?

In a clear separation of the MVC layers, having each variable in the view seems to be the right way, but in practice in can be more "natural" (at least for me) to put them in the template. for example,...
0
votes
0answers
73 views

One form with multiple fields vs several forms doing ajax requests

I have a group of invoices to send to a back end. The requirement is to be able to send everything with a button, so I can do the following: Send everything as form fields name like ...
0
votes
0answers
61 views

Client blocks fonts in browser => font-awesome is not being displayed

I am working on a web platform for which we have different clients. In this platform we make a strong use of font-awesome. I have always thought this was a safe and elegant choice with which I had ...
0
votes
1answer
74 views

How do browsers do CSS caching and why only .alert or .danger but not .alert.danger? [closed]

I read about BEM & OBCSS here and somewhere the author mentioned this: Decoupling selector will not only increase maintainability and scalability: it will speed up the rendering. Most web ...
1
vote
0answers
59 views

Advice on streaming architecture [closed]

I want to be able to stream my desktop to 1 other person (and in the future to possibly more people). The stream should be watchable from a browser or a mobile app (iOS, Android, Windows Phone) ...
1
vote
1answer
92 views

Cross application cookie access

It was my understanding that cookies are transferred with each subsequent http request, yet if I log in to a web application that uses cookie authentication, say on my browser, other applications on ...
0
votes
1answer
134 views

How to stop someone from calling URL on server

I am very new to web development and am trying to create a website using client/server model. From what I understand, the front-end (client-side) calls URLs specified on the server to get information. ...
9
votes
3answers
286 views

Cross-language Test-Driven Development

The short question: How do you follow Test-Driven Development on a project that spans multiple languages? Specifically, I'm writing a web application that uses JavaScript and PHP, and I want to ...
1
vote
1answer
62 views

Promise in Web MVVM

In MVVM (or Presentation Model), my (web) view listens to a CLICK event and calls a function of the Presentation Model to ask for the result. To clarify, the presentation model lives browser-side. ...
1
vote
1answer
133 views

Web framework in pure SQL

I heard that SQL is Turing complete language (for example: http://stackoverflow.com/a/7580013/2604170) I am just curious if would be possible to create independent web framework like Ruby on rails or ...
-2
votes
4answers
263 views

What is the different between web site and web application? [closed]

I have a friend who works in financing. His company wants a website for the company. He is really confused about a web site and a web app, and I don't really understand them enough to explain. Can you ...
1
vote
3answers
68 views

Web apps for enterprise

What are the potential drawbacks of taking a 'web approach' to providing an enterprise-level app (e.g. an ERP system or an app for field staff to complete tasks) and how can these drawbacks be tackled?...
0
votes
1answer
242 views

CGI Scripts and Python / Ruby [closed]

I am new to web programming. Now unfortunately, I was a kid during the advent of the world wide web and didn't have access either. So now when I am just starting out, it feels like there's a myriad of ...
4
votes
1answer
133 views

Why does SOP permit cross-origin form submissions?

Same Origin Policy does not prevent origin foo.bar from creating a form with action attribute set to another origin baz.duh and even allows to programmatically submit this form without the user ...
2
votes
1answer
112 views

HTTP API Versioning and Need to Introduce Breaking Changes to All Supported Versions

I am developing an HTTP application and deploying this by versioning it against the semantic versioning patterns/techniques/whatever they are. In order not to break existing clients and allow the ...
3
votes
1answer
339 views

Semantic web and web UI impedance matching

While developing a web-application (= application with web UI) using semantic web resources / technology like RDF, OWL, SPARQL, there is constantly a feeling that at the same time semantic offers much ...
0
votes
2answers
227 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 ...
2
votes
2answers
374 views

Pre-Processors vs Pure Web [closed]

It seems like within the last few years or so HTML/CSS/JavaScript Preprocessors have exploded in quantity and general use. They're still not as common as pure HTML, CSS, and JS/jQuery, but their ...
3
votes
1answer
41 views

Should I omit database and server communication (after initial response)?

I have a project that I'm working on where a user uploads a big file which gets parsed by the backend, and then returns the data back in a friendlier format. Now I'm wondering whether I actually need ...
45
votes
6answers
5k views

Explanation of how server-side programming languages are accessed

It is my understanding that any general-purpose programming language can be used for server-side development of a website. Am I right in thinking that a server just needs some kind of interface such ...
0
votes
0answers
65 views

Implement taxometer paywall

I need to add a paywall to my site. According to this article, I want to implement a taxometer system. The easiest and least secure way would be tracking the number of viewed articles using secure ...
1
vote
1answer
68 views

Web applications and homogeneity across users

My boss is asking me to implement certain features in a web application (rails) that are relevant for only a couple users, sometimes just one user (the reason is this is targeted for businesses and a ...
0
votes
2answers
48 views

Examples of operating systems capable of serving http-requests that does not support direct slash for directory separator

My php framework uses DIRECORY_SEPARATOR constant instead of /. Can there be any other options for a directory separator?
0
votes
2answers
180 views

Making backend service urls configurable

First of all, I will talk a little about the purpose of this question. We have several linux boxes on the same network on which different services are installed, some times these boxes are ...
1
vote
2answers
183 views

Pattern for separating UI code from logic in Wicket

I'm using Apache Wicket for developing web apps, I have developed a few for the last year and it has been great; today I was looking at a few pages and most of them look like this: public class ...
1
vote
2answers
96 views

What is really a resource?

I'm starting to study about web api's and REST and I'm having a hard time to understand what is really a resource. Basically the book I'm reading says that a resource is a conceptual mapping to one or ...
2
votes
1answer
482 views

Using GPL’d software in a proprietary web application

We are developing website that we charge money from members to join it as membership annual cost, so, we decided to put a plan for the second stage so we are choosing now the load balancer that we ...
1
vote
0answers
53 views

Modular Webframework which also includes Frontend modularity

This might be a big or broad question, but I simply cannot find a proper answer to this myself. Right now I'm struggling to find a starting point for the application I'm trying to make. My idea is to ...
7
votes
3answers
464 views

How to model the dependencies between fields in very complex forms

We have to create a web application that will be used as an application form for multiple insurance products (15 in total). This application form will be similar to a form wizard, it will span across ...
2
votes
1answer
184 views

Java App as Tomcat Service?

I currently have a basic j2ee website. Currently, a jsp frontend gets data from the backend (the java program, lets call it object "Score"). The backend gets this data from a web site. <% Main m =...
6
votes
1answer
525 views

Should I hide fields in REST resource representations based on the user's security role?

What is the best practice for exposing different fields for a resource based on user's role/ACL privileges in the system? Let's say I have an endpoint, groups/{:group_id}. My business rules state ...
1
vote
2answers
533 views

How-To: a browser based, real time, shared memory inspection/debugger application [closed]

Background: I have a C application running under Linux utilizing shared memory. I also have a debugger written in Python that can link to said shared memory and access individual variable values of ...
-1
votes
1answer
87 views

Augmented Reality online video player [closed]

I have received a very specific requirement from a client and am not sure what solution to use. My client would like to play an online streaming video while overlaying texts and images in a sort of ...
-3
votes
1answer
125 views

How can I test a method which aggregates data from a database? [closed]

I'm developing the web Java application and come across the following issue: I'm using jUnit 4.5. Suppose that I have a method which aggregates data from a database for the rendering their to a ...
0
votes
3answers
146 views

How do web servers deal with issues that arise when a machine has been on for a long time?

It seems to be accepted that computers that have been powered on for a long time and have any sort of complex software (ie and OS) running on them they tend to develop random errors and problems. ...
16
votes
4answers
640 views

Providing friendly URLs for a website vs. realities of database IDs

We have a database of resources, be they products, blog posts or something. We need to design a URL scheme to address them, for the public website. Here are two examples that are database ID bound: ...