Skip to main content
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
7 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
  • 489
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
  • 85.2k
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.6k
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,320
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,237
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
  • 218k
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,536
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
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
  • 48.8k
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

Should I be using both AngularJS and ASP.NET MVC?

3 years later, use ASP.NET Web API to serve up your data and Angular (js or newer) to structure your app on the client side. If you're making a static site then just use ASP.NET MVC.
user441521's user avatar
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
2 votes

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

The typeof operator in TypeScript type annotations is not similar to the regular JavaScript typeof operator. Typescript reuse the keyword, but gives it a different meaning. In type annotations, typeof ...
JacquesB's user avatar
  • 61.6k
2 votes

Automatically update and test npm dependencies

Perhaps a bit late, but for open source github repos there's https://greenkeeper.io/ it does exactly what you want, it opens a new PR for you every time a package has an update, which will ...
Sandman21dan's user avatar
2 votes

What are architectural approaches for converting large multipage apps to use new JavaScript frameworks?

I was looking to redesign The first question, which comes to my mind is: why? What is the concrete pain, you are suffering? As long as you could not clearly answer this question, I do not see any ...
Thomas Junk's user avatar
  • 9,623
2 votes
Accepted

what is better way to architecture project

Ok, what you do is common, but some nuances that needs to be adjusted here and there. You're using an N Tier for your backend ( Presentation Layer, BL and DAL ) And using a Angular as a Frontend ...
TanguyB's user avatar
  • 467
2 votes
Accepted

Load JSON immediately for SPA instead of AJAX? (Python=>AngularJS)

I'd rather embed the json in the page content than in a header. Best practice for embedding arbitrary JSON in the DOM? on stackoverflow has some suggestions, such as using a <script> tag or a ...
CodesInChaos's user avatar
  • 5,837
2 votes

Is it better choice to use both AngularJS and ASP.Net MVC for developing ecommerce website?

I would use something other than ASP.NET and Angular.js in my Opinion. But filtering data can be server based or client based. If you want high performance reactivity, I would recommend Vue.JS It's ...
Jhon's user avatar
  • 21
2 votes

Implementing Business Logic in Architecture

So it sounds like you want to implement some sort of access control. You suggest to give each user one specific type and then creating a module per type that has the features that type needs. While ...
Jory Geerts's user avatar
  • 1,616
2 votes
Accepted

Node and Angular two separate applications or a single application?

Its fairly normal to have your webpages and js served by the same webapplication which also hosts your api code. This simple approach has some upsides. You dont have to do anything special with cross ...
Ewan's user avatar
  • 81.9k
2 votes
Accepted

Refresh tokens by example using Angular and Spring Boot

It sounds like you're reinventing the wheel a bit here. JWT authentication has a well-documented "protocol" already defined for this. When the user initially logs in, you provide both a ...
Dom's user avatar
  • 570
2 votes

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

The reason it isn't a super obvious yes in my mind is that obviously angularJS has been a widely used language for a long time and I would imagine its present functionality/version is pretty stable so ...
meriton's user avatar
  • 4,328
1 vote

Stateful Single Page Application with ASP.NET Core

These days the trend is to store the state on the client. This makes most sense when writing a fat client because we can store state where the logic is. The server calls will also be simpler because ...
Esben Skov Pedersen's user avatar

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