You've hit on a fundamental distinction in computer science and software development, and it's a really important one to understand. You're contrasting two very different modes of work: Engineering and Research. Here's a breakdown of the differences, with examples, and how they manifest in software:
1. Engineering Systems (Known Action Chains - "Solution How")
- Characteristics:
- Well-Defined Problem: The goal is clear, and the requirements are relatively stable. We know what needs to be done.
- Known Techniques: We have established methods, algorithms, and tools to solve the problem. We know how to do it, even if the implementation is complex.
- Decomposability: The problem can be broken down into smaller, manageable sub-problems, each with a known solution or a clear path to one.
- Predictability: We can estimate effort, timelines, and risks with reasonable accuracy.
- Focus on Reliability, Scalability, Maintainability: The emphasis is on building a robust, efficient, and long-lasting solution.
- Iterative Refinement, not Discovery: Iteration is about improving the existing solution, not fundamentally changing the approach.
- Mental Model: "Build a bridge." We know the principles of bridge building, the materials, and the steps involved. The challenge is in the details of this specific bridge, but not in discovering how to build a bridge in the first place.
- Software Examples:
- Building a web application with standard CRUD operations (Create, Read, Update, Delete): We know how to build databases, APIs, user interfaces, and connect them.
- Implementing a well-defined algorithm (e.g., sorting, searching): The algorithm is known; the task is to implement it efficiently in code.
- Writing a compiler for a known language: The language specification is the blueprint.
- Developing a mobile app based on established design patterns: We're applying known solutions to a specific context.
- Automating a business process: The process is defined; we're automating the steps.
- Tools & Practices: Agile methodologies (Scrum, Kanban) are very effective here, as they focus on iterative delivery and responding to changing requirements within a known solution space. Testing, code reviews, CI/CD are crucial for ensuring quality.
2. Research-Heavy Tasks (Unknown Solution - "Solution What")
- Characteristics:
- Ill-Defined Problem: The goal might be broad or vague. We don't fully understand what a good solution looks like.
- Unknown Techniques: There are no established methods, or existing methods are inadequate. We need to discover how to solve the problem.
- Exploration & Experimentation: The process involves trying different approaches, often with a high degree of uncertainty. "Fail fast" is a key principle.
- Unpredictability: Effort, timelines, and risks are difficult to estimate. Breakthroughs can happen unexpectedly, or progress can stall.
- Focus on Novelty & Understanding: The emphasis is on learning something new and pushing the boundaries of knowledge.
- Iterative Discovery, not Refinement: Iteration is about exploring different solution spaces and refining the problem definition itself.
- Mental Model: "Discover a new material that's stronger than steel but lighter than aluminum." We don't know if such a material exists, or what its properties would be. We need to experiment with different combinations of elements and structures.
- Software Examples:
- Developing a new machine learning algorithm: Requires exploring different architectures, training methods, and loss functions.
- Creating a natural language processing system that can truly understand context: This is an open research problem.
- Building a system for automated code generation: Requires understanding the underlying principles of programming and how to translate high-level concepts into code.
- Designing a new programming language paradigm: Requires rethinking how we approach computation.
- Developing a system to solve a complex scientific problem (e.g., protein folding, climate modeling): Often involves creating new algorithms and computational techniques.
- Tools & Practices: Prototyping, experimentation, literature reviews, collaboration with researchers, and a willingness to abandon unproductive paths are essential. Formal methodologies are often less helpful, as the process is inherently exploratory. "Spikes" (time-boxed research tasks) are common. Documentation focuses on what was tried and why it didn't work as much as on successful results.
The "Sneak Abstractions" You Mention
This is a very insightful observation. In research, you often find yourself building things that don't directly contribute to the immediate goal, but:
- Help you understand the problem better: A simplified prototype can reveal hidden complexities.
- Explore potential solution spaces: A seemingly irrelevant abstraction might unlock a new approach.
- Provide a platform for future experimentation: A reusable component can accelerate future research.
- Force you to clarify your assumptions: Trying to implement an abstraction can expose flaws in your thinking.
These "sneak abstractions" are a sign that you're operating in a research mode, even if you're building software. They're valuable investments in learning and discovery.
The Gray Areas & Hybrid Approaches
The line between engineering and research isn't always clear. Many projects involve elements of both:
- Applied Research: Taking existing research and adapting it to a specific application. (e.g., using a new machine learning algorithm in a product).
- Technology Transfer: Moving a research prototype into a production environment.
- Innovation within Engineering: Finding creative solutions to well-defined problems. (e.g., optimizing a database query to improve performance).
In summary: Engineering is about applying known solutions. Research is about discovering new solutions. Recognizing which mode you're in is crucial for choosing the right tools, practices, and mindset. Your observation about "sneak abstractions" highlights the exploratory nature of research and the importance of being open to unexpected discoveries.