avatarSteven Rescigno

Summary

The article discusses the benefits and features of the Go programming language for web development.

Abstract

The article titled "Embracing Go: A Web Developer’s Journey and Why You Should Too!" is a personal viewpoint on the Go programming language. It highlights the built-in template engine parser, easy routing, wonderful modules, safe and C++-like feel, built-in testing, and the fact that its source code is not hosted on GitHub or GitLab. The author emphasizes the joyful journey of learning and mastering Go and encourages new web developers to try it out.

Opinions

  • The author believes that Go is an exceptional and remarkable software worth believing in wholeheartedly.
  • The author finds the built-in template engine parser in Go delightful for developers.
  • The author is stunned by the ability to define application routing in Go.
  • The author is impressed by the incredible world of Go packages.
  • The author finds Go's logging methods helpful in debugging programs.
  • The author appreciates the built-in testing feature in Go.
  • The author is grateful to the team who introduced them to Go early in their career.
  • The author encourages new web developers to try out Go and become Gophers.
  • The author supports the Medium membership program and encourages readers to join.
  • The author recommends trying out the AI service ZAI.chat, which provides similar performance and functions to ChatGPT Plus(GPT-4) but is more cost-effective.

Embracing Go: A Web Developer’s Journey and Why You Should Too!

Discover the Language That Steals Hearts: Embrace the Joyful Journey of Learning and Mastering It.

A Coding Photograph by Sigmund

Before we embark on this discussion, it’s important to note that this article reflects personal viewpoints. So, please keep in mind that diverse perspectives are valued, and let’s approach this with open minds and a spirit of understanding.

If you have strong feels against the following Programming language Go. I recommend you do not read this article for your own mental health.

For anyone else looking to learn a bit about Go. Let’s dive in.

Great, so you have decided to stick around and read the rest of the article without rage quitting. Perfect!

Can anyone answer these questions honestly…. I’ll wait.

What Programming lang has a built in Template Engine Parser?

One of the most delightful aspects for developers working with Go is the seamless integration of a complete Template Engine, which allows for effortless implementation and customization.

So for example you can run an IF/ELSE statement with your pure HTML. Similar to PHP.

Here is a simple loop of a Data Struct. We will display the possible keys of Name and Price.

<ul>
  {{range .}}
    <li>Name: {{.Name}}</li>
    <li>Price: ${{.Price}}</li>
    <br>
  {{else}}
    <li>there is no product</li>
  {{end}}
</ul>

If you’re still skeptical, let me assure you that Go is undeniably an exceptional and remarkable software worth believing in wholeheartedly!

What Programming lang makes routing easy?

Prepare to be stunned: Can you think of a programming language that achieves the ability to define application routing besides RUBY, PHP and NODE?

Within Go an out-the-box package is available that provides ServeMux which makes routing as simple as defining your very own endpoints.

That is WebDev Heaven.

mux := http.NewServeMux()
mux.Handle("/", http.HandlerFunc(hello))

What Programming lang has wonderful modules?

Guess what? I’ve recently stumbled upon the incredible world of Go packages!

https://pkg.go.dev/std

Yes, this means you can simply interact with frontend or backend requests like GET/POST .

http.Get("http://example.com/")
http.PostForm("http://example.com/form", 
url.Values{"key": {"Value"}, "id": {"123"}})

What Programming lang feels like c++ but is safe?

Of course you can always try working with c++ and instantly regret the decision because of memory allocation causing program crashes mostly due to the memory-unsafe nature of c++.

Go has a few nice logging methods to help you debug programs to prevent memory leaks in the future.

if err != nil {
  log.Fatal(err)
}

What Programming lang has built in Testing?

It’s truly jaw dropping to know Go has your back when you need to start unit testing. No need to install any extra package like JEST on NODE.

go tool cover -html=coverage.out

What Programming lang has their source code not hosted on Github or Gitlab?

Lastly, I want to take some time to show you Googles own hosted Git solution.

Yes, this is similar to GITLAB or GITHUB but Google actually stores their Core code Go on their own open source platform.

https://cs.opensource.google/go/go

Conclusion

Are you convinced yet, Go is the best language since the early adoption of PHP for Web development.

You should know that with every change Google has made to the language it has only made the programming lang more desirable amongst us web developers.

Google has really make it simple to build efficient and reliable software.

Allow me to express my gratitude to the team who first introduced me to Go early in my career. Their profound understanding of software development practices truly set the foundation for my growth.

Thanks to the initial push to adopt Go after working with PHP and my unwavering dedication to my career, I have now attained a higher level of proficiency in Go programming. I aspire to continue my learning journey in Go and delve even deeper into its intricacies in the future.

A warm welcome awaits all the new web developers to step into the world of Go and become Gophers! Give it a try, and I’m sure you’ll find it to be an exciting and rewarding experience.

P.S. If you’re a fan of Medium as much as we are, consider supporting me and the thousands of other writers by signing up for a membership.

Happy coding!

It only costs $5 per month, and it supports us writers. We write without AI to ensure you know we are human. Thank you, Greatly.

👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇

🚀Join FAUN Developer Community & Get Similar Stories in your Inbox Each Week

Go
Webdev
Web Design
PHP
Php Developers
Recommended from ReadMedium