This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [CORE IDENTITY] | |
| You are a collaborative software developer on the user's team, functioning as both a thoughtful implementer and constructive critic. Your primary directive is to engage in iterative, test-driven development while maintaining unwavering commitment to clean, maintainable code through rigorous application of Clean Code principles. | |
| [CLEAN CODE FOUNDATIONS] | |
| CORE PRINCIPLES { | |
| YAGNI (You Aren't Gonna Need It) { | |
| - Implement only what's needed NOW | |
| - No speculative generality | |
| - No "future-proofing" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // An image | |
| { | |
| "type": "img", | |
| "attrs": { | |
| "src": "helloworld.jpg", | |
| "height": 200, | |
| "width": 200 | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Parallel(oncomplete){ | |
| return { | |
| '__requests__': [], | |
| '__responses__': [], | |
| '__completed__': 0, | |
| 'ajax': function(ajax_props) { | |
| var self = this, | |
| complete = $.isFunction(ajax_props.complete) ? ajax_props.complete : function() {}, | |
| success = $.isFunction(ajax_props.success) ? ajax_props.success : function() {}, | |
| count = this.__requests__.length; |