Skip to main content

All Questions

Tagged with
2 votes
1 answer
270 views

Unit testing a Web Worker in JavaScript/TypeScript - Best Practice

I got assigned with writing unit tests for a class that instantiate a Worker inside in it's constructor. The code looks simmilar to this, class SomeClass { private _worker: Worker; constructor(...
LNTR's user avatar
  • 43
-2 votes
1 answer
46 views

Do I need a separate backend (Express) for an Angular project if using AWS for data storage?

So, I'm working on developing my first Angular project with/for a friend of mine and I have a design question before I really get started with things. I'm going to be storing persistent data on AWS ...
MisutoWolf's user avatar
0 votes
2 answers
67 views

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

I have a notifications app which sends users notifications. It uses a .NET core backend, an angular frontend and Cosmos DB. Within this I have an API endpoint function which is linked to a button used ...
Watchdogs1499's user avatar
-2 votes
1 answer
67 views

Can a JavaScript SPA launch executables installed on the server?

Context We have an application that is written in .NET and runs on a Citrix server. This app consists of shortcuts to external tools (like: DameWare, VNC viewer, mtsc.exe, msra.nexe, ...) that are ...
DarkLite1's user avatar
3 votes
1 answer
1k views

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

I read this blog post recently: The Two Pillars of JavaScript Part 1: How to Escape the 7th Circle of Hell, which is essentially a criticism of object oriented programming, and advocacy for funtional ...
dwjohnston's user avatar
  • 2,687
3 votes
2 answers
775 views

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

I've been working on a Python(Django)/JavaScript(AngularJS) based application for some time now.(I learnt all of these on the way, had previously been a Java only programmer)and have hit moments where ...
Divij Sehgal's user avatar
11 votes
4 answers
18k views

Better ways than traditional polling methods

I'm currently in a AngularJS/Javascript environment. Currently the application using the polling method (i.e, to retrieve new data from server in a fixed amount of seconds). This is quite taxing ...
Gene's user avatar
  • 261
-1 votes
1 answer
334 views

I'm building an app with Node, Express, and MongoDB. Is AngularJS necessary?

Node, Express, and MongoDB are really connected so I can understand why they are frequently used together. For a web app of medium complexity, can I get away with only using HTML/CSS and EJS for the ...
wing's user avatar
  • 7
13 votes
1 answer
1k views

Order and filter Server-Sent-Events in angular.js eventsource

I have a Client in AngularJS where I consume multiple SSE (Server-Sent-Events) in Java from the Server Side (there are multiple endpoints in different web servers in the backend). Diagram link I ...
vak's user avatar
  • 301
2 votes
1 answer
1k views

Understanding webpack and other module loaders

I am a bit confused regarding module loaders Like I am using webpack which load modules as chunks but it is only while developing When the code gets minified it will be a single file for all scripts ...
Shikha thakur's user avatar
2 votes
2 answers
770 views

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

I've seen an API list methods with both of the following signatures: methodA(...) : ReturnType methodB(...) : typeof ReturnType I understand the first but not the second. My question comes ...
Andrew Willems's user avatar
1 vote
0 answers
649 views

How to design the state tree using redux?

In the last days I have searched for a documentation on how and when is it best to use redux and how to design the state tree. My research ended in the conclusion that there is no one correct answer. ...
Stav Alfi's user avatar
  • 297
0 votes
1 answer
2k views

When do I use square brackets around routerLink in Angular2?

In Angular 2 (currently 2.0.0-rc.6), routerLink is used as a directive to indicate a path we wish to follow in our routing, e.g. in response to clicking a link. However, in the documentation both of ...
Andrew Willems's user avatar
6 votes
1 answer
237 views

Globally interesting state in angularjs

I've created maybe five services like RoleService, AuthService, etc. Each of them has some state (e.g., RoleService.role, AuthService.isLoggedIn) affecting a lot of controllers and some other services ...
maaartinus's user avatar
  • 2,703
0 votes
2 answers
902 views

Scalable Angular SPA Architecture

I am developing an Angular SPA and I am currently in the design phase. I have created a sample architecture which I am planing to use in my SPA but I would get some feedback because I want the ...
Lorenzo von Matterhorn's user avatar

15 30 50 per page
1
2 3 4 5