返回介绍

Go Makes Things Simple

发布于 2025-02-25 22:26:25 字数 1925 浏览 0 评论 0 收藏 0

If you have built a web application before, you surely know that there are quite a lot of concepts to keep in your head. HTTP, HTML, CSS, JSON, databases, sessions, cookies, forms, middleware, routing and controllers are just a few among the many things your web app may need to interact with.

While each one of these things can be important in the building of your web applications, not every one of them is important for any given app. For instance, a web API may just use JSON as its serialization format, thus making concepts like HTML not relevant for that particular web app.

The Go Way

The Go community understands this dilemma. Rather than rely on large, heavyweight frameworks that try to cover all the bases, Go programmers pull in the bare necessities to get the job done. This minimalist approach to web programming may be off-putting at first, but the result of this effort is a much simpler program in the end.

Go makes things simple, it's as easy as that. If we train ourselves to align with the "Go way" of programming for the web, we will end up with more simple , flexible , and maintainable web applications.

Power in Simplicity

As we go through the exercises in this book, I think you will be surprised by how simple some of these programs can be whilst still affording a bunch of functionality.

When sitting down to craft your own web applications in Go, think hard about the components and concepts that your app will be focused on, and use just those pieces. This book will be covering a wide array of web topics, but do not feel obligated to use them all. In the words of our friend Lonestar, "Take only what you need to survive".

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文