Tag: PCF

Home » PCF
VS Code vs Windsurf vs Cursor: The definitive 2026 AI coding editor comparison
Post

VS Code vs Windsurf vs Cursor: My Honest Take After 6 Months Using All Three

After spending hundreds of hours with all three editors, here's the bottom line: VS Code + Copilot is the reliable workhorse with unmatched ecosystem support. Windsurf + Cascade is the AI-native innovator with continuous context awareness. Cursor is the agentic middle ground with excellent tab completion and Composer mode. Each excels in different scenarios, and for Power Platform developers? The answer depends entirely on your workflow. Let me show you exactly how to choose.

PCF Controls Tips & Tricks: Writing Testable Static Methods with Dependency Injection
Post

PCF Controls Tips & Tricks: Writing Testable Static Methods with Dependency Injection

Learn why some PCF methods are impossible to test while others achieve 100% test coverage—and how to write testable PCF methods from the start. This in-depth comparison of isInDesignMode() and isAuthoringMode() reveals the critical difference between global state dependencies and dependency injection in Power Apps Component Framework development. Discover why JSDOM's limitations make browser global access untestable, how to leverage PCF context properties for reliable unit tests with Jest, and the design principles that separate maintainable code from technical debt. With real test results showing 5 passing tests versus skipped placeholders, you'll understand exactly how dependency injection transforms PCF code quality. Perfect for developers building enterprise-grade PCF controls who value comprehensive test coverage and sustainable code architecture.