Mastering Live(View) development in Go (GoLang)

所在平台: Udemy

课程主页: https://www.udemy.com/course/mastering-liveview-development-in-go-golang/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:掌握Go语言中的Live(View)开发 课程概述:欢迎来到《掌握Go语言中的Live(View)编程》课程。通过本课程,您将提升您现有的Go语言知识,熟悉近年来引入的几种网络开发技术,即“LiveView”编程模型。我们将重点关注在构建Web应用程序时常用的多个主题,并探讨如何使用Live(View)技术实现这些功能,在其中JS的使用被最小化或完全不需要。我们将看到Live(View)编程方法如何简化Web应用程序开发,使之更为解决导向。 您将学习到: - 使用Go语言创建互动Web应用程序 - 使用WebSocket作为现代客户端-服务器通信技术 - 基于当前Go语言后端技能创建UI应用程序 - 使用推送技术从后端更新用户 - 使用流行的LiveView方法创建协作类型的应用程序 - 通过现代编程技术加快开发速度 - 创建高度可维护和易于阅读的应用代码 LiveView编程模型简介: LiveView提供丰富的实时用户体验,使用服务器渲染的HTML。LiveView编程模型主要是声明式的:不是说“当事件ABC发生时,改变页面上的XYZ”,而是通过绑定到事件ID的处理程序管理事件。一旦状态变化,LiveView将重新渲染相关部分的HTML模板(计算差异),并推送到浏览器,使其高效更新。这意味着开发者像其他服务器渲染HTML一样编写LiveView模板,而LiveView则负责跟踪变化并通过WebSocket通信向浏览器发送相关的差异。 课程涵盖的主题: 在课程中,我们将使用Live(View)方法创建一个基本的Go语言Web应用程序。主要主题包括: - 受LiveView启发的编程 - 技术信息 - 关键的Live(View)概念解释 - 温控器 - 无需JS的互动应用 - Pub/Sub通信的实现 - 增强温控器 - 聊天、时钟、JS钩子的实现 - 流行框架中的Live(View) - Live(View)应用与NATS服务器的集成 本课程的重要部分是理解在使用Live(View)方法时“我们不需要做什么”。简化可以是巨大的,古老的说法“最好的代码是你不必编写的代码”在这里得到了验证。 课程总结: 本课程的目的是为Live(View)编程世界提供指南。我们采用务实的方法,通过构建真实的应用程序,实践探索Live(View)编程模型。 GitHub代码库: 源代码通过本课程最后一讲附带的链接提供,您可以克隆该代码库并使用我们在课程中构建的代码片段。

课程评论(0条)

课程详情

Welcome to the ‘Mastering Live(View) programming in Go' course. With this course, you will add value to your existing Go Lang knowledge by getting familiar with several web development techniques known as a 'LiveView' programming model introduced within the last several years. We will focus on several topics popular when building web applications and we take a look at how to implement those features using Live(View) techniques where JS usage is not needed or minimized at least. We are going to see how the Live(View) programming approach makes web app development easier to do and more solution-oriented. What you'll learnCreate interactive web apps in GoLangUse of websockets as a modern technique for client-server communicationKnowledge of creating UI based apps with your current GoLang backend skillsUse of Push techniques for updating users from backendCreate collaboration types of applications using popular LiveView approachSpeed-up your development with modern programming techniquesCreate highly maintainable and easy to read application codeWhat is the LiveVew programming approach/model?LiveView provides rich, real-time user experiences with server-rendered HTML. The LiveView programming model is mostly declarative: instead of saying "when event ABC happens, change XYZ on the page", events in LiveView are managed by handlers bound to event id. Once the state changes, LiveView will re-render the relevant parts of its HTML template(calculate diff) and push it to the browser, which updates itself most efficiently. This means developers write LiveView templates as any other server-rendered HTML and LiveView does the hard work of tracking changes and sending the relevant diffs to the browser using websocket communication. Phoenix Framework widely popularized this approach and there are implementations for many significant languages or platforms.Topics covered by this course:During the course, we create a basic web application in Go Lang with a Live(View) approach. The main topics include:LiveView-inspired programming - technical infoKey Live(View) concepts explainedThermostat - interactive application without JSImplementation of Pub/Sub communicationEnhancing thermostat - implementation of chat, clock, JS hooksLive(View) in popular frameworksIntegration of Live(View) application with NATS serverAn important part of this course is to realize 'what we don't need to do' when using the Live(View) approach. Simplification can be huge and the old saying that 'the best code is the code you don't have to write' is proven here.Summary:The goal of this course is to make a guide in the Live(View) programming world. We use a pragmatic approach by building real applications and exploring the Live(View) programming model practically.GitHub repository:The source code is available through the link attached to the last lecture in this course. You can clone the repo and use the code snippets we are building in this course.

课程标签

0人关注该课程

主题相关的课程