Questions tagged [web]

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

Filter by
Sorted by
Tagged with
0
votes
4answers
198 views

How to implement “viewed: N times” functionality for an article?

How will I have to update "views_count" each time(!) a user loads my page? It will be costly. And I don't need such accuracy when I update "views_count" after a user loads a page. Then is there any ...
0
votes
1answer
85 views

On an encrypted connection, are packets' destinations visible to a third-party?

Example: I'm in a coffee shop in Maine, using a VPN whose physical location is in Berlin. I know that my packets between Maine and Berlin are encrypted, so someone snooping on that coffee shop's ...
-1
votes
1answer
81 views

Moving XML data into DB [closed]

Is this a "overkill" design to store XML data in a relational database? One point is that these web API REST services can later be used by other applications.
-4
votes
1answer
152 views

Rewrite legacy code or continue to live with it [duplicate]

Last year I decided to create a web-based SAP Business One extension system consisting of a JavaScript SPA written with Aurelia that communicates with two REST backends written in Go and Java (...
1
vote
1answer
3k views

Multiple language web application - how to implement?

What is the best way to provide a web application in multiple languages? The focus of my question is not what to think about, but indeed how to do it. The text in the web application: text in the ...
5
votes
3answers
745 views

Stored procedures or ORM in web?

I am working in a Peruvian company that develops desktop accounting software(.net C#). We have many clients (companies) each customer can create several companies, in addition there is a new database ...
6
votes
3answers
26k views

Difference between a CMS and a Web Development Framework

The web world is flooded with CMSes. Some tout their CMS as Web Development Framework. Some say it as Content Management Solution and nowadays i m hearing Content Management Framerowk. When we hear "...
3
votes
1answer
1k views

Why shouldn't you create a custom uri scheme?

In setting up deep linking to android and iOS apps, I've made some use of custom URI schemes, and they work great, especially as a fallback when the mechanism that allows maps from http: fails (as ...
0
votes
1answer
505 views

What's the best way to do horizontally scalable file uploads?

In general, how do websites handle file uploads when they scale horizontally? Obviously if you have a load balancer going to 10 application servers, and each application server just saves an upload ...
87
votes
10answers
33k views

Why did Alan Kay say, “The Internet was so well done, but the web was by amateurs”?

OK, so I paraphrased. The full quote: The Internet was done so well that most people think of it as a natural resource like the Pacific Ocean, rather than something that was man-made. When was the ...
8
votes
1answer
2k views

Can a single simple language such as Clojure replace Html + JavaScript + CSS + Flash + Java Applets …? [closed]

Please do not dismiss the idea right away. I know that it is hard to compete with a mainstream approach that already works (mostly), so my question is partly "academic". I also am aware that ...
0
votes
1answer
404 views

Is CQRS Appropriate for a Service with Distinct Query and Command Clients

I want to ensure that I understand the scenarios which CQRS is intended. For example, if a web service has two types of clients: many external clients who will only query via GET; they will never ...
6
votes
2answers
3k views

Time frame to pass the MCPD Web Developer .NET 4

I have 24 months experience develping .NET C# client/server apps in my profession as Soft developer. Now starting in a new company I have a probation time of 6 months. My new employeer wants to give ...
7
votes
5answers
334 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
128 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 ...
2
votes
2answers
1k views

Single Web API endpoint for all entities, good or bad?

Situation We are currently developing a large web application (Web API 2) - several entities and thus require several endpoints for each. But suddenly, they changed to "one endpoint fits all" ...
-1
votes
1answer
249 views

How can I translate an ip address to a url in a Java Webserver?

I host my own webserver through Java. The problem is I can only access it through a web browser by using an ip address. Can I spoof a url? For example, I type in 192.168.2.111 into the address bar,...
3
votes
5answers
412 views

Which way of web navigation is more maintainable? (index with $_GET parameters vs physical file for every page)

Let's look at those two scenarios. First, you have a page that is using $_GET vars for routing and only requests/includes the files based on $_GET requests, like as follows: index.php <head>.....
-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
1answer
140 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. ...
0
votes
0answers
54 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 ...
-5
votes
1answer
141 views

Is it possible to detect if a screen is off through a browser? [closed]

With any method not requiring special permissions. I want to find out if a website can tell if my screen is off. Can a browser access that information in any way?
4
votes
2answers
38k 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 ...
-1
votes
2answers
808 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
1answer
188 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 ...
5
votes
2answers
1k views

What are the software technologies behind real time web apps? [closed]

What are some of the software technologies behind "real-time" web apps, like Twitter, Trello, or even Gmail? I know there's a webserver and probably a database on the backend, but what are the ...
1
vote
2answers
205 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 ...
0
votes
3answers
72 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 ...
3
votes
2answers
1k 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 ...
1
vote
6answers
4k views

Please guide this self-taught Web Developer [duplicate]

One of the major regrets in life is that I didn't do something with my introversion. I didn't manage to get past the first year of college because of that. I have chosen the path where there are no ...
1
vote
2answers
624 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 ...
-3
votes
4answers
6k 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 ...
5
votes
3answers
905 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 ...
2
votes
2answers
995 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 ...
1
vote
3answers
729 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
396 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
148 views

Session Management in distributable web-apps

I am working on a huge web application in which I need to add transparent failover feature. I understand the necessary steps to make a web application distributable, the most difficult thing being: to ...
4
votes
4answers
2k views

How to implement Cache in web apps?

This is really two questions. Im doing a project for the university for storing baseball players statitics, but from baseball data I have to calculate the score by year for the player who is beign ...
0
votes
1answer
184 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 ...
9
votes
3answers
395 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 ...
2
votes
1answer
577 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
612 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. ...
3
votes
1answer
556 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 ...
1
vote
1answer
273 views

Web framework in pure SQL

I heard that SQL is Turing complete language (for example: https://stackoverflow.com/a/7580013/2604170) I am just curious if would be possible to create independent web framework like Ruby on rails or ...
4
votes
1answer
155 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 ...
10
votes
4answers
7k views

JavaScript Multi Threading

Well these days JavaScript is main player in all web development technologies , on client side for making user interface better, client side logic, on some web servers as server side logic also Add ...
1
vote
3answers
90 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
1k 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 ...
3
votes
9answers
21k views

Is there a way to develop desktop software using PHP?

I have to develop a real estate marketing CRM software for my client - where the application is installed on desktop but can also be accessed from web. 2 reasons why they want the application to run ...
2
votes
1answer
162 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 ...