Search
Lessons (9)
- Comments & Formatting
Good code explains WHAT and HOW by itself; comments should explain WHY. Plus the formatting habits that make …
- Collaborative Document Editing & Real-Time Sync
… a comment's anchor is stored, because a comment must survive. Both use stable character IDs rather than …
- Frontend Security
… posts a comment hiding an img tag with an onerror script V- S: opens the page S-- V …
- Meaningful Names
… Use deleteAllRecords() . Key takeaways - A good name removes the need for a comment. - Nouns for things, verbs for …
- CI/CD and Reviewed Production Changes
… Do not turn a pull-request title or comment into executable shell commands. Use OIDC federation and protected …
- Code Smells & Refactoring
… Fix (refactoring) --- --- --- --- 1 Long function 80+ lines, many comments splitting sections Extract Function 2 Large class UserManager with …
- Design a Social Media Feed
… Including the ID breaks ties when two posts have the same time. Other details - Likes and comments live …
- Design a Ride-Sharing Service
… a comment on revision 2 is out of date. The fix in three rules Rule 1: Use the …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… cat distribution.json <<EOF { "CallerReference": "$BUCKET-$(date +%s)", "Comment": "Assets for $BUCKET", "Enabled": true, "Origins": { "Quantity": 1, "Items …