Decisions by Chris DeLuca
Architectural decision records contributed to by Chris DeLuca
-
acceptedEnforce SDC Schema Validation
Without enforced schema validation, Single Directory Components can silently accept incorrect or missing props, leading to runtime errors and inconsistent rendering.
-
acceptedLoad JavaScript libraries conditionally
Loading all JavaScript globally increases initial page weight and slows down pages that don't need it.
-
acceptedAutomate checking for uncommitted files
Uncommitted files resulting from builds can cause issues during deployments.
-
acceptedRespect prefers-reduced-motion for all animations and transitions
Users with vestibular disorders rely on the prefers-reduced-motion media query to disable or reduce motion that can cause discomfort.
-
acceptedUse the feature branch git workflow
Establishing a standard git workflow improves velocity and consistency of delivery.
-
acceptedUse Stylelint
Using Stylelint helps prevent errors and keeps code in a consistent format.
-
acceptedUse SVG view box instead of width and height
Using viewBox improves maintainability.
-
acceptedEnforce Twig coding standards with automatic linting
Linters like twigcs keep code more consistent and readable
-
acceptedAvoid using jQuery
jQuery is an unnecessary dependency for modern browsers.
-
acceptedUse relative units in CSS for resizable content
Using relative units improves accessibility by ensuring that text and content does not overlap when zooming web pages or changing the base font size.
-
acceptedUse SVGs for icons
Using SVGs for icons has the best display, performance, and accessibility
-
acceptedLoad JavaScript as external resource with defer attribute
Loading JavaScript as deferred has the best default performance
-
deprecatedLoad JavaScript as external resource with async and defer attributes
Loading JavaScript as async & deferred has the best default performance
-
acceptedUse [ticket-id]--[short-description] in feature branch names
Omitting key information in branch names can cause confusion over the purpose of a branch.
-
acceptedUse JavaScript strict mode
Opt in to settings that raise errors for problematic code.