14 votes
Accepted

Where to put the Angular app in a ASP.NET Web API solution?

You have two options. Create separate mywebsite.api and a mywebsite.app projects in your solution. Advantages Proper separation of concerns. You can deploy updates to your api and your front end ...
CountZero's user avatar
  • 256
14 votes
Accepted

What is the right time to go for Code Refactoring, not optimization?

First of all, no Java does not have enforced coding standards. Anything you can make work in JavaScript I can also make work but look worse in Java. Working, in any language, doesn't ensure that it's ...
candied_orange's user avatar
11 votes
Accepted

Better ways than traditional polling methods

If by "traditional" you mean every client hammering the server as often as they can then I can help at the architectural level. The appropriate design depends on where your server falls in this grid: ...
candied_orange's user avatar
8 votes
Accepted

Client-side Rendering vs JSP's for Spring MVC Front End Dev

The JSTL syntax required to make highly-interactive pages via JSP's is getting awfully unwieldy. I'm worried that, when we expand our project and bring on more engineers, there will be a steep-ish ...
Robert Harvey's user avatar
6 votes

Client-side Rendering vs JSP's for Spring MVC Front End Dev

Although, the question may be answered and you decided to accept this answer, I want to highlight the topic from another side. 1) JSP as a templating system As a templating language, I think, JSPs ...
Thomas Junk's user avatar
  • 9,543
6 votes

REST is not appropriate for business applications because of necessary to distribute business logic accross layers. REST alternative required!

There is a gross misconception somewhere. I think it is near this idea. In Spring+JSF application all the business logic was encoded in special layer - Spring entities and services. In Spring+REST+...
VoiceOfUnreason's user avatar
6 votes

Better ways than traditional polling methods

You can use Server-Sent-Events as an alternative to polling. Instead of asking your server for new data every n seconds, open a dedicated connection and have it send your new data when it becomes ...
svarog's user avatar
  • 469
5 votes
Accepted

Populate User info between services on microservices architecture

It should depend on the way the data is stored and used. Storage: Some architectures will have a separate database for accounts, and another one for user information. This makes particularly sense ...
Arseni Mourzenko's user avatar
5 votes
Accepted

Why JS MVC frameworks prefer data binding to UI element reference?

The purpose of data binding is to decouple the view from the model. Neither the model nor the view should know about each other. Data binding is the glue that connects the model to the view and ...
Robert Harvey's user avatar
5 votes
Accepted

IEC 62304, Are Software Frameworks (Spring/JEE/Angular/React) considered SOUP?

Keep in mind that I'm not familiar explicitly with IEC 62304 (it's for medical device software and I've never worked with medical devices), I am familiar with similar standards, such as ISO 9001 and ...
Thomas Owens's user avatar
  • 82.7k
4 votes

Can one html page with web services replace current server-client technology?

This is the approach which is used by many web applications. Should you do it? It depends. The full-AJAX approach has its drawbacks: SEO. For an interactive application which handles user content, ...
Arseni Mourzenko's user avatar
4 votes

What is the right time to go for Code Refactoring, not optimization?

From your question, it appears your are confusing "refactored" with "optimised" and are actually referring to the former. When should you refactor? That's easy, straight after (never before) your ...
David Arno's user avatar
  • 39.3k
4 votes

Django - separation from the frontend (Templates)

So you need to show different states of your application -- a landing page, a list of cars, a single car's details, a procedure with a set of forms and prices etc for when you actually buy the car, et ...
RemcoGerlich's user avatar
  • 3,310
4 votes

Why was Google Maps built using canvas? If it was built today, would it have rather used react/angular? Why (not)?

Any map based application will use Canvas, SVG or WebGL for actually drawing the map and it is orthogonal to using Angular or even page being SPA at all. Look at frameworks like https://openlayers.org/...
user158037's user avatar
4 votes
Accepted

How do functional programming advocates use a framework like React or Angular?

In my previous role we were using mostly pure functions in React. Remember that React is a "library for building user interfaces". Often I see React projects where components are very object-oriented ...
Samuel's user avatar
  • 9,197
4 votes

Is it best practice to only use still-supported languages when developing apps?

When you are at the beginning of a project, without too much existing code the initially chosen framework is already declared as deprecated the framework has a designated successor which is known ...
Doc Brown's user avatar
  • 207k
3 votes

asp.net mvc vs angular.js model binding

I have been working in Angular (with ASP.Net WebAPI for the data access layer) for a while now and had to jump back to ASP.Net MVC. One thing I noticed right away about ASP.Net MVC was the awkwardness ...
steveareeno's user avatar
3 votes
Accepted

Is it a Good Idea to use REST API from Javascript Code

If we're talking about JavaScript then yes, it is a good idea, because it's, sadly, the only tool at your disposal. Think of your REST API as a public website. When you are creating a website and you ...
Andy's user avatar
  • 10.3k
3 votes
Accepted

In a JavaScript method signature what is meant by a return type of `typeof blahBlahBlah`?

A method signature returning typeof returns the constructor of the specified type, so that you can new it.
Robert Harvey's user avatar
3 votes
Accepted

Understanding webpack and other module loaders

Short answer: You always have a single file know as the bundle with webpack, but it will generate a source map in development (which make it look like multiple files). Detailed answer: Web browsers ...
Benjamin Albert's user avatar
3 votes

Angular and desktop

The Angular framework can be combined with Electron or Ionic to build desktop applications because both Electron and Ionic include the NodeJS framework which gives you the ability to access your ...
tale852150's user avatar
3 votes

Better ways than traditional polling methods

They're websockets : they're an exntesion of HTTP, work in the same port. It enable bidirectionnal communication between client and server and oof course there is an angularjs integration available ...
Walfrat's user avatar
  • 3,486
3 votes
Accepted

Angular 5- Where should logout code sit?

The documentation is pretty explicit about that: https://angular.io/guide/architecture-services A component should not need to define things like how to fetch data from the server, validate user ...
Maurice Döpke's user avatar
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
3 votes
Accepted

Strategy for Chrome timing out on a Database cleanup job which takes a long time

For such long-running tasks, delegate them to a background task. Then you could have 2 API endpoints, one to start the long-running task and a second one to request its current status. For example, ...
Bart van Ingen Schenau's user avatar
3 votes
Accepted

Is it best practice to only use still-supported languages when developing apps?

At some point you will have to change the app. Or your successor. Discuss it with the bill payer obviously, but the best time to make the change is right now when you still know what the web app does. ...
gnasher729's user avatar
  • 45.1k
2 votes

angularJS code sharing across hybrid Ionic app and regular mobile website

You can build a shared kernel which contains some atomics Components (https://docs.angularjs.org/guide/component) / Services. Web app, android app, ios app, supervision app ... all will use ...
Kenny's user avatar
  • 21
2 votes
Accepted

Software design for Client side form validation

My question then is that is carrying out Client Side form validation (i.e checking the fields are not empty, the email is of correct format etc) within a angularJS controller a good design ...
Marcelo's user avatar
  • 204
2 votes

Best practice for storing external text to then place in html

If you have no additional requirements besides what you mentioned in your question, this is perfectly fine. See KISS and YAGNI. You should only consider doing something more complicated right now if ...
Ixrec's user avatar
  • 27.8k
2 votes

Where to put the Angular app in a ASP.NET Web API solution?

I've found this seeder project https://github.com/damienbod/AngularWebpackVisualStudio/ which allows you to develop and host the client and server in a single Visual Studio (2017) project. I agree ...
Chet's user avatar
  • 21

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