Contents
AI Models: They Are Not All the Same!
Now to the topic that brought me here: AI models. People often say “GPT-4 is best”, “Claude is best” or “Gemini is best”.
The truth: Each is best at something different.
My AI strategy
I currently use several AI models for different purposes:
Claude (Sonnet 4) → Programming, complex reasoning
GPT-4 → Graphics, creativity, research
Gemini → Long contexts, YouTube analysis
Local LLMs (Ollama/Qwen) → Privacy-sensitive tasks, offline workNot because I am indecisive, but because each is best at what it was optimized for.
Claude: programming and analytical thinking
Why I use Claude for coding:
1. Deep contextual understanding
Me: "Refactor this service to use reactive programming"
Claude:
- Analyzes the whole service
- Understands Spring WebFlux patterns
- Suggests the correct Mono/Flux implementation
- Considers error handling
- Adds testsResult: Production-ready code needing minimal changes.
2. Iterative problem solving
Me: "This query is slow"
Claude:
1. Analyzes the query
2. Explains the bottleneck
3. Suggests three solutions
4. Implements the best one
5. Creates a benchmarkResult: I do not have to explain the problem ten times.
3. Following best practices
Me: "Create a REST endpoint"
Claude:
- Uses the correct HTTP methods
- Implements the DTO pattern
- Adds input validation
- Correct error handling
- Unit + integration testsResult: Code follows my standards without my having to specify them.
Real-world example: reactive refactoring
Task: Refactor blocking code to reactive.
With GPT-4:
Attempt 1: Used .block() everywhere (wrong)
Attempt 2: Mixed blocking and reactive (wrong)
Attempt 3: Reactive, but poor error handling
Attempt 4: Finally correct
Time: ~30 minutesWith Claude:
Attempt 1: Correct reactive implementation
- Proper Mono/Flux usage
- Correct error handling
- No blocking calls
Time: ~5 minutesDifference: Claude understands reactive programming out of the box.
GPT-4: graphics, creativity and research
Why I use GPT-4 for other tasks:
1. DALL-E integration
Me: "Create a logo for an AI startup"
GPT-4:
- Proposes three concepts
- Generates images using DALL-E
- Explains design choicesClaude: No image-generation integration.
2. Learning foreign languages
Me: "Help me learn German"
GPT-4:
- Interactive conversations
- Grammar corrections
- Explanations of rules
- Exercises with immediate feedbackResult: Better conversational ability.
3. Academic research
Me: "Summarize recent RAG research papers"
GPT-4:
- Web search for current papers
- Information synthesis
- Comparison of approachesResult: A quick overview of the current state.
Gemini: long contexts and multimodal tasks
Why I use Gemini:
1. Extra-long context window
Me: "Analyze this 100-page PDF document"
Gemini:
- Processes the entire document at once
- Finds patterns across all pages
- Comprehensive summaryClaude/GPT: I need to divide the document into chunks.
2. YouTube analysis
Me: "Summarize this two-hour tech talk"
Gemini:
- Processes the full video
- Extracts key points
- Creates timestampsResult: Saves two hours of viewing.
3. Multimodal tasks
Me: "Compare these three architecture diagrams"
Gemini:
- Recognizes all three images
- Compares patterns
- Suggests improvementsProblem: It does not yet handle extensive coding context as well as Claude.
Local LLMs: privacy, offline work and cost-effectiveness
Local models add another dimension to an AI strategy.
Why do we need local LLMs?
Scenarios where cloud APIs are insufficient:
Privacy-sensitive data:
Offline work:
Cost optimization:
Latency:
Ollama: Docker for LLMs
What Ollama is:
# Simple installation
curl -fsSL https://ollama.ai/install.sh | sh
# Download a model
ollama pull llama3.2
# Run
ollama run llama3.2
# API server
ollama serveWhy I love Ollama:
# 1. Simplicity
# Download, run, done. No complex configuration.
# 2. Multi-model management
ollama pull codellama
ollama pull mistral
ollama pull qwen2.5-coder
# 3. REST API out-of-the-box
curl http://localhost:11434/api/generate -d '{
"model": "llama3.2",
"prompt": "Explain recursion"
}'
# 4. Model switching
ollama run codellama # For coding
ollama run llama3.2 # For general tasks
ollama run qwen2.5-coder # For advanced codingQwen-Coder: specialization in code
Why Qwen-Coder stands out:
# Download
ollama pull qwen2.5-coder:7b
# Run
ollama run qwen2.5-coder:7bUse cases where Qwen-Coder excels:
1. Code refactoring
# Me: "Refactor this Python code"
# Before:
def process(data):
result = []
for item in data:
if item['status'] == 'active':
if item['score'] > 80:
result.append(item)
return result
# Qwen-Coder suggests:
def process(data: List[Dict]) -> List[Dict]:
return [
item for item in data
if item.get('status') == 'active' and item.get('score', 0) > 80
]Advantage: It understands Pythonic patterns, type hints and best practices.
2. Bug fixing
Me: "Why does this code throw NullPointerException?"
@GetMapping("/users/{id}")
public User getUser(@PathVariable Long id) {
return userRepository.findById(id).get(); // NPE risk!
}
Qwen-Coder:
"Problem: .get() throws NoSuchElementException when user not found.
Fixed version:
@GetMapping("/users/{id}")
public ResponseEntity<User> getUser(@PathVariable Long id) {
return userRepository.findById(id)
.map(ResponseEntity::ok)
.orElse(ResponseEntity.notFound().build());
}3. Documentation generation
// Me: "Generate JSDoc for this code"
function calculateDiscount(price, customerType, isHoliday) {
let discount = 0;
if (customerType === 'premium') discount = 0.2;
if (isHoliday) discount += 0.1;
return price * (1 - discount);
}
// Qwen-Coder:
/**
* Calculates final price after applying discounts
* @param {number} price - Original price before discount
* @param {'premium'|'regular'} customerType - Customer tier
* @param {boolean} isHoliday - Whether holiday discount applies
* @returns {number} Final price after discounts
* @example
* calculateDiscount(100, 'premium', true); // 70
*/My local LLM setup
Hardware:
CPU: AMD Ryzen 9
RAM: 256GB (minimum 16GB)
GPU: RTX 4090CPU: Apple M4 Pro
RAM: 64GB (minimum 16GB)Models in rotation:
# General tasks
ollama pull llama3.2:8b # ~4.7GB
ollama pull mistral:7b # ~4.1GB
# Coding tasks
ollama pull qwen2.5-coder:7b # ~4.7GB
ollama pull codellama:13b # ~7.4GB
# Lightweight for quick responses
ollama pull phi3:mini # ~2.2GBWorkflow integration:
# VS Code extension
# Ollama Code Assistant - direct queries from the editor
# Terminal helper
alias ai='ollama run qwen2.5-coder:7b'
# Usage
ai "Explain this bash script"Privacy use case: confidential code review
Problem: You want to review company code without sending it to the cloud.
Solution:
# 1. Start Ollama locally
ollama serve
# 2. Code review script
#!/bin/bash
cat YourConfidentialService.java | ollama run qwen2.5-coder:7b \
"Review this code for:
- Security issues
- Performance problems
- Best practice violations
- Suggest improvements"Benefits:
- ✅ Code never leaves your computer
- ✅ No API key leaks
- ✅ Unlimited reviews
- ✅ Immediate feedback
Cost optimization use case
Scenario: You are experimenting with prompt engineering for a RAG system.
With Claude API:
1000 experiments × $0.015/request = $15
10,000 experiments = $150
100,000 experiments = $1500 😱With local Ollama:
Hardware cost: $0 (you already have a PC)
Electricity: ~$0.50/day
Unlimited experiments: $0
Savings: 100%When to use cloud versus local LLMs
Cloud LLMs (Claude, GPT-4, Gemini):
- ✅ Production-critical code
- ✅ Complex reasoning
- ✅ Latest capabilities
- ✅ Large context windows
- ✅ Multimodal tasks
Local LLMs (Ollama, Qwen):
- ✅ Confidential data
- ✅ Offline work
- ✅ Experimentation
- ✅ Cost optimization
- ✅ Low-latency answers
- ✅ Simple coding tasks
Hybrid strategy (recommended)
# Morning: Planning (cloud)
Claude: "Design an architecture for a RAG system"
# Development: Coding (local)
Qwen-Coder: "Implement embedding generation"
Qwen-Coder: "Write unit tests"
Qwen-Coder: "Refactor this function"
# Review: Quality check (cloud)
Claude: "Final code review for production deployment"
# Documentation: Generate (local)
Qwen-Coder: "Generate API documentation"Benefit: Cloud for critical decisions, local models for routine tasks: the best of both worlds.
Practical AI strategy
Here is my typical development day.
Morning: planning
# GPT-4: Research
"What are the best practices for WebSocket scaling?"
# Claude: Technical design
"Design a real-time notification system"Midday: development
# Local Qwen-Coder: Quick coding tasks
"Implement a helper function"
"Write a unit test"
"Refactor this code"
# Claude: Complex implementation
"Implement a complete WebSocket handler with reconnection logic"
"Refactor the service layer"Afternoon: creative and analysis work
# GPT-4: Graphics and docs
"Create a documentation diagram"
"Write a README for this project"
# Gemini: Long-form analysis
"Analyze all code reviews from last month"
# Local Ollama: Privacy-sensitive
"Review this confidential business logic"Cost versus value (updated with local LLMs)
Monthly costs: Claude Pro $20, GPT-4 Plus $20, Gemini Advanced $20, local Ollama $0 plus about $5 electricity: ~$65/month total.
ROI: About 140 hours saved per month × $50/hour = $7,000; 107× ROI. Of this, cloud LLMs save 100 hours and local LLMs save an additional 40 through experiments and offline work.
Why technology agnosticism works
Flexibility:
Adaptability:
Better solutions:
Team growth:
Competitive advantage:
How to become technology agnostic
1. Stop tribal loyalty
# ❌ BAD
"I am a React developer; I use React everywhere"
# ✅ GOOD
"I am a frontend developer; I use the best tool for the job"2. Experiment
# Every month
- Try a new framework or language
- Build a small project
- Compare it with what you use3. Focus on problems, not tools
# ❌ BAD thinking
"I want to learn Rust"
# ✅ GOOD thinking
"I have a performance problem; which tools solve it?"4. Follow multiple ecosystems
# Diversify sources
- React community
- Vue community
- Svelte community
- Plain JS community5. Pragmatism > ideology
# Always ask
1. Does it solve the problem effectively?
2. Can I find people who know it?
3. Is it maintainable?
4. Is it cost-effective?Conclusion: diversity is strength
Technology fanaticism is a luxury you cannot afford. In the real world, problems differ, budgets and talent pools are limited, and time is critical.
A pragmatic engineer chooses the best tool for the task, considers real constraints, uses multiple technologies and focuses on results rather than sentiment.
For AI models: Claude for complex programming, GPT-4 for creativity and research, Gemini for long contexts, and Ollama/Qwen for privacy and offline work.
This is not indecision. It is strategy. The question is not “Which technology is best?” but “Which technology is best for THIS problem?”
Written by a Platform Architect and pragmatic polyglot developer with 10+ years of experience, using 20+ programming languages and frameworks, four cloud platforms (AWS, Azure, GCP, IBM Cloud), four AI models (Claude, GPT-4, Gemini, local LLMs) and RAG systems.
Not because I cannot decide, but because every problem deserves the right solution. Stop fighting the war of the worlds. Start solving problems.