-
Notifications
You must be signed in to change notification settings - Fork 0
HOME
Welcome to the Angular-plus-plus wiki!
For those who are learning programming skills it is super important to find the way to produce tidy code in any language.
Every Language promotes a paradigm which means it has the most productive way to produce the code in a specific manner.
For those who don't understand yet what it means a paradigm, In practical terms it is the way the language guide your thoughts in order to produce certain algorithm. for example: there are languages where the only thing you have to think of is in iteration and build solutions by looping structures to produce an algorithm. (recursive thinking). There are others that promotes to think as if you were thinking on quotidian life and where you treat structures as objects (Object orienting programming).
Well Angular promotes the paradigm where everything starts from the view or html and in that way you structure your solutions by separating pieces or blocks into components. We could say that in this way the framework or language it is already helping you to structure your application separating it in different scopes by the use of programming patterns. Thus we reduce the possibilities to generate glue code and why we don't want glue code?
Well I am a strong believer that a good developer is the one that makes things seem clear and no the one that produces the most brilliant algorithm since it is going to be understood just by himself. Not even with the best supported documentation it is going to be well understood for others because produce a good documentation also requires a good sense of structuring which it is probably the same reason why a developer would not be producing a clean solution.
The intention of this space is to keep in mind things that when you are working with it are ease to keep it mind but when you do work with many different technologies at the same time it can become hard to remember all of them. Some of the best practice for Angular are:
**Remeber we don't want our component reacts against every key down pressed ** If we are building our directive we can just override the keyDwon event instead. how?