Keep Framework Code Distant
Last updated
What is Keep Framework Code Distant?
Keeping framework code distant refers to separating the application's code from the framework's code. By doing so, it makes it easier to maintain, test, and upgrade the application's codebase and the framework independently.
Here are some ways to keep framework code distant in system architecture:
- Use an abstraction layer to separate the application code from the framework code. This allows the application code to be written without the need to know the specifics of the framework.
- Use dependency injection to decouple the application code from the framework code. This allows the application code to use the framework's functionality without having to instantiate the framework objects directly.
- Avoid using framework-specific libraries or classes in the application code. This makes it easier to switch to a different framework in the future if needed.
- Use a standard interface for the application code to interact with the framework. This allows the application code to be written without the need to know the specifics of the framework.
- Keep the application and the framework code in separate projects and/or repositories.
By following these best practices, the system architecture will be more maintainable, testable, and less error-prone, and it will be easier to upgrade or switch the framework if needed.
Free resources to learn Keep Framework Code Distant
More in stage 3: Object Oriented Programming
- Object Oriented Programming
- Be consistent
- Meaningful names over comments
- Indentation and Code Style
- Keep methods / classes / files small
- Pure functions
- Minimize cyclomatic complexity
- Avoid passing nulls, booleans
- Use correct constructs
- Tests should be fast and independent
- Organize code by actor it belongs to
- Command query separation
- Keep it simple and refactor often
Keep Framework Code Distant: common questions
Can I learn Keep Framework Code Distant in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Keep Framework Code Distant in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Keep Framework Code Distant tutorial for beginners?
It is lesson 23 of 94 in the free Software Design and Architecture roadmap, in stage 3, Object Oriented Programming. If you are new to Software Design and Architecture, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.