banner
Web Worker

Web Worker - 前端程序员都爱听的播客

这是一档前端程序员闲聊的播客《Web Worker 播客》。玩票的播客放大了我们的声音,所以如果你想表达技术观点、自荐作品、安利嘉宾请联系我,愿为作品推广尽绵薄之力~
github
xiaoyuzhou
email

No.39 Chatting with Svelte core contributor Li Hao about Svelte, open source experience, and passion for technology!

Listening Methods#

Introduction#

A new episode of the podcast is here! This time we invited Li Hau, a core contributor to Svelte from Malaysia! We also invited guest speaker Bai Wu San Yu, the author of the Svelte component library, Svelte senior user Smart, and host Xiao Bai Cai to join the discussion. We had a happy and interesting conversation about Svelte technology itself and the experience of participating in open source. This is also his first time participating in a Chinese podcast for technical chat. Welcome to listen and interact!

image.png

Timeline#

00:00 Discussed some technical concepts, use cases, and engineering issues of Svelte, and shared some experience of pitfalls. In the second half, they also talked about some things about the next version of Svelte. After chatting with Li Hau, they also talked about his life experience and future plans.

07:24 Coincidences and motivations in open source projects.

The discussion mentioned the coincidences and motivations for contributing code to open source projects. In the process of participating in the open source community, individuals can participate based on their own interests and needs, and receive help and feedback from others. For large projects, providing code contributions may receive timely feedback, while small projects may require more patience. Positive feedback from participating in open source projects is crucial to attracting more people to participate in and use open source projects.

12:16 Introduction to the open source project Svelte and its application scenarios

This article introduces the characteristics and application scenarios of the open source project Svelte. Svelte is a front-end framework that helps developers compile code with a compiler to generate high-performance scripts and easily write component code. Compared with other frameworks, Svelte does not have a virtual DOM, so it has higher performance. Its syntax is similar to HTML and CSS, making it suitable for developers transitioning from Vue.

20:26 Advantages and characteristics of Svelte programming

Svelte programming is beginner-friendly, helping beginners save additional knowledge of learning frameworks through abstract concepts and syntax analysis. In addition, Svelte programming slightly increases packaging time and size compared to Vue, but it has less source code and less output.

25:55 Introduction to engineering solutions

This article introduces the engineering implementation solutions for Svelte, including CSS processing, routing state processing, and tool selection. Among them, it is recommended to use SvelteKit as the default option, which provides a full-featured framework including routing and server-side rendering. In addition, SvelteKit and its characteristics and application scenarios are introduced, and SvelteKit is recommended as a beginner-friendly option. Finally, some issues and developments related to the ecosystem are mentioned.

31:07 Use and exploration of Svelte technology

This segment of the conversation discusses the characteristics of Svelte technology itself and the practical exploration of Svelte engineering in different usage scenarios. The discussion also mentions the limitations of Svelte technology in code analysis, variable binding, and dependency tracking, as well as the issue of passing slots in unit testing. These issues and discussions have sparked attention and thinking about the future development of Svelte technology.

38:51 Experience of using the Svelte framework

In the process of using the Svelte framework, the biggest problem encountered was the lack of early information, which led to some detours. However, many problems were avoided through subsequent use. The global state management of the Svelte framework is very convenient and meets 80% of the requirements. In addition, the quality of documentation and tutorials has also improved, and more people in China are using it. Unlike other frameworks, the Svelte framework tutorial is presented in the form of documents and official tutorials, with interactive features. Svelte also provides guidance and practical exercises, making it easier for beginners to learn and understand the concepts and usage of APIs. Compared with other frameworks, Svelte's design in terms of guidance is excellent.

43:47 Application of open source tool libraries in Svelte projects

This segment of the conversation discusses some recommended tool libraries and component libraries for using Svelte, as well as some issues encountered in the process. At the same time, the advantages of using native JS and native TS in web development and the use of web components are discussed. Finally, web conformance and framework-independent development ideas are mentioned.

51:36 Technology selection and competition evolution

In the conversation, the competition evolution of technology selection and the traditional three major frameworks is discussed. The speaker believes that there is no need to pursue surpassing other frameworks, but to choose the appropriate framework based on one's own needs. At the same time, new frameworks are constantly emerging, each with its own characteristics and ideas. Community operation capability is also becoming increasingly important in open source frameworks, and the contributions and participation of community volunteers play a key role in the development of frameworks.

59:00 Development and new concepts of the thriving open source community and version 5

This segment of the conversation mentions the development process of the open source community and the new concepts of version 5 that will be released soon. Among them, version 5 will solve the problem of variable dependency analysis in existing modules, achieve variable visibility and usage through compile-time transpilation. In addition, Svelte provides corresponding concepts and APIs for global state management and local variable definition tracking. However, there are still some differences in the use of $ in components and functions that need to be further improved. For these prospects and new features, it is recommended to read the relevant documentation on the official website for further understanding.

67:34 Advantages and recommendations of using Svelte

This segment of the conversation mainly discusses the advantages and recommendations of using the Svelte programming framework. The discussion includes simplifying code, improving performance, and ease of use with Svelte. Regarding the promotion of Svelte within the company, it is believed that it is only necessary to switch frameworks when there are rigid requirements, and try and promote it when there are no rigid requirements. Finally, the speaker also introduced his own mini Svelte project and how to learn through studying the source code.

78:54 Work experience and experience of participating in open source

This conversation is mainly about sharing work experience and experience of participating in open source. The conversation mentions working hours, hobbies, technology choices, and experiences with open source projects. It also emphasizes the importance of maintaining curiosity, understanding source code, and thinking about problems. Through these experiences, young programmers can better understand open source projects and gradually develop an understanding of technology and thinking abilities.

88:28 How to maintain passion for technology and balance work and interests

The conversation revolves around how to maintain passion for technology in work and how to balance work and personal interests. It discusses Singapore's work culture, the impact of personal low periods, and how to find things that one loves. It also introduces the advantages and future prospects of the Svelte framework and the future of front-end development.

93:35 Future development direction and employment prospects of front-end

This segment of the conversation mainly discusses the future development direction and employment prospects of front-end. It involves the significance of the Vue Vapor concept without a virtual DOM, the trend of heavy compilation and lightweight runtime, the demand for front-end development in the future, and the application of AI in front-end development. At the same time, it also discusses the applicability of basic logical principles of programming in different fields, as well as personal views and plans for the future of front-end. Finally, it is mentioned to watch recommended videos and publish on Bilibili.

The timeline section is summarized by AI.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.