Posts Tagged ‘WebDevelopment’
[PyConUS2026] Fall in Love with CSS: Reclaiming a Declarative Language for Modern Web Development
Lecturer
Piper Thunstrom is a long-standing participant in the Python community, a frequent conference speaker, an open-source maintainer, and a practicing web developer. She serves as one of the primary maintainers of PursuedPyBear (commonly abbreviated PPB), an education-oriented game engine implemented entirely in Python, and is co-founder of Tea House Hosting, a service designed to restore simplicity to static site hosting. Her professional trajectory includes freelance web development beginning in 2014 and later roles as a staff engineer. She regularly addresses topics that span community building, game development with Python, and practical aspects of contemporary web technologies.
Public resources associated with her work include the personal site https://piper.thunstrom.dev, a Bluesky presence, the GitHub account pathunstrom, the Tea House Hosting platform at https://teahouse.cafe, and the educational project Steal This Website at https://stealthiswebsite.art. The latter offers pre-constructed layouts under open terms so that learners may examine and adapt real examples.
Abstract
This article provides a detailed examination of Piper Thunstrom’s presentation on the conceptual foundations and recent evolution of Cascading Style Sheets. It positions CSS as a declarative language whose behavior is governed by transparent, learnable rules rather than opaque magic. The discussion covers the document model, the anatomy of rule sets, the full cascade including origin and specificity, media queries, custom properties, native nesting, modern color systems, and the two principal layout models—Flexbox and Grid. Cultural attitudes that have historically discouraged deep engagement with CSS receive critical attention, and practical patterns for responsive design without heavy frameworks are illustrated.
Understanding CSS as a Declarative System and the Mechanics of the Cascade
For many software engineers, Cascading Style Sheets occupy a peripheral status. The language is frequently treated as an unavoidable ancillary technology, the subject of jokes, and the target of successive generations of frameworks and preprocessors whose primary selling point is the reduction of direct contact with CSS itself. Thunstrom begins by rejecting that framing. She invites the audience to regard CSS as a declarative language comparable to SQL: the author states the desired visual outcome, and the browser’s rendering engine determines an efficient way to realize it. The translation rules that convert declarations into pixels are systematic and therefore capable of being mastered.
CSS operates on documents. A typical HTML document contains a hierarchy of elements. Those elements fall into two principal categories. Block-level elements generate boxes that participate in the block axis (top-to-bottom in languages that use horizontal writing systems) and ordinarily expand to fill the available inline size. Inline-level elements generate boxes that flow along the inline axis (left-to-right in English) and wrap when necessary. The most generic block element is the div; the most generic inline element is the span. Contemporary practice favors semantic elements over generic containers, yet a thorough treatment of semantic markup lies outside the scope of a single presentation.
The atomic unit of author-written CSS is the rule set. A rule set consists of a selector followed by a declaration block delimited by curly braces. Inside the block appear one or more property declarations, each formed by a property name, a colon, a value or list of values, and a terminating semicolon. Values may be simple keywords or lengths, comma-separated lists of related tokens (as in font-family), or complex shorthand values that compress several related longhand properties into a single statement. Should any individual declaration prove invalid—whether because of an unrecognized property name, an incorrect value type, or a missing semicolon that merges two properties—the browser discards only the faulty declaration and continues to apply every remaining valid declaration in the same block.
Selectors determine which elements receive the declarations. Basic selectors include type selectors that match element names, class selectors introduced by a period, and ID selectors introduced by a hash. Compound selectors combine several basic selectors without intervening combinators, thereby requiring an element to satisfy multiple conditions simultaneously. Complex selectors join simple or compound selectors with combinators; the most common combinator is the space character, which denotes the descendant relationship. Other combinators express direct-child, adjacent-sibling, and general-sibling relationships. Attribute selectors enclosed in square brackets match the presence or specific values of HTML attributes. Pseudo-classes, written with a single colon, select elements according to state or structural position. Pseudo-elements, written with a double colon, generate or target fragments that do not exist as independent elements in the document tree, such as ::before and ::after. Finally, a comma-separated list of selectors functions as a logical disjunction: the declarations apply if any of the listed selectors match. An important caveat is that an invalid selector anywhere in the list renders the entire rule set inert.
The cascade is the algorithm that resolves conflicts when multiple rule sets claim the same element. The first filter is relevance: only rule sets whose selectors actually match the element under consideration are retained. Surviving rule sets are then ordered by origin. Author styles (those written by the site developer) outrank user styles (historically supplied by the visitor for accessibility customization) which in turn outrank the user-agent styles that constitute the browser’s default presentation. Within the author origin, cascade layers may further subdivide priority, although a full treatment of layers exceeds the time available in the talk. Specificity supplies the next ordering criterion. Specificity is conventionally represented as a three-component tuple. The first component counts ID selectors, the second counts class selectors, attribute selectors, and pseudo-classes, and the third counts type selectors and pseudo-elements. Comparison proceeds component-wise from left to right; a higher value in an earlier component decides the contest regardless of later components. Combinators themselves do not increment any specificity component, yet every simple selector they connect does contribute. The !important flag inverts the normal origin order and should be employed only as a last resort; the preferred alternatives are carefully layered cascade layers and consistently low-specificity author styles that remain easy to override with modest increases in specificity.
Media queries, an older yet still essential feature, allow entire groups of rule sets to be activated or deactivated according to characteristics of the output medium or the user’s preferences. Queries may test media type (screen or print) and features such as minimum or maximum viewport width, preferred color scheme, and reduced-motion settings. The :root pseudo-class selects the document’s root element—almost always the html element—with a specificity of (0,1,0), slightly higher than a bare type selector. It therefore serves as a convenient and slightly sticky location for the declaration of default custom properties.
Modern Capabilities: Variables, Nesting, Color, and Layout
Custom properties, officially known as CSS variables, are any property whose name begins with two hyphens. Their values may be any syntactically valid CSS value, they inherit by default, and they are retrieved by means of the var() function. Because inheritance walks the document tree, a custom property declared on an ancestor is visible to all descendants unless overridden closer to the element. Placing a set of default custom properties on :root therefore establishes a global theme that any subtree may refine. The var() function may itself appear inside other functions such as calc(), permitting arithmetic composition of custom values.
Native nesting, long a feature of preprocessors, is now part of the CSS standard. An outer rule set is termed the parent; any rule sets written inside its declaration block are children. The selectors of child rules are automatically combined with the parent selector, most often by inserting a descendant combinator. The nesting selector & makes the combination explicit and permits the construction of compound selectors or the repositioning of the parent selector to the end of a complex selector. The resulting syntax remains compact while preserving the cascade’s ordinary specificity rules.
Color management has advanced markedly. The color-scheme property informs the browser which color schemes the page supports; the order of the keywords conveys author preference. When only the scheme is declared and no explicit colors are supplied, the browser may automatically adapt its own user-agent styles. The light-dark() function accepts two values and resolves to one or the other according to the active scheme, eliminating the need for a separate media query in many common cases. By storing both the light and dark values inside custom properties declared on :root and then applying those properties via the universal selector, an author can establish a coherent theme for the entire document. Re-declaring the same custom properties on a subtree instantly re-themes that portion of the page. Newer color spaces such as OKLCH and OKLab are designed so that equal numerical distances correspond more closely to equal perceptual differences. Relative color syntax further allows extraction of individual channels from an existing color and the construction of derived colors through arithmetic or replacement of those channels.
Layout is the domain in which modern CSS most dramatically reduces historical complexity. Flexbox supplies a one-dimensional model. Setting display: flex on a container causes its children to become flex items. The flex-direction property chooses the main axis (row or column, optionally reversed). justify-content distributes free space along the main axis; useful values include space-between and space-around. align-items controls alignment on the cross axis and is the reliable answer to the perennial question of vertical centering. When multiple lines of flex items appear, align-content governs the distribution of those lines. The flex-wrap property determines whether items may wrap; omitting an explicit wrap value is a frequent source of unexpected single-line compression.
Grid supplies the complementary two-dimensional model. After display: grid, the author defines the track structure with grid-template-rows and grid-template-columns. The optional grid-template-areas property assigns names to rectangular regions of the grid; those names must form contiguous, non-overlapping rectangles. Children are then placed by setting grid-area to the corresponding name. Because the visual structure is expressed declaratively in the template, responsive redesign often reduces to the redefinition of only the track sizes and the area map at successive breakpoints. A mobile-first approach leaves elements in ordinary document flow; a medium breakpoint activates Grid with a modest number of columns; a larger breakpoint merely adjusts the column tracks and rewrites the area template. The resulting style sheet remains short, readable, and free of the deep nesting of presentational wrappers that many component frameworks impose.
Thunstrom’s own preferred pattern for responsive Grid layouts illustrates the economy of the approach. The same three content regions—header, main, and footer—can be arranged as a single column on small screens, a two-column intermediate layout, and a three-column wide layout solely by changing the template definitions. No additional markup is required, and the cascade continues to operate in its ordinary fashion.
Cultural attitudes receive explicit treatment. The phrase “contempt culture,” introduced in a blog post approximately a decade earlier, describes the social practice of dismissing technologies or communities that fall outside a currently prestigious narrative. Within the Python community one occasionally hears the claim that Python is “just a learning language”; analogous dismissals have long been directed at CSS. Thunstrom regards such contempt as corrosive. CSS is a capable language whose feature set has expanded substantially over the past fifteen years. Mastery of its rules restores direct expressive power to developers who had previously felt obliged to route every visual decision through the abstractions of a framework.
Two short code examples demonstrate the practical outcome of the techniques discussed. The first shows a progressive Grid layout; each line is kept under the required character limit:
.container {
display: grid;
grid-template-columns: 1fr;
grid-template-areas:
"header"
"main"
"footer";
}
@media (min-width: 45em) {
.container {
grid-template-columns:
1fr 3fr 1fr;
grid-template-areas:
"header header header"
"nav main aside"
"footer footer footer";
}
}
.header { grid-area: header; }
.main { grid-area: main; }
.nav { grid-area: nav; }
.aside { grid-area: aside; }
.footer { grid-area: footer; }
The second fragment illustrates a reliable centering utility that exploits Flexbox:
.center {
display: flex;
justify-content: center;
align-items: center;
}
Taken together, custom properties for theming, nesting for organization, and the two layout systems for structure constitute a lightweight, standards-based toolkit. Developers who internalize these tools regain the ability to express visual intent directly, to maintain that expression over time, and to adapt it to changing viewport sizes without the overhead of large framework abstractions.
Links:
[reClojure2025] Electric Clojure: Differential Dataflow for User Interfaces
Lecturer
Dustin Getz is the founder of Hyperfiddle and the primary architect behind Electric Clojure. His professional mission is to “collapse to zero” the cost of internal frontend development for business applications. With a background in distributed systems and concurrency, Dustin has spent years researching how to apply these low-level technical concepts to higher-level UI infrastructure. He is a frequent speaker at Clojure conferences, where he demonstrates how rethinking the computational structure of web applications can eliminate the complexities of traditional client-server architecture.
Abstract
Electric Clojure represents a paradigm shift in web architecture, moving away from the traditional separation of frontend and backend towards a unified, cloud-connected model. This article explores how Electric frames the user interface (UI) not as a series of manual network requests and state updates, but as a concurrency problem solvable through “differential dataflow”. By applying process supervision and structured concurrency, Electric achieves a UI = f(state) model that remains consistent across the network boundary. Through an analysis of Electric’s core principles, this article highlights how it addresses the “supervision problem” and optimizes network traffic through automatic differential updates, ultimately simplifying the development of complex, data-heavy applications.
Rethinking the Computational Structure of UIs
The fundamental premise of Dustin Getz’s work is that modern UI development is hindered by an incorrect computational structure. Most web applications rely on a manual bridge between the client (browser) and the server, involving REST or GraphQL APIs, manual state management (like Redux), and complex error handling for network failures.
Electric proposes a different structure based on differential dataflow. While React introduced the idea that the UI is a function of state, it is typically confined to the browser. Electric extends this concept across the entire network. In an Electric application, the code is written as a single, continuous program where the compiler automatically determines which parts of the code should run on the server and which should run on the client.
Solving the Network Boundary Problem
The “network boundary” is where most web applications fail or become overly complex. Electric addresses this by treating the connection between the client and server as a reactive data stream. Key innovations include:
1. Automatic Differential Updates: Instead of sending entire data objects over the wire, Electric only transmits the “diffs”—the specific changes in state. This high-frequency, high-fidelity communication is essential for maintaining a responsive UI in data-intensive environments.
2. Process Supervision: Electric applies Erlang-style supervision trees to UI components. If a server-side process fails or a network connection drops, the system can automatically recover and resume the UI state, solving the supervision problem that plagues traditional distributed web apps.
3. Reactive Back-pressure: By integrating differential dataflow, Electric manages the speed of data flow. If the client cannot keep up with the server’s updates, the system applies back-pressure to ensure the application remains stable and doesn’t “clobber” the browser’s resources.
Code Sample: Unified Frontend/Backend
(e/defn MyComponent [id]
;; This part runs on the server (accesses DB)
(e/server
(let [user (db/find-user id)]
;; This part runs on the client (renders UI)
(e/client
(dom/div
(dom/h1 (str "Hello, " (:name user)))
(dom/p "This data came directly from the DB!"))))))
Implications for Internal Tools and Enterprise Scaling
Dustin identifies a massive opportunity for this architecture in internal enterprise applications. Companies with thousands of microservices often struggle to build scalable UIs that can aggregate data from multiple sources. By placing an Electric “agent” in each microservice, developers can call backend Java or Clojure functions directly from a UI as if they were local calls.
This “UI Spreadsheet” model, as Dustin describes it, allows for native navigation of backend data structures. During his demonstration, he shows how a UI can query a git repository using the Java Git API (JGit) in real-time, displaying a git log through a scalable data browser without a single manually-written API endpoint. This approach collapses the traditional tiers of web development into a single, cohesive abstraction that composes across microservice boundaries.
Links:
[MunchenJUG] Advanced Automated Testing: Navigating the Integration Frontier (13/May/2024)
Lecturer
Daniel Istvan Buza is an accomplished Senior Software Engineer and Technical Lead with extensive experience in architecting Java-based ecosystems. His expertise spans a broad spectrum of technologies, including Spring, Angular, Kafka, MongoDB, and Microservices. As a leader of multiple development teams, Daniel focuses on enhancing code quality through initiatives like coding dojos and rigorous peer reviews. He is a dedicated mentor within the software community, constantly exploring innovative methodologies to bridge the gap between development and quality assurance.
Abstract
This article analyzes the transition from traditional unit testing to comprehensive acceptance and end-to-end (E2E) testing frameworks. It utilizes a real-world case study of a “silent” frontend-backend failure to illustrate why high test coverage often fails to detect integration defects. The discussion centers on the implementation of Playwright as a primary tool for stateful and stateless testing within a Java environment. By evaluating strategies for mocking external dependencies like Kafka and S3, and addressing common pitfalls such as internationalization and time zone sensitivities, this analysis provides a technical roadmap for building resilient CI/CD pipelines that go beyond the limitations of isolated component tests.
The Vulnerability of Isolated Testing
A critical challenge in modern web development is the “integration gap”—a scenario where backend and frontend components pass their respective unit tests but fail when operating in tandem. A common example involves dynamic attribute renaming: if a backend developer renames a field in a DTO (Data Transfer Object) and updates the corresponding tests, the backend remains “green.” However, if the frontend is not simultaneously updated to expect the new attribute name, the UI may fail to display data correctly, resulting in empty columns or broken features that are highly visible to users but invisible to isolated test suites.
This discrepancy highlights a fundamental truth: test coverage does not equate to test quality. Even 100% coverage cannot guarantee system correctness if the interactions between disparate services are not explicitly verified. To address this, teams must move toward “Acceptance Tests” (AC tests) that simulate actual user interactions across the entire stack.
Leveraging Playwright for Java-Centric Environments
For teams primarily composed of backend developers, selecting a testing tool that integrates seamlessly with the existing Java ecosystem is paramount. Playwright, a framework developed by Microsoft, has emerged as a robust solution due to its native Java support and its ability to automate browsers like Chrome, Firefox, and Safari.
Core Interactions in E2E Testing
The majority of web application functionality can be verified through four fundamental interaction types:
- Clicking: Interacting with buttons, links, and navigation elements.
- Input: Filling text and search fields.
- Assertion: Verifying visual properties, such as the presence, color, or size of elements.
- File Operations: Managing the upload and download of documents.
By focusing on these interactions, developers can create scripts that mirror user behavior, ensuring that the “happy path” of the application remains functional regardless of internal refactoring.
Architectural Strategies: Stateful vs. Stateless Testing
When implementing E2E tests, developers must choose between two primary architectural approaches: stateful and stateless testing.
Stateful (Environment-Targeted) Testing
In this model, tests are executed against a persistent environment with a shared database and live external APIs. This approach is highly realistic but introduces the risk of “pollution,” where data left by one test affects the outcome of subsequent tests. It requires rigorous cleanup procedures to maintain environment stability.
Stateless (Containerized) Testing
Stateless testing involves spinning up a fresh, full-featured frontend-backend pair within a CI/CD pipeline for every test run. This often utilizes embedded databases (e.g., MongoDB) and mocks for external dependencies like S3 buckets or Kafka topics. While more complex to set up, this method provides total isolation and reproducibility. However, it requires careful management of operating system dependencies within the test containers to ensure Playwright can execute the browsers correctly.
Technical Pitfalls and Best Practices
The transition to advanced automated testing reveals several subtle challenges that can undermine test reliability.
- Internationalization (i18n): Relying on UI text for selectors can lead to massive test failures when translation files are updated. Using unique element IDs is a safer alternative, though it may limit the ability to verify that the correct error messages are being displayed to the user.
- Time Zone Sensitivity: UI elements displaying timestamps will vary based on the local environment. Playwright allows developers to explicitly specify a locale to ensure consistent assertions across geographically distributed teams.
- Synchronicity: A major source of test flakiness is the misuse of
Thread.sleep(). Developers should instead utilize Playwright’s built-in “wait for condition” methods to handle asynchronous backend tasks, which are more resilient to varying network or processing speeds.
Conclusion
Modern software delivery requires a testing strategy that transcends the unit level. By integrating Playwright into the Java development lifecycle, teams can automate complex user journeys and bridge the gap between frontend and backend. While no single testing setup is superior, a combination of stateful environment checks and isolated CI/CD pipelines provides the most comprehensive defense against integration defects. Developers are encouraged to treat their test code with the same rigor as production code, striving for cleanliness and maintainability to ensure long-term system reliability.
Links:
[NDCMelbourne2025] Front End Testing with GitHub Actions – Amy Kapernick
In a dynamic session at NDC Melbourne 2025, Amy Kapernick, a seasoned front-end developer and advocate for automation, unveils a streamlined approach to front-end testing using GitHub Actions. With a focus on practicality, Amy guides developers through constructing a robust continuous integration and continuous deployment (CI/CD) pipeline, ensuring that front-end tests run seamlessly against live websites. Her presentation underscores the necessity of automation to maintain quality in web development, offering actionable insights for teams seeking to integrate testing into their workflows without manual intervention.
The Imperative of Front-End Testing
Amy begins by highlighting the unique challenges of front-end testing, emphasizing that unlike unit tests, which can operate with dummy data, front-end tests require a live, functioning website to evaluate real-world performance. For instance, assessing accessibility for visually impaired users or determining page load speeds demands an environment that mirrors production. Amy illustrates this with a CSS code snippet, questioning whether it can reveal unintended style bleed or performance bottlenecks without a live interface. By advocating for environments as close to production as possible, she ensures that tests yield accurate, actionable results, setting the stage for automation to eliminate manual testing inconsistencies.
Automating with GitHub Actions
The core of Amy’s approach lies in leveraging GitHub Actions to automate front-end testing within a CI/CD pipeline. She explains that GitHub Actions’ workflows, defined in YAML files, enable developers to trigger tests on specific events, such as pull requests to a production branch. Amy walks through creating a workflow with jobs like “build” and “test,” detailing steps such as checking out repository code, setting up Node.js, and installing dependencies. By using existing GitHub Actions packages, like those for checking out code and configuring Node, she simplifies the process, ensuring tests run consistently without manual effort. This automation, Amy notes, prevents code merges that fail tests, safeguarding application quality.
Deploying and Testing Live Websites
A pivotal aspect of Amy’s workflow involves deploying a live website for testing, using Netlify for its ease and deploy preview capabilities. She demonstrates a custom bash script to deploy to Netlify, addressing challenges like handling sensitive data, such as site IDs, which GitHub Actions may flag as secrets. Amy ingeniously encodes the deployment URL to bypass security restrictions, decoding it for testing with tools like Lighthouse and Playwright. These tools provide comprehensive reports on performance and UI functionality, respectively, which Amy configures to upload as artifacts, ensuring developers can review results and address issues before merging code.
Enhancing Workflows with Additional Automation
Beyond testing, Amy showcases GitHub Actions’ versatility by integrating a package that converts code comments into GitHub issues, ensuring tasks like “fix later” are tracked. This automation assigns issues to the code’s author and auto-closes them when resolved, streamlining project management. Amy also touches on other uses, such as linting, checking broken links, and generating assets like static tweet images for blog posts. These examples highlight how GitHub Actions can extend beyond testing to enhance overall development efficiency, making it a powerful tool for modern workflows.
Links:
[KotlinConf2025] Simplifying Full-Stack Kotlin: A Fresh Take with HTMX and Ktor
Becoming a full-stack developer is a highly sought-after and valuable skill in today’s tech landscape, allowing individuals to own features from start to finish and make holistic architectural decisions. This versatility is particularly important for small teams and startups. However, the role can be intimidating due to the extensive list of technologies one is expected to master, including Kubernetes, Postgres, Kotlin, Ktor, and numerous JavaScript frameworks. Anders Sveen’s talk challenges this complexity, proposing a simpler, more streamlined approach to web development by using HTMX and Ktor with Kotlin.
The Case for Simplicity
Sveen poses a crucial question: do we truly need all this complexity when HTML and CSS remain stable, unlike the ever-changing frontend frameworks?. He argues that many applications don’t require the overhead of a modern JavaScript Single Page Application (SPA), since everything ultimately renders to HTML anyway. His proposed solution uses technologies like HTMX, AlpineJS, and Unpoly, which build upon HTML and CSS rather than replacing them, allowing developers to achieve 98% of SPA functionality with significantly less frontend code and complexity.
A Synergistic Solution
The core of the presentation demonstrates how HTMX and kotlinx.html combine with Ktor to build modern, interactive web applications. The stack offers a refreshing simplicity, leveraging Ktor’s powerful backend capabilities, kotlinx.html’s type-safe HTML generation, and HTMX’s elegant method for handling frontend interactions. The talk also highlights how this simplified stack can reduce the need for microservices and complex technical setups by minimizing unnecessary coordination within development teams. Sveen, with 20 years of experience, emphasizes that this approach allows developers to be more full-stack, enabling them to quickly take an idea, deliver a solution, and learn from user feedback.
Links:
[DevoxxFR2025] Winamax’s Journey Towards Cross-Platform
In today’s multi-device world, providing a consistent and high-quality user experience across various platforms is a significant challenge for software companies. For online gaming and betting platforms like Winamax, reaching users on desktop, web, and mobile devices is paramount. Anthony Maffert and Florian Yger from Winamax shared their insightful experience report detailing the company’s ambitious journey to unify their frontend applications onto a single cross-platform engine. Their presentation explored the technical challenges, the architectural decisions, and the concrete lessons learned during this migration, showcasing how they leveraged modern web technologies like JavaScript, React, and WebGL to achieve a unified codebase for their desktop and mobile applications.
The Challenge of a Fragmented Frontend
Winamax initially faced a fragmented frontend landscape, with separate native applications for desktop (Windows, macOS) and mobile (iOS, Android), alongside their web platform. Maintaining and developing features across these disparate codebases was inefficient, leading to duplicated efforts, inconsistencies in user experience, and slower delivery of new features. The technical debt associated with supporting multiple platforms became a significant hurdle. Anthony and Florian highlighted the clear business and technical need to consolidate their frontend development onto a single platform that could target all the required devices while maintaining performance and a rich user experience, especially crucial for a real-time application like online poker.
Choosing a Cross-Platform Engine
After evaluating various options, Winamax made the strategic decision to adopt a cross-platform approach based on web technologies. They chose to leverage JavaScript, specifically within the React framework, for building their user interfaces. For rendering the complex and dynamic visuals required for a poker client, they opted for WebGL, a web standard for rendering 2D and 3D graphics within a browser, which can also be utilized in cross-platform frameworks. Their previous experience with JavaScript on their web platform played a role in this decision. The core idea was to build a single application logic and UI layer using these web technologies and then deploy it across desktop and mobile using wrapper technologies (like Electron for desktop and potentially variations for mobile, although the primary focus of this talk seemed to be the desktop migration).
The Migration Process and Lessons Learned
Anthony and Florian shared their experience with the migration process, which was a phased approach given the complexity of a live gaming platform. They discussed the technical challenges encountered, such as integrating native device functionalities (like file system access for desktop) within the web technology stack, optimizing WebGL rendering performance for different hardware, and ensuring a smooth transition for existing users. They touched upon the architectural changes required to support a unified codebase, potentially involving a clear separation between the cross-platform UI logic and any platform-specific native modules or integrations. Key lessons learned included the importance of careful planning, thorough testing on all target platforms, investing in performance optimization, and managing the technical debt during the transition. They also highlighted the benefits reaped from this migration, including faster feature development, reduced maintenance overhead, improved consistency across platforms, and the ability to leverage a larger pool of web developers. The presentation offered a valuable case study for other organizations considering a similar move towards cross-platform development using web technologies.
Links:
- Anthony Maffert: https://www.linkedin.com/in/anthonymaffert/
- Florian Yger: https://www.linkedin.com/in/florianyger/
- Winamax: https://www.winamax.fr/
- Devoxx France LinkedIn: https://www.linkedin.com/company/devoxx-france/
- Devoxx France Bluesky: https://bsky.app/profile/devoxx.fr
- Devoxx France Website: https://www.devoxx.fr/
[NDCMelbourne2025] A Look At Modern Web APIs You Might Not Know – Julian Burr
As web technologies evolve, the capabilities of browsers have expanded far beyond their traditional roles, often rendering the need for native applications obsolete for certain functionalities. Julian Burr, a front-end engineer with a passion for design systems, delivers an engaging exploration of modern web APIs at NDC Melbourne 2025. Through his demo application, stopme.io—a stopwatch-as-a-service platform—Julian showcases how these APIs can enhance user experiences while adhering to the principle of progressive enhancement. His talk illuminates the power of web APIs to bridge the gap between web and native app experiences, offering practical insights for developers.
The Philosophy of Progressive Enhancement
Julian begins by championing progressive enhancement, a design philosophy that ensures baseline functionality for all users while delivering enhanced experiences for those with modern browsers. Quoting Mozilla, he defines it as providing essential content to as many users as possible while optimizing for advanced environments. This approach is critical when integrating web APIs, as it prevents over-reliance on features that may not be universally supported. For instance, in stopme.io, Julian ensures core stopwatch functionality remains accessible, with APIs adding value only when available. This philosophy guides his exploration, ensuring inclusivity and robustness in application design.
Observing the Web: Resize and Intersection Observers
The first category Julian explores is observability APIs, starting with the Resize Observer and Intersection Observer. These APIs, widely supported, allow developers to monitor changes in DOM element sizes and visibility within the viewport. In stopme.io, Julian uses the Intersection Observer to load JavaScript chunks only when components become visible, optimizing performance. While CSS container queries address styling needs, these APIs enable dynamic behavioral changes, making them invaluable for frameworks like Astro that rely on code splitting. Julian emphasizes their relevance, as they underpin many modern front-end optimizations, enhancing user experience without compromising accessibility.
Enhancing User Context: Network and Battery Status
Julian then delves into APIs that provide contextual awareness, such as the Page Visibility API, Network Information API, and Battery Status API. The Page Visibility API allows stopme.io to update the browser title bar with the timer status when the tab is inactive, enabling users to multitask. The Network Information API offers insights into connection types, allowing developers to serve lower-resolution assets on cellular networks. Similarly, the Battery Status API warns users of potential disruptions due to low battery, as demonstrated when stopme.io alerts users about long-running timers. Julian cautions about fingerprinting risks, noting that browser vendors intentionally reduce accuracy to protect privacy, aligning with progressive enhancement principles.
Elevating Components: Screen Wake Lock and Vibration
Moving to component enhancement, Julian highlights the Screen Wake Lock and Vibration APIs. The Screen Wake Lock API prevents devices from entering sleep mode during critical tasks, such as keeping stopme.io’s timer visible. The Vibration API adds haptic feedback, like notifying users when a timer finishes, with customizable patterns for engaging effects. Julian stresses user control, suggesting toggles to avoid intrusive experiences. While these APIs—often Chrome-centric—enhance interactivity, Julian underscores the need for fallback options to maintain functionality across browsers, ensuring no user is excluded.
Native-Like Experiences: File System, Clipboard, and Share APIs
Julian showcases APIs that rival native app capabilities, including the File System, Clipboard, and Share APIs. The File System API enables file picker interactions, while the Clipboard API facilitates seamless copy-paste operations. The Share API, used in stopme.io, triggers native sharing dialogs, simplifying content distribution across platforms. These APIs, inspired by tools like Cordova, reflect the web’s evolution toward native-like functionality. Julian notes their security mechanisms, such as transient activation for Clipboard API, which require user interaction to prevent misuse, ensuring both usability and safety.
Streamlining Authentication: Web OTP and Credential Management
Authentication APIs, such as Web OTP and Credential Management, offer seamless login experiences. The Web OTP API automates SMS-based one-time password entry, as demonstrated in stopme.io, where Chrome facilitates code sharing across devices. The Credential Management API streamlines password storage and retrieval, reducing login friction. Julian highlights their synergy with the Web Authentication API, which supports passwordless logins via biometrics. These APIs, widely available, enhance security and user convenience, making them essential for modern web applications.
Links:
[PHPForumParis 2024] Is WordPress a lost cause?
Cyrille Coquard, a seasoned WordPress developer, took the stage at PHPForumParis2024 to address a contentious question: Is WordPress a lost cause? With humor and insight, Cyrille tackles the platform’s reputation, often marred by perceptions of outdated code and technical debt. By drawing parallels between WordPress and PHP’s evolution, he argues that WordPress is undergoing a quiet transformation toward professionalism. His talk, aimed at PHP developers, demystifies WordPress’s architecture and advocates for modern development practices to elevate its potential.
The Shared Legacy of WordPress and PHP
Cyrille opens by highlighting the intertwined histories of WordPress and PHP, both born in an era of amateur-driven development. This shared origin, while fostering accessibility, has led to technical debt that tarnishes their reputations. He compares WordPress to a “Fiat or Clio”—a practical, accessible tool for the masses—contrasting it with frameworks like Symfony, likened to a high-end race car. This metaphor underscores WordPress’s mission to democratize web creation, prioritizing user-friendliness over developer-centric complexity. Cyrille emphasizes that the platform’s early design choices, while not always optimal, reflect its commitment to simplicity and affordability.
Plugins and Themes: Extending WordPress’s Power
A core strength of WordPress lies in its extensibility through plugins and themes. Cyrille explains how themes allow for visual customization, enabling the 40% of websites powered by WordPress to look unique. Plugins, meanwhile, add functionality or modify behavior, addressing both generic and specific user needs. He illustrates this with examples like WooCommerce for e-commerce and Gravity Forms for form creation. By leveraging pre-existing plugins, developers can meet common requirements efficiently, reserving custom development for unique challenges. This approach, Cyrille notes, significantly reduces costs, as seen in his work at WP Rocket, where a single plugin optimizes performance across millions of sites.
Modernizing WordPress Development with Launchpad
To address WordPress’s development challenges, Cyrille introduces Launchpad, his open-source framework designed to bring modern PHP practices to the WordPress ecosystem. Inspired by Laravel and Symfony, Launchpad simplifies plugin creation by introducing concepts like subscribers and service providers. These patterns, familiar to PHP developers, reduce the learning curve for newcomers while promoting clean, maintainable code. Cyrille demonstrates how to create a simple plugin, emphasizing event-driven development that hooks into WordPress’s core functionality. By providing a standardized, well-documented framework, Launchpad aims to bridge the gap between WordPress’s amateur roots and professional standards.
Links:
Hashtags: #WordPress #PHP #WebDevelopment #Launchpad #PHPForumParis2024 #CyrilleCoquard #WPRocket
[DevoxxBE2023] A Deep Dive into Advanced TypeScript: A Live Coding Expedition by Christian Wörz
Christian Wörz, a seasoned full-stack engineer and freelancer, captivated the Devoxx Belgium 2023 audience with a hands-on exploration of advanced TypeScript features. Through live coding, Christian illuminated powerful yet underutilized constructs like mapped types, template literals, conditional types, and recursion, demonstrating their practical applications in real-world scenarios. His session, blending technical depth with accessibility, empowered developers to leverage TypeScript’s full potential for creating robust, type-safe codebases.
Mastering Mapped Types and Template Literals
Christian kicked off with mapped types, showcasing their ability to dynamically generate type-safe structures. He defined an Events type with add and remove properties and created an OnEvent type to prefix event keys with “on” (e.g., onAdd, onRemove). Using the keyof operator and template literal syntax, he ensured that OnEvent mirrored Events, enforcing consistency. For instance, adding a move event to Events required updating OnEvent to onMove, providing compile-time safety. He enhanced this with TypeScript’s intrinsic Capitalize function to uppercase property names, ensuring precise naming conventions.
Template literals were explored through a chessboard example, where Christian generated all possible positions (e.g., A1, B2) by combining letter and number types. He extended this to a CSS validator, defining a GapCSS type for properties like margin-left and padding-top, paired with valid CSS sizes (e.g., rem, px). This approach narrowed string types to enforce specific formats, preventing errors like invalid CSS values at compile time.
Leveraging Conditional Types and Never for Safety
Christian delved into conditional types and the never type to enhance compile-time safety. He introduced a NoEmptyString type that prevents empty strings from being assigned, using a conditional check to return never for invalid inputs. Applying this to a failOnEmptyString function ensured that only non-empty strings were accepted, catching errors before runtime. He also demonstrated exhaustive switch cases, using never to enforce complete coverage. For a getCountryForLocation function, assigning an unhandled London case to a never-typed variable triggered a compile-time error, ensuring all cases were addressed.
Unraveling Types with Infer and Recursion
The infer keyword was a highlight, enabling Christian to extract type information dynamically. He created a custom MyReturnType to mimic TypeScript’s ReturnType, inferring a function’s return type (e.g., number for an addition function). This was particularly useful for complex type manipulations. Recursion was showcased through an UnnestArray type, unwrapping deeply nested arrays to access their inner types (e.g., extracting string from string[][][]). He also built a recursive Tuple type, generating fixed-length arrays with specified element types, such as a three-element RGB tuple, with an accumulator to collect elements during recursion.
Branded Types for Enhanced Type Safety
Christian concluded with branded types, a technique to distinguish specific string formats, like emails, without runtime overhead. By defining an Email type as a string intersected with an object containing a _brand property, he ensured that only validated strings could be assigned. A type guard function, isValidEmail, checked for an @ symbol, allowing safe usage in functions like sendEmail. This approach maintained the simplicity of primitive types while enforcing strict validation, applicable to formats like UUIDs or custom date strings.
Links:
[DevoxxPL2022] Why is Everyone Laughing at JavaScript? Why All Are Wrong? • Michał Jawulski
At Devoxx Poland 2022, Michał Jawulski, a seasoned developer from Capgemini, delivered an engaging presentation that tackled the misconceptions surrounding JavaScript, a language often mocked through viral memes. Michał’s talk, rooted in his expertise and passion for software development, aimed to demystify JavaScript’s quirks, particularly its comparison and plus operator behaviors. By diving into the language’s official documentation, he provided clarity on why JavaScript behaves the way it does, challenging the audience to see beyond the humor and appreciate its logical underpinnings. His narrative approach not only educated but also invited developers to rethink their perceptions of JavaScript’s design.
Unraveling JavaScript’s Comparison Quirks
Michał began by addressing the infamous JavaScript memes that circulate online, often highlighting the language’s seemingly erratic comparison behaviors. He classified these memes into two primary categories: those related to comparison operators and those involving the plus sign operator. To understand these peculiarities, Michał turned to the ECMAScript specification, emphasizing that official documentation, though less accessible than resources like MDN, holds the key to JavaScript’s logic. He contrasted the ease of finding Java or C# documentation with the challenge of locating JavaScript’s official specification, which is often buried deep in search results and presented as a single, scroll-heavy page.
The core of Michał’s exploration was the distinction between JavaScript’s double equal (==) and triple equal (===) operators. He debunked the common interview response that the double equal operator ignores type checking. Instead, he explained that == does consider types but applies type coercion when they differ. For instance, when comparing null and undefined, == returns true due to their equivalence in this context. Similarly, when comparing non-numeric values, == attempts to convert them to numbers—true becomes 1, null becomes 0, and strings like "infinity" become the numeric Infinity. In contrast, the === operator is stricter, returning false if types differ, ensuring both type and value match. This systematic breakdown revealed that JavaScript’s comparison logic, while complex, is consistent and predictable when understood.
Decoding the Plus Operator’s Behavior
Beyond comparisons, Michał tackled the plus operator (+), which often fuels JavaScript memes due to its dual role in numeric addition and string concatenation. He explained that the plus operator first converts operands to primitive values. If either operand is a string, concatenation occurs; otherwise, both are converted to numbers for addition. For example, true + true results in 2, as both true values convert to 1. However, when an empty array ([]) is involved, it converts to an empty string (""), leading to concatenation results like [] + [] yielding "". Michał highlighted specific cases, such as [] + {} producing "[object Object]" in some environments, noting that certain behaviors, like those in Google Chrome, may vary due to implementation differences.
By walking through these examples, Michał demonstrated that JavaScript’s plus operator follows a clear algorithm, dispelling the notion of randomness. He argued that the humor in JavaScript memes stems from a lack of understanding of these rules. Developers who grasp the conversion logic can predict outcomes with confidence, turning seemingly bizarre results into logical conclusions. His analysis transformed the audience’s perspective, encouraging them to approach JavaScript with curiosity rather than skepticism.
Reframing JavaScript’s Reputation
Michał concluded by asserting that JavaScript’s quirks are not flaws but deliberate design choices rooted in its flexible type system. He urged developers to move beyond mocking the language and instead invest time in understanding its documentation. By doing so, they can harness JavaScript’s power effectively, especially in dynamic web applications. Michał’s talk was a call to action for developers to embrace JavaScript’s logic, fostering a deeper appreciation for its role in modern development. His personal touch—sharing his role at Capgemini and his passion for the English Premier League—added warmth to the technical discourse, making the session both informative and relatable.