-
-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathindex.html
More file actions
513 lines (475 loc) · 41.8 KB
/
Copy pathindex.html
File metadata and controls
513 lines (475 loc) · 41.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Programming Best Practices — Your guide to writing better code</title>
<meta name="description" content="Curated best practices across 35+ languages and frameworks. Production-ready, community-driven, always updated." />
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet" />
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['IBM Plex Sans', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
},
}
}
}
</script>
<style>
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.fade-in { animation: fadeIn 0.6s ease-out both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
</style>
<script>
// Apply saved theme before paint to avoid flash
(function() {
const saved = localStorage.getItem('theme');
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
if (saved === 'dark' || (!saved && prefersDark)) document.documentElement.classList.add('dark');
})();
</script>
</head>
<body class="bg-slate-50 dark:bg-slate-950 text-slate-900 dark:text-slate-100 font-sans antialiased transition-colors duration-200">
<!-- Navbar -->
<nav class="fixed top-4 left-4 right-4 z-50 bg-white/90 dark:bg-slate-900/90 backdrop-blur border border-gray-200 dark:border-slate-700 rounded-xl px-5 py-3 flex items-center justify-between max-w-6xl mx-auto shadow-sm">
<a href="#" class="flex items-center gap-2 font-mono text-slate-900 dark:text-slate-100 text-sm">
<svg class="w-5 h-5 text-blue-600" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>
</svg>
<span class="font-semibold">best-practices</span>
</a>
<div class="hidden md:flex items-center gap-6 text-sm text-slate-500 dark:text-slate-400">
<a href="#categories" class="hover:text-slate-900 dark:hover:text-slate-100 transition-colors duration-200 cursor-pointer">Categories</a>
<a href="#features" class="hover:text-slate-900 dark:hover:text-slate-100 transition-colors duration-200 cursor-pointer">Features</a>
<a href="#faq" class="hover:text-slate-900 dark:hover:text-slate-100 transition-colors duration-200 cursor-pointer">FAQ</a>
</div>
<div class="flex items-center gap-2">
<!-- Dark mode toggle -->
<button id="theme-toggle" aria-label="Toggle dark mode"
class="w-9 h-9 flex items-center justify-center rounded-lg border border-gray-200 dark:border-slate-700 bg-white dark:bg-slate-800 text-slate-500 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-100 hover:border-gray-300 dark:hover:border-slate-600 transition-colors duration-200 cursor-pointer">
<!-- Sun icon (shown in dark mode) -->
<svg id="icon-sun" class="w-4 h-4 hidden dark:block" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>
</svg>
<!-- Moon icon (shown in light mode) -->
<svg id="icon-moon" class="w-4 h-4 block dark:hidden" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
</svg>
</button>
<a href="https://github.com/dereknguyen269/programing-best-practices" target="_blank" rel="noopener noreferrer"
class="flex items-center gap-2 bg-slate-900 dark:bg-slate-100 text-white dark:text-slate-900 text-sm font-medium px-4 py-2 rounded-lg hover:bg-slate-700 dark:hover:bg-slate-300 transition-colors duration-200 cursor-pointer">
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/>
</svg>
GitHub
</a>
</div>
</nav>
<!-- Hero -->
<section class="pt-32 pb-20 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto text-center">
<div class="fade-in">
<span class="inline-flex items-center gap-1.5 bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-400 text-xs font-mono font-medium px-3 py-1.5 rounded-full border border-blue-100 dark:border-blue-900 mb-6">
<span class="w-1.5 h-1.5 bg-blue-600 dark:bg-blue-400 rounded-full"></span>
170+ resources crawled · 35+ languages
</span>
</div>
<h1 class="fade-in delay-1 text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight tracking-tight mb-6">
Write better code.<br class="hidden sm:block" />
<span class="text-blue-600 dark:text-blue-400">Every language.</span>
</h1>
<p class="fade-in delay-2 text-lg text-slate-500 dark:text-slate-400 max-w-2xl mx-auto mb-10 leading-relaxed">
A curated knowledge base of programming best practices across 35+ languages and frameworks — hand-picked from industry leaders, production-ready, and always updated.
</p>
<div class="fade-in delay-3 flex flex-col sm:flex-row items-center justify-center gap-3">
<a href="https://github.com/dereknguyen269/programing-best-practices" target="_blank" rel="noopener noreferrer"
class="w-full sm:w-auto flex items-center justify-center gap-2 bg-blue-600 text-white font-semibold px-6 py-3 rounded-lg hover:bg-blue-700 transition-colors duration-200 cursor-pointer">
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/>
</svg>
Star on GitHub
</a>
<a href="#categories"
class="w-full sm:w-auto flex items-center justify-center gap-2 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 font-semibold px-6 py-3 rounded-lg border border-gray-200 dark:border-slate-700 hover:border-gray-300 dark:hover:border-slate-600 hover:bg-gray-50 dark:hover:bg-slate-700 transition-colors duration-200 cursor-pointer">
Browse Categories
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M5 12h14M12 5l7 7-7 7"/>
</svg>
</a>
</div>
<!-- Stats bar -->
<div class="mt-16 grid grid-cols-2 sm:grid-cols-4 gap-px bg-gray-200 dark:bg-slate-700 rounded-xl overflow-hidden border border-gray-200 dark:border-slate-700">
<div class="bg-white dark:bg-slate-900 px-6 py-5 text-center">
<div class="text-2xl font-bold font-mono">35+</div>
<div class="text-xs text-slate-500 dark:text-slate-400 mt-1">Languages</div>
</div>
<div class="bg-white dark:bg-slate-900 px-6 py-5 text-center">
<div class="text-2xl font-bold font-mono">170+</div>
<div class="text-xs text-slate-500 dark:text-slate-400 mt-1">Resources</div>
</div>
<div class="bg-white dark:bg-slate-900 px-6 py-5 text-center">
<div class="text-2xl font-bold font-mono">25+</div>
<div class="text-xs text-slate-500 dark:text-slate-400 mt-1">Categories</div>
</div>
<div class="bg-white dark:bg-slate-900 px-6 py-5 text-center">
<div class="text-2xl font-bold font-mono">CC0</div>
<div class="text-xs text-slate-500 dark:text-slate-400 mt-1">Public Domain</div>
</div>
</div>
</section>
<!-- Features -->
<section id="features" class="py-20 px-4 sm:px-6 lg:px-8 bg-white dark:bg-slate-900 border-y border-gray-100 dark:border-slate-800">
<div class="max-w-6xl mx-auto">
<p class="text-xs font-mono text-slate-500 dark:text-slate-400 uppercase tracking-widest mb-12 text-center">Why developers use this</p>
<div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="p-6 rounded-xl border border-gray-100 dark:border-slate-800 hover:border-gray-200 dark:hover:border-slate-700 hover:shadow-sm transition-all duration-200 cursor-default">
<div class="w-10 h-10 bg-blue-50 dark:bg-blue-950 rounded-lg flex items-center justify-center mb-4">
<svg class="w-5 h-5 text-blue-600 dark:text-blue-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M9 12l2 2 4-4"/><path d="M21 12c0 4.97-4.03 9-9 9s-9-4.03-9-9 4.03-9 9-9 9 4.03 9 9z"/>
</svg>
</div>
<h3 class="font-semibold mb-2">Curated Quality</h3>
<p class="text-sm text-slate-500 dark:text-slate-400 leading-relaxed">Hand-picked resources from Airbnb, Google, Uber, and other industry leaders — not random blog posts.</p>
</div>
<div class="p-6 rounded-xl border border-gray-100 dark:border-slate-800 hover:border-gray-200 dark:hover:border-slate-700 hover:shadow-sm transition-all duration-200 cursor-default">
<div class="w-10 h-10 bg-blue-50 dark:bg-blue-950 rounded-lg flex items-center justify-center mb-4">
<svg class="w-5 h-5 text-blue-600 dark:text-blue-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/>
</svg>
</div>
<h3 class="font-semibold mb-2">Production-Ready</h3>
<p class="text-sm text-slate-500 dark:text-slate-400 leading-relaxed">Practices that work in real-world applications, not just theory. Battle-tested by teams shipping at scale.</p>
</div>
<div class="p-6 rounded-xl border border-gray-100 dark:border-slate-800 hover:border-gray-200 dark:hover:border-slate-700 hover:shadow-sm transition-all duration-200 cursor-default">
<div class="w-10 h-10 bg-blue-50 dark:bg-blue-950 rounded-lg flex items-center justify-center mb-4">
<svg class="w-5 h-5 text-blue-600 dark:text-blue-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>
</svg>
</div>
<h3 class="font-semibold mb-2">Multi-Language</h3>
<p class="text-sm text-slate-500 dark:text-slate-400 leading-relaxed">Covers 35+ programming languages and frameworks — from Ruby and Python to Rust, Go, Svelte, and more.</p>
</div>
<div class="p-6 rounded-xl border border-gray-100 dark:border-slate-800 hover:border-gray-200 dark:hover:border-slate-700 hover:shadow-sm transition-all duration-200 cursor-default">
<div class="w-10 h-10 bg-blue-50 dark:bg-blue-950 rounded-lg flex items-center justify-center mb-4">
<svg class="w-5 h-5 text-blue-600 dark:text-blue-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 20h9"/><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"/>
</svg>
</div>
<h3 class="font-semibold mb-2">AI Editor Ready</h3>
<p class="text-sm text-slate-500 dark:text-slate-400 leading-relaxed">Works out of the box with Kiro, Claude Code, Cursor, Windsurf, and Antigravity via steering files and skills.</p>
</div>
<div class="p-6 rounded-xl border border-gray-100 dark:border-slate-800 hover:border-gray-200 dark:hover:border-slate-700 hover:shadow-sm transition-all duration-200 cursor-default">
<div class="w-10 h-10 bg-blue-50 dark:bg-blue-950 rounded-lg flex items-center justify-center mb-4">
<svg class="w-5 h-5 text-blue-600 dark:text-blue-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>
</svg>
</div>
<h3 class="font-semibold mb-2">BM25 Search</h3>
<p class="text-sm text-slate-500 dark:text-slate-400 leading-relaxed">Powerful local search across all crawled content. Find exactly what you need without leaving your editor.</p>
</div>
<div class="p-6 rounded-xl border border-gray-100 dark:border-slate-800 hover:border-gray-200 dark:hover:border-slate-700 hover:shadow-sm transition-all duration-200 cursor-default">
<div class="w-10 h-10 bg-blue-50 dark:bg-blue-950 rounded-lg flex items-center justify-center mb-4">
<svg class="w-5 h-5 text-blue-600 dark:text-blue-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/>
</svg>
</div>
<h3 class="font-semibold mb-2">Community-Driven</h3>
<p class="text-sm text-slate-500 dark:text-slate-400 leading-relaxed">Open to contributions from developers worldwide. CC0 licensed — use it however you want.</p>
</div>
</div>
</div>
</section>
<!-- Categories -->
<section id="categories" class="py-20 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto">
<div class="text-center mb-12">
<p class="text-xs font-mono text-slate-500 dark:text-slate-400 uppercase tracking-widest mb-3">What's covered</p>
<h2 class="text-3xl font-bold">Browse by category</h2>
</div>
<div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-4">
<a href="https://github.com/dereknguyen269/programing-best-practices#-backend-development" target="_blank" rel="noopener noreferrer"
class="group flex items-start gap-4 p-5 bg-white dark:bg-slate-900 rounded-xl border border-gray-200 dark:border-slate-800 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="w-9 h-9 bg-slate-50 dark:bg-slate-800 rounded-lg flex items-center justify-center shrink-0 group-hover:bg-blue-50 dark:group-hover:bg-blue-950 transition-colors duration-200">
<svg class="w-4 h-4 text-slate-500 dark:text-slate-400 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="2" y="2" width="20" height="8" rx="2"/><rect x="2" y="14" width="20" height="8" rx="2"/><line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/>
</svg>
</div>
<div>
<h3 class="font-semibold text-sm mb-1">Backend Development</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">Node.js, Python, Ruby, Rails, PHP, Go, Rust, Java, Kotlin, Elixir</p>
</div>
</a>
<a href="https://github.com/dereknguyen269/programing-best-practices#-frontend-development" target="_blank" rel="noopener noreferrer"
class="group flex items-start gap-4 p-5 bg-white dark:bg-slate-900 rounded-xl border border-gray-200 dark:border-slate-800 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="w-9 h-9 bg-slate-50 dark:bg-slate-800 rounded-lg flex items-center justify-center shrink-0 group-hover:bg-blue-50 dark:group-hover:bg-blue-950 transition-colors duration-200">
<svg class="w-4 h-4 text-slate-500 dark:text-slate-400 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="4 7 4 4 20 4 20 7"/><line x1="9" y1="20" x2="15" y2="20"/><line x1="12" y1="4" x2="12" y2="20"/>
</svg>
</div>
<div>
<h3 class="font-semibold text-sm mb-1">Frontend Development</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">HTML, CSS, JavaScript, TypeScript, React, Vue, Angular, Next.js</p>
</div>
</a>
<a href="https://github.com/dereknguyen269/programing-best-practices#️-database--data" target="_blank" rel="noopener noreferrer"
class="group flex items-start gap-4 p-5 bg-white dark:bg-slate-900 rounded-xl border border-gray-200 dark:border-slate-800 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="w-9 h-9 bg-slate-50 dark:bg-slate-800 rounded-lg flex items-center justify-center shrink-0 group-hover:bg-blue-50 dark:group-hover:bg-blue-950 transition-colors duration-200">
<svg class="w-4 h-4 text-slate-500 dark:text-slate-400 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>
</svg>
</div>
<div>
<h3 class="font-semibold text-sm mb-1">Database & Data</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">SQL, PostgreSQL, MySQL, NoSQL, MongoDB, Big Data</p>
</div>
</a>
<a href="https://github.com/dereknguyen269/programing-best-practices#-mobile-development" target="_blank" rel="noopener noreferrer"
class="group flex items-start gap-4 p-5 bg-white dark:bg-slate-900 rounded-xl border border-gray-200 dark:border-slate-800 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="w-9 h-9 bg-slate-50 dark:bg-slate-800 rounded-lg flex items-center justify-center shrink-0 group-hover:bg-blue-50 dark:group-hover:bg-blue-950 transition-colors duration-200">
<svg class="w-4 h-4 text-slate-500 dark:text-slate-400 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="5" y="2" width="14" height="20" rx="2"/><line x1="12" y1="18" x2="12.01" y2="18"/>
</svg>
</div>
<div>
<h3 class="font-semibold text-sm mb-1">Mobile Development</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">Flutter, Dart, React Native, Swift, Objective-C</p>
</div>
</a>
<a href="https://github.com/dereknguyen269/programing-best-practices#️-devops--infrastructure" target="_blank" rel="noopener noreferrer"
class="group flex items-start gap-4 p-5 bg-white dark:bg-slate-900 rounded-xl border border-gray-200 dark:border-slate-800 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="w-9 h-9 bg-slate-50 dark:bg-slate-800 rounded-lg flex items-center justify-center shrink-0 group-hover:bg-blue-50 dark:group-hover:bg-blue-950 transition-colors duration-200">
<svg class="w-4 h-4 text-slate-500 dark:text-slate-400 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M18 20V10"/><path d="M12 20V4"/><path d="M6 20v-6"/>
</svg>
</div>
<div>
<h3 class="font-semibold text-sm mb-1">DevOps & Infrastructure</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">AWS, Microservices, Security, API Security, DevSecOps</p>
</div>
</a>
<a href="https://github.com/dereknguyen269/programing-best-practices#-ai--data-science" target="_blank" rel="noopener noreferrer"
class="group flex items-start gap-4 p-5 bg-white dark:bg-slate-900 rounded-xl border border-gray-200 dark:border-slate-800 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="w-9 h-9 bg-slate-50 dark:bg-slate-800 rounded-lg flex items-center justify-center shrink-0 group-hover:bg-blue-50 dark:group-hover:bg-blue-950 transition-colors duration-200">
<svg class="w-4 h-4 text-slate-500 dark:text-slate-400 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 2a2 2 0 0 1 2 2c0 .74-.4 1.39-1 1.73V7h1a7 7 0 0 1 7 7h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1v1a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-1H2a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h1a7 7 0 0 1 7-7h1V5.73c-.6-.34-1-.99-1-1.73a2 2 0 0 1 2-2z"/>
</svg>
</div>
<div>
<h3 class="font-semibold text-sm mb-1">AI & Data Science</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">MLOps, LLM best practices, AI tools, ETL, responsible AI</p>
</div>
</a>
</div>
</section>
<!-- Featured Resources -->
<section class="py-20 px-4 sm:px-6 lg:px-8 bg-white dark:bg-slate-900 border-y border-gray-100 dark:border-slate-800">
<div class="max-w-6xl mx-auto">
<div class="text-center mb-12">
<p class="text-xs font-mono text-slate-500 dark:text-slate-400 uppercase tracking-widest mb-3">Must-reads</p>
<h2 class="text-3xl font-bold">Featured resources</h2>
</div>
<div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-4">
<a href="https://github.com/airbnb/javascript" target="_blank" rel="noopener noreferrer"
class="group p-5 bg-slate-50 dark:bg-slate-800 rounded-xl border border-gray-200 dark:border-slate-700 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="flex items-center gap-2 mb-3">
<span class="text-xs font-mono bg-amber-50 dark:bg-amber-950 text-amber-700 dark:text-amber-400 border border-amber-100 dark:border-amber-900 px-2 py-0.5 rounded">JavaScript</span>
</div>
<h3 class="font-semibold text-sm mb-1 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200">Airbnb JavaScript Style Guide</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">The gold standard for JavaScript coding conventions, used by thousands of teams worldwide.</p>
</a>
<a href="https://github.com/ryanmcdermott/clean-code-javascript" target="_blank" rel="noopener noreferrer"
class="group p-5 bg-slate-50 dark:bg-slate-800 rounded-xl border border-gray-200 dark:border-slate-700 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="flex items-center gap-2 mb-3">
<span class="text-xs font-mono bg-amber-50 dark:bg-amber-950 text-amber-700 dark:text-amber-400 border border-amber-100 dark:border-amber-900 px-2 py-0.5 rounded">JavaScript</span>
</div>
<h3 class="font-semibold text-sm mb-1 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200">Clean Code JavaScript</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">Software engineering principles adapted for JavaScript — readable, reusable, and refactorable code.</p>
</a>
<a href="https://github.com/ByteByteGoHq/system-design-101" target="_blank" rel="noopener noreferrer"
class="group p-5 bg-slate-50 dark:bg-slate-800 rounded-xl border border-gray-200 dark:border-slate-700 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="flex items-center gap-2 mb-3">
<span class="text-xs font-mono bg-purple-50 dark:bg-purple-950 text-purple-700 dark:text-purple-400 border border-purple-100 dark:border-purple-900 px-2 py-0.5 rounded">Architecture</span>
</div>
<h3 class="font-semibold text-sm mb-1 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200">System Design 101</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">Essential system design concepts explained with visuals — from ByteByteGo.</p>
</a>
<a href="https://12factor.net/" target="_blank" rel="noopener noreferrer"
class="group p-5 bg-slate-50 dark:bg-slate-800 rounded-xl border border-gray-200 dark:border-slate-700 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="flex items-center gap-2 mb-3">
<span class="text-xs font-mono bg-green-50 dark:bg-green-950 text-green-700 dark:text-green-400 border border-green-100 dark:border-green-900 px-2 py-0.5 rounded">DevOps</span>
</div>
<h3 class="font-semibold text-sm mb-1 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200">The Twelve-Factor App</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">Methodology for building modern, scalable, cloud-native applications.</p>
</a>
<a href="https://owasp.org/www-project-top-ten/" target="_blank" rel="noopener noreferrer"
class="group p-5 bg-slate-50 dark:bg-slate-800 rounded-xl border border-gray-200 dark:border-slate-700 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="flex items-center gap-2 mb-3">
<span class="text-xs font-mono bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-400 border border-red-100 dark:border-red-900 px-2 py-0.5 rounded">Security</span>
</div>
<h3 class="font-semibold text-sm mb-1 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200">OWASP Top 10</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">Critical security awareness for every developer — the most common web vulnerabilities.</p>
</a>
<a href="https://github.com/uber-go/guide/blob/master/style.md" target="_blank" rel="noopener noreferrer"
class="group p-5 bg-slate-50 dark:bg-slate-800 rounded-xl border border-gray-200 dark:border-slate-700 hover:border-blue-200 dark:hover:border-blue-800 hover:shadow-sm transition-all duration-200 cursor-pointer">
<div class="flex items-center gap-2 mb-3">
<span class="text-xs font-mono bg-cyan-50 dark:bg-cyan-950 text-cyan-700 dark:text-cyan-400 border border-cyan-100 dark:border-cyan-900 px-2 py-0.5 rounded">Go</span>
</div>
<h3 class="font-semibold text-sm mb-1 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200">Uber Go Style Guide</h3>
<p class="text-xs text-slate-500 dark:text-slate-400">Production-grade Go practices from Uber's engineering team.</p>
</a>
</div>
</div>
</section>
<!-- Quick Start -->
<section class="py-20 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto">
<div class="grid lg:grid-cols-2 gap-12 items-center">
<div>
<p class="text-xs font-mono text-slate-500 dark:text-slate-400 uppercase tracking-widest mb-4">Get started in seconds</p>
<h2 class="text-3xl font-bold mb-4">Works with your AI editor</h2>
<p class="text-slate-500 dark:text-slate-400 leading-relaxed mb-6">Install the BM25-powered skill into any project. Your AI editor automatically references best practices when you write or review code.</p>
<div class="space-y-3">
<div class="flex items-center gap-3">
<div class="w-5 h-5 bg-blue-50 dark:bg-blue-950 rounded-full flex items-center justify-center shrink-0">
<svg class="w-3 h-3 text-blue-600 dark:text-blue-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>
</div>
<span class="text-sm text-slate-500 dark:text-slate-400">Kiro, Claude Code, Cursor, Windsurf, Antigravity</span>
</div>
<div class="flex items-center gap-3">
<div class="w-5 h-5 bg-blue-50 dark:bg-blue-950 rounded-full flex items-center justify-center shrink-0">
<svg class="w-3 h-3 text-blue-600 dark:text-blue-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>
</div>
<span class="text-sm text-slate-500 dark:text-slate-400">Auto-crawls 150+ resources locally</span>
</div>
<div class="flex items-center gap-3">
<div class="w-5 h-5 bg-blue-50 dark:bg-blue-950 rounded-full flex items-center justify-center shrink-0">
<svg class="w-3 h-3 text-blue-600 dark:text-blue-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>
</div>
<span class="text-sm text-slate-500 dark:text-slate-400">Searchable offline — no API keys needed</span>
</div>
</div>
</div>
<div class="bg-slate-900 dark:bg-slate-950 rounded-xl p-6 font-mono text-sm overflow-x-auto border border-slate-800">
<div class="flex items-center gap-2 mb-4">
<div class="w-3 h-3 rounded-full bg-red-400"></div>
<div class="w-3 h-3 rounded-full bg-yellow-400"></div>
<div class="w-3 h-3 rounded-full bg-green-400"></div>
<span class="text-slate-500 text-xs ml-2">terminal</span>
</div>
<div class="space-y-2 text-slate-300">
<div><span class="text-slate-500"># Clone the repo</span></div>
<div><span class="text-green-400">$</span> git clone https://github.com/dereknguyen269/<span class="text-blue-300">programing-best-practices</span></div>
<div class="mt-3"><span class="text-slate-500"># Run quick setup</span></div>
<div><span class="text-green-400">$</span> ./scripts/quick-start.sh <span class="text-yellow-300">--full</span></div>
<div class="mt-3"><span class="text-slate-500"># Or install into your project</span></div>
<div><span class="text-green-400">$</span> python3 scripts/install-skill.py <span class="text-purple-300">~/my-app</span> --mode both</div>
<div class="mt-3 text-green-400 text-xs">✓ Dependencies installed</div>
<div class="text-green-400 text-xs">✓ 155 resources crawled</div>
<div class="text-green-400 text-xs">✓ BM25 index built</div>
<div class="text-green-400 text-xs">✓ Skill installed — ready</div>
</div>
</div>
</div>
</section>
<!-- FAQ -->
<section id="faq" class="py-20 px-4 sm:px-6 lg:px-8 bg-white dark:bg-slate-900 border-t border-gray-100 dark:border-slate-800">
<div class="max-w-3xl mx-auto">
<div class="text-center mb-12">
<p class="text-xs font-mono text-slate-500 dark:text-slate-400 uppercase tracking-widest mb-3">Common questions</p>
<h2 class="text-3xl font-bold">FAQ</h2>
</div>
<div class="space-y-4">
<details class="group bg-slate-50 dark:bg-slate-800 border border-gray-200 dark:border-slate-700 rounded-xl overflow-hidden">
<summary class="flex items-center justify-between px-6 py-4 cursor-pointer list-none hover:bg-gray-100 dark:hover:bg-slate-700 transition-colors duration-200">
<span class="font-medium text-sm">How often is this updated?</span>
<svg class="w-4 h-4 text-slate-500 dark:text-slate-400 group-open:rotate-180 transition-transform duration-200" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
</summary>
<div class="px-6 pb-4 text-sm text-slate-500 dark:text-slate-400 leading-relaxed border-t border-gray-200 dark:border-slate-700 pt-4">
Actively maintained and updated regularly. New resources are added as they emerge and outdated ones are removed. Check the "What's New" section in the README for recent additions.
</div>
</details>
<details class="group bg-slate-50 dark:bg-slate-800 border border-gray-200 dark:border-slate-700 rounded-xl overflow-hidden">
<summary class="flex items-center justify-between px-6 py-4 cursor-pointer list-none hover:bg-gray-100 dark:hover:bg-slate-700 transition-colors duration-200">
<span class="font-medium text-sm">Is this suitable for beginners?</span>
<svg class="w-4 h-4 text-slate-500 dark:text-slate-400 group-open:rotate-180 transition-transform duration-200" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
</summary>
<div class="px-6 pb-4 text-sm text-slate-500 dark:text-slate-400 leading-relaxed border-t border-gray-200 dark:border-slate-700 pt-4">
Yes. Resources are organized for all skill levels. Beginners should start with style guides for their primary language, while experienced developers can explore architecture, security, and performance sections.
</div>
</details>
<details class="group bg-slate-50 dark:bg-slate-800 border border-gray-200 dark:border-slate-700 rounded-xl overflow-hidden">
<summary class="flex items-center justify-between px-6 py-4 cursor-pointer list-none hover:bg-gray-100 dark:hover:bg-slate-700 transition-colors duration-200">
<span class="font-medium text-sm">Can I use this for my team?</span>
<svg class="w-4 h-4 text-slate-500 dark:text-slate-400 group-open:rotate-180 transition-transform duration-200" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
</summary>
<div class="px-6 pb-4 text-sm text-slate-500 dark:text-slate-400 leading-relaxed border-t border-gray-200 dark:border-slate-700 pt-4">
Absolutely. Many teams use this as a reference for establishing coding standards and onboarding. It's CC0 licensed — public domain, no restrictions.
</div>
</details>
<details class="group bg-slate-50 dark:bg-slate-800 border border-gray-200 dark:border-slate-700 rounded-xl overflow-hidden">
<summary class="flex items-center justify-between px-6 py-4 cursor-pointer list-none hover:bg-gray-100 dark:hover:bg-slate-700 transition-colors duration-200">
<span class="font-medium text-sm">How do I contribute?</span>
<svg class="w-4 h-4 text-slate-500 dark:text-slate-400 group-open:rotate-180 transition-transform duration-200" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
</summary>
<div class="px-6 pb-4 text-sm text-slate-500 dark:text-slate-400 leading-relaxed border-t border-gray-200 dark:border-slate-700 pt-4">
Open a pull request with your suggested resource. Read the Contributing Guidelines in the repo first. You can also report broken links, suggest improvements, or start a GitHub Discussion.
</div>
</details>
</div>
</div>
</section>
<!-- CTA -->
<section class="py-20 px-4 sm:px-6 lg:px-8">
<div class="max-w-2xl mx-auto text-center">
<h2 class="text-3xl font-bold mb-4">Start writing better code today</h2>
<p class="text-slate-500 dark:text-slate-400 mb-8">Free, open source, and ready to use. No sign-up required.</p>
<div class="flex flex-col sm:flex-row items-center justify-center gap-3">
<a href="https://github.com/dereknguyen269/programing-best-practices" target="_blank" rel="noopener noreferrer"
class="w-full sm:w-auto flex items-center justify-center gap-2 bg-blue-600 text-white font-semibold px-6 py-3 rounded-lg hover:bg-blue-700 transition-colors duration-200 cursor-pointer">
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/>
</svg>
View on GitHub
</a>
<a href="https://github.com/dereknguyen269/programing-best-practices/discussions" target="_blank" rel="noopener noreferrer"
class="w-full sm:w-auto flex items-center justify-center gap-2 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 font-semibold px-6 py-3 rounded-lg border border-gray-200 dark:border-slate-700 hover:border-gray-300 dark:hover:border-slate-600 hover:bg-gray-50 dark:hover:bg-slate-700 transition-colors duration-200 cursor-pointer">
Join the discussion
</a>
</div>
</div>
</section>
<!-- Footer -->
<footer class="border-t border-gray-100 dark:border-slate-800 py-8 px-4 sm:px-6 lg:px-8">
<div class="max-w-6xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-4 text-xs text-slate-500 dark:text-slate-400">
<div class="flex items-center gap-2 font-mono">
<svg class="w-4 h-4 text-blue-600 dark:text-blue-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>
</svg>
<span>Programming Best Practices</span>
</div>
<div class="flex items-center gap-6">
<a href="https://github.com/dereknguyen269/programing-best-practices" target="_blank" rel="noopener noreferrer" class="hover:text-slate-900 dark:hover:text-slate-100 transition-colors duration-200 cursor-pointer">GitHub</a>
<a href="https://github.com/dereknguyen269/programing-best-practices/blob/main/contributing.md" target="_blank" rel="noopener noreferrer" class="hover:text-slate-900 dark:hover:text-slate-100 transition-colors duration-200 cursor-pointer">Contributing</a>
<a href="https://github.com/dereknguyen269/programing-best-practices/blob/main/LICENSE" target="_blank" rel="noopener noreferrer" class="hover:text-slate-900 dark:hover:text-slate-100 transition-colors duration-200 cursor-pointer">CC0 License</a>
</div>
<span>Made with care by developers, for developers</span>
</div>
</footer>
<script>
document.getElementById('theme-toggle').addEventListener('click', function() {
const html = document.documentElement;
const isDark = html.classList.toggle('dark');
localStorage.setItem('theme', isDark ? 'dark' : 'light');
});
</script>
</body>
</html>