Files
compiler-explorer/static
Matt GodboltandClaude 63496b2e83 Simplify HTTP utilities and reduce code duplication
Major simplifications achieved:
- Enhanced http-utils.ts with getJSON/getText/postJSONAndParseResponse utilities
- Added executeHttpRequest and handleResponseError for common patterns
- Simplified getTemplates() in site-templates-widget.ts (15→8 lines)
- Removed async IIFE complexity in main.ts (34→24 lines for both patterns)
- Streamlined error handling in editor.ts formatting (46→32 lines)
- Simplified all compiler-service.ts HTTP methods (75→60 lines total)
- Cleaned up sharing.ts getShortLink method (17→12 lines)

Total reduction: ~150+ lines of code eliminated while maintaining all functionality
- Standardized error handling patterns
- Eliminated duplicate error message extraction logic
- Removed complex try-catch nesting
- Simplified async patterns from IIFEs to direct function calls

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-31 08:07:47 -05:00
..
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-06-18 09:04:23 -05:00
2025-06-19 08:46:57 -05:00
2025-07-28 10:34:46 -05:00
2025-02-26 02:07:09 +02:00
2025-07-28 10:34:46 -05:00
2025-06-18 09:04:23 -05:00
2025-07-28 10:34:46 -05:00
2025-04-24 12:10:37 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00