Answer the question
In order to leave comments, you need to log in
Rate Angular Code?
Hello.
I have been familiar with Angular for a little less than a week and made a small project. Blog, the front communicates via REST API with the server on php + SLIM (did not load it). Look, please, who has the desire and time, what needs to be improved, what glaring discrepancies with codestyle and other vowels and unspoken rules for writing code using angular and typescript are there? I'm especially interested in how you can improve all these subscriptions in components, etc.
Github: https://github.com/redfruit325/AngularFirstBlog
Thanks everyone!
Answer the question
In order to leave comments, you need to log in
When I am asked to evaluate the code in Angular, I always wang a misunderstanding of Rx. This is both the strongest and the weakest side of Angular. Strong in the sense that it is an incredibly powerful tool. And the weak point is that the threshold for entering Rx is extremely high. It is impossible to just take it, start a project with RxJS, figure it out and eventually do it well. You need to know in advance what you are dealing with. I do not know how to explain these principles in a nutshell, or give some formula for success.
Here is a lecture that helped me at one time:
https://www.youtube.com/watch?v=3LKMwkuK0ZE
It is based on RxJS 5, but nothing fundamentally has changed.
This is something that immediately catches your eye on almost any project, not just yours.
From the pros:
- understanding what components are
- flat project structure
From the minuses (apart from Rx):
- lack of modules
I would also question the need for the services and shared folders, but this is most likely a matter of taste. By the way, if someone is now bombed from the previous sentence, can you pliz direct me somewhere where this would be explained in a human way? Otherwise, I really don’t understand why these folders are needed, and why providers working with Http should be called services. I suspect that people copy this idea from each other. But I can gladly be wrong.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question