Built for modern developers
Sharing real-world code examples, best practices, and lessons learned
from building applications that scale.
Real-world examples
Code that actually works in production
Best practices
Lessons learned from years of development
Open source mindset
Sharing knowledge to help others grow
// Astro component with dynamic content
---
import { getCollection } from 'astro:content';
// Fetch all blog posts at build time
const posts = await getCollection('blog');
const latest = posts.sort(
(a, b) => b.data.pubDate - a.data.pubDate
).slice(0, 5);
---
<div class="grid gap-6">
{latest.map((post) => (
<a href={`/blog/${post.slug}`}>
<h3>{post.data.title}</h3>
<p>{post.data.description}</p>
</a>
))}
</div>