11 votes
Accepted

Anything wrong with having aliases on a production server?

In general, scripting common tasks in order to prevent mistakes and work faster is a good idea. As that I agree with your intention. But I am shocked that you were able to make such changes in the ...
amon's user avatar
  • 134k
10 votes
Accepted

Keeping a JSON copy of a database

Basic Drawbacks Excess complexity, redundancy. More potential for bugs (more paths through more code), more time to develop, test, and more cost to maintain, forever. Stale Data The moment the ...
joshp's user avatar
  • 3,481
10 votes
Accepted

Is there a canonical definition of SPA or is SPA a broadly agreed-on architecture with fuzzy edges?

There is no canonical definition of a single page application, since there is no governing body that defined it. Instead, it is a name that got applied to web applications that exhibit a number of ...
Greg Burghardt's user avatar
8 votes
Accepted

Single-Page vs Multi-Page and Client-Side vs Server-Side

SPAs and MPAs The core difference between a SPA and a MPA is that with a single-page application, all the requests happen within the lifecycle of a single HTML page. You might be able to see ...
Zach Bloomquist's user avatar
5 votes

Benefits of using a JS Framework

As with any other question to adopt a technology - it depends on the technology. It depends on your requirements. It depends on any future requirements/the roadmap for the product. It somewhat depends ...
JᴀʏMᴇᴇ's user avatar
5 votes

REST vs RPC for mobile development

You might want to have a look at this article by Netflix about their API redesign: http://techblog.netflix.com/2012/07/embracing-differences-inside-netflix.html TL;DR: REST in general causes chatty ...
Dieter Van de Walle's user avatar
5 votes

Interoperability between client and server versions

Version your server API. The client doesn't need to know what the current version of the API is, the client needs to know what version of the API your instances support. There are two general options ...
Jeff Lambert's user avatar
5 votes
Accepted

Is there any recognized pattern supporting or discouraging the access to the same database from multiple applications?

Connecting multiple applications to the same database is often a bad idea. It's an integration anti-pattern you might call The Shared Database and it's unfortunately a very easy anti-pattern to fall ...
Bogdan's user avatar
  • 3,620
5 votes
Accepted

Are Physical Firewalls mandatory

If by "physical firewall" you mean a separate appliance, then this might not be necessary. Configuring port forwarding in the router is already a kind of firewall. But let's take a step back ...
amon's user avatar
  • 134k
4 votes
Accepted

Misunderstanding of viewmodels relations on client and server side

Using tooling. Most mature frameworks have mechanisms to produce client code from a server model/wsdl/schema etc. Sometimes these are known as code generators. Typically something is inspected on ...
Jon Raynor's user avatar
  • 11.5k
4 votes

Anything wrong with having aliases on a production server?

What does the community feel about this? How is that relevant? Some will tell you to do it, some will tell you not to do it. Has your supervisor decided not to do it? ... then listen to your ...
Bogdan's user avatar
  • 3,620
4 votes

Socket on a webserver

Sockets are file descriptors with special abilities. While every socket somehow uses a port, they are not the same thing. A socket is identified by a local address+port and a remote address+port. ...
amon's user avatar
  • 134k
4 votes
Accepted

One thread for all database operations or one thread for each db operations?

Is it a good solution ? or not ? and why ? Databases have been among us for a long time, and a lot of people already did the thinking for us ;) You have a problem of Transactional Serializability. ...
linuxunil's user avatar
  • 1,451
4 votes

Can I assume nobody deletes user generated content off my server's file system?

This kind of depends on where and how you expect this application to be deployed. If you control the deployment or can make rules (such as in the form of a "maintenance guide") that those who operate ...
Michael Borgwardt's user avatar
4 votes
Accepted

Can I assume nobody deletes user generated content off my server's file system?

To give you a direct answer to Is it bad practice to assume that server side file will never be deleted by external forces It is not bad practice to assume it is unlikely a file will never be ...
Doc Brown's user avatar
  • 207k
4 votes

How do I deal with file downloads?

Both approaches have advantages and disadvantages, you need to weigh them according to your requirements. Direct links can be faster or use less server resources, may even scale better if you use a ...
Hans-Martin Mosner's user avatar
4 votes

Interoperability between client and server versions

Focus on ensuring that the messages passed between different versions of the protocol can be understood. Broadly, this means You never add a new required field to a message Optional fields can be ...
VoiceOfUnreason's user avatar
4 votes
Accepted

Interoperability between client and server versions

Custom proxies and stubs, which handle version adaptation So clearly to make this work well, you need to version your API. Each different version of the API which may see action in the field requires ...
Lewis Pringle's user avatar
3 votes

Do CPU Intensive/ Data Intensive Tasks belong on the Server

The normal rule for data intensive work is to place the processing so that the 'large' block of data doesn't move around much. This is because network delays are frequently much larger than any other ...
kas's user avatar
  • 61
3 votes

One thread for all database operations or one thread for each db operations?

Database operations typically consist of multiple stages and allow for quite some parallel execution. Your single thread will block that. You're right that creating a new Connection for every request ...
Ralf Kleberhoff's user avatar
3 votes

Mixing JavaScript and server-side scripting

The question here is "why" is this a bad practice. The number one reason is the empirical observation over many years that it leads to software that is difficult to understand, maintain and change. ...
John Scattergood's user avatar
3 votes
Accepted

Is Application Server Software for Development Only?

In addition to Robert's answer, you can use any of the mentioned servers in production environments. We do it often. Tomcat is one of the most used. The point of these servers is that they are ...
Laiv's user avatar
  • 14.6k
3 votes

What is the way to keep track of mobile clients ip?

Don't do this. You cannot assume that any device has a particular unique IP, or that you would be able to initiate a connection to it. There are two problems: 1. NAT (Network Address Translation). ...
amon's user avatar
  • 134k
3 votes
Accepted

Can developers emulate high server traffic in order to prepare for a live environment?

Is this something developers can test for? (Emulate server load) Only somewhat. They can emulate load, but emulated load is not real. The rate, latency, and diversity of the traffic will all vary. ...
Telastyn's user avatar
  • 109k
3 votes

What are the differences between server-side and client-side programming?

This is by no means intended to be an accepted answer; rather I offer it as a complementary point (in response to the when do you use each of them question) that has yet to be mentioned in the other ...
Kosta Kontos's user avatar
3 votes
Accepted

Rendering custom markdown format: client side or server side?

It all comes down to one thing: what are your main concerns with this system? Is it reducing the storage space required? The bandwidth use? The server CPU use? Is the custom markdown something your ...
TurtleKwitty's user avatar
3 votes
Accepted

What does a proper server response look like?

Having a basic JSON wrapper such as {"age":30} enables you to extend the response structure in the future without breaking the interface. You don't need to include the additional metadata if you don't ...
casablanca's user avatar
  • 4,964
3 votes

If we write validation in sever side, don't it become two times of writing same code? What is the standard software engineering solution for it?

Server-side validation is for security, so users can't bypass client-side validation and send potentially harmful requests. Client-side validation is for usability, so users can immediately see that ...
Kayaman's user avatar
  • 1,950
3 votes

Achieving server-side rendering of data coming from a PHP API

AngularJS has support for server-side rendering by using a Node.js server, see their documentation on it: https://angular.io/guide/universal. This guide describes Angular Universal, a technology that ...
Jade Ellis's user avatar
2 votes

Is it possible to validate code execution from a remote server?

Look into proof of work research. It technically does what you've asked for but may not give you as arbitrary freedom to demand any kind of work has been done as you would like. This mostly proves ...
candied_orange's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible