18
votes
Accepted
Functional programming - what to learn and who uses it
Since you write that you're a .NET developer and you don't even mention F#, odds are that you're a C# developer. In that case, I'd strongly suggest that you learn F# first. It's another .NET language, ...
15
votes
Accepted
How can I protect the user password?
Who can press F12 to see the password?
The person operating the web browser. Who is the same person who just entered that password.
That a user can see their own password in the browser developer ...
8
votes
Functional programming - what to learn and who uses it
I have never personally met anyone who working with functional programming language in their day today job.
I am paid to write OCaml, AMA!
My main reservations are on whether Haskell is a good ...
5
votes
Accepted
Should base class include unused properties of sub class?
Having a property in the base class which is used in only one of several subclasses is a common antipattern. This can easily happen when creating the superclass, by either pulling too many things into ...
5
votes
Accepted
Test driven development on front end?
Adversarial vs Aspirational
I think this is the problem you've tripped over.
In TDD the process is this:
Write an Aspirational test describing the behaviour desired.
Write the code in the unit that ...
5
votes
Should I strictly use both DTOs and models in Angular project in order to follow best practice?
The point here is loose coupling: in your architecture with only one class used to represent both the API response and the user-facing data what are you going to do when:
The requirements change for ...
4
votes
Should Developers Conduct Sanity Testing in Public Dev Environment, if they Tested Locally and Wrote Unit Tests?
However, they are prescribing a incorrect solution to a problem.
Then find a better one. Your current methods are failing you. QA proposed a solution that would work. If you think that's not the root ...
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 ...
3
votes
Semantic versioning for SPA applications with a RESTful backend
Semantic Versioning is most useful for APIs, not applications. Once you start getting into user facing applications, terms like "incompatible changes" or "backwards compatible" ...
3
votes
Functional programming - what to learn and who uses it
I could also suggest you to look at Scala, which, on its front page, literally says:
"Scala combines object-oriented and functional programming in one concise, high-level language."
Arguably, if you ...
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.
...
3
votes
Accepted
Typescript and Angular 6 - Mapping Service Results to Data Transfer Objects
The short answer for this specific case would be: no there is no reason to map the (interface) result to a class. Since your class doesn't have any functions, doesn't do anything specific in it's ...
3
votes
Accepted
Any possible downsides to namespacing actions for stores
NGXS docs page explicitly recommends using namespaces to group actions so I guess there're no significant problems that arise from using this approach (at least from lib authors' perspective).
3
votes
Is it okay to deploy both front end and backend everytime if they are in a single repository
Both approaches - individual deployments and combined deployments - have they pros and cons.
Some things to consider:
Are you deploying to some test or staging environment, or are you directly ...
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 ...
2
votes
What do you unit test in your angular applications?
Question: What do you test in your angular application and how do you
think it improves your software quality/stability?
Components
For components that encapsulate UI-logic, i try to cover the ...
2
votes
Best practice for storing a static pdf file in a web app
I would include it in a resource folder and include it in source control - it's a document that explains how your application works, so it makes sense that its version history is maintained along with ...
2
votes
How to separate UI and business logic when they are intertwined by design
It sounds like you need some events in your new business logic.
Before any UI part calls joinChat it can subscribe to the relevant events. During the execution of joinChat, which would entail multiple ...
2
votes
Accepted
How to separate UI and business logic when they are intertwined by design
First, I would like to point out, that your observations are "valid". When I made similar observations back in the day (it was Java Enterprise applications for me) people wanted to talk me ...
2
votes
Should base class include unused properties of sub class?
Including any public properties in base class is an anti pattern to begin with, or at least it's a code smell. In most cases, you should follow the tell don't ask principle, and the matters of ...
2
votes
Are ViewModels within an NgRX store an anti-pattern?
I don't think it's "bad practice" as long as it works fine for you. One think you should consider, however, is that you might be omitting one of the strengths of NgRx: Memoization. Selectors ...
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 ...
2
votes
Accepted
Alternative ways to transfer records from one environment to another
It's unclear why this takes a "long" time:
requests.post('http://www.example.com', json.loads(request.POST))
If you're looking for async bulk solutions,
they are easy to implement.
(1.) ...
2
votes
Is it okay to deploy both front end and backend everytime if they are in a single repository
If someone asks for help with some weird issue that they can't track down, to me it's a stronger statement if they can say that nothing changed vs they redeployed exactly the same application.
The ...
1
vote
Angular 11 NgRx state management handling subscribe and unsubscribe in most effective way
Unsubscribing does not change the store. Therefore, when you open the model again, ngOnInit is executed and the component subscribes to the store again.
The store behaves like a BehaviorSubject, that ...
1
vote
Accepted
Angular how to organize code in component and service
What do you want to achieve?
My main goals are in the most cases readability and maintainability. Therefore my answer is written with those in mind.
If every consumer of the http request only needes ...
1
vote
Managing Documentation / Source Control for a Full-Stack Application Across Multiple Repos
Generating documentation is one of the tasks that build servers excel at. Part of the continuous integration pipeline could include generating the documentation for each project, and then publishing ...
1
vote
Accepted
Angular: send form or object?
I expect from your question that its about having one entity model (that is used from the UI (Angular Component HTML) down through the Business logic, to the Data Access layer where its send in the ...
1
vote
menu content link in Backend VS menu content link in UI
Trying to create a generic solution that loads an UI definition and renders it dynamically sounds like it should save work, but that's usually not the case. At that point, you're effectively creating ...
1
vote
Should Developers Conduct Sanity Testing in Public Dev Environment, if they Tested Locally and Wrote Unit Tests?
According to my understanding and (based on previous experiences) sanity tests can be considered as a part of the regression testing suite. You are not creating new test cases rather than you are ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
angular × 40architecture × 6
typescript × 6
web-development × 4
front-end × 4
javascript × 3
clean-architecture × 3
angularjs × 3
design × 2
c# × 2
design-patterns × 2
unit-testing × 2
rest × 2
.net × 2
api × 2
git × 2
web-applications × 2
state × 2
http-request × 2
react × 2
angular2 × 2
microfrontends × 2
object-oriented × 1
python × 1
domain-driven-design × 1