search
HomeBackend DevelopmentGolangIntroduction about the project and... myself

A brief info about me…..

Hello world! My name is Lucas, I’m a 31-year-old Brazilian who lives in the Czech Republic (or Czechia ? ?) and I work as a software engineer. I worked in a different field for 7/8 years and I got stuck in this area. I was unmotivated, just doing the basics and keeping the money coming in. But I was missing something to inspire me and have this “fire” from working with something.

Talking with my wife (I’m soooo thankful to her because of this), she gave me an idea: “Why don’t you find a subject you like and get a crash course on Udemy to see how it goes?”. After this talk, I thought and thought and thought and thought until I remembered that I tried Python once, but I wasn’t that inspired at that time. Why not try again? Maybe a different language?

I then talked to a colleague from work, a dev, about what he would recommend and he suggested me a JS course. I thought: why not? It was the most well-spent 15 dollars in my life… From that time on, I ‘ve never stopped studying.

I dived into JS and I started with NodeJS, Express, and React. I switched from my old profession once I felt (at least a little bit) prepared to face a SE position. I studied JS and its ecosystem more and more, a little bit of networking, data structure, and algorithms. And then a new guy in town caught my eyes, yes, a gopher! And here I am, writing about him.

Nowadays, I’m working with Go on the backend and I’ll try to teach what I know because knowledge needs to be shared and I’m very thankful to all the community which helped to develop myself.

Talk is cheap, show me the project

After this brief intro, I’ll bring more details about the project itself and how it will be structured.

This is the first heads-up about this project: If you don’t know anything about Go, I highly recommend you learn first.

We will use a lot of concepts (interfaces, structs, types, and so on) from the language, which you should learn before. Go has really good resources on the internet, like go-by-example, tour of Go, and effective Go - all of them for free. But if you would like to code and learn the concepts at the same time, that’s okay, too. You are very welcome here.

We will start a small project to create, read, update, and delete dogs (patients) from the database, like a small system for a veterinary clinic.

I’ll structure the project using the common structure model-dao-service-controller layout and show you some practices that I like to use in my projects. I'll try to dive into some concepts, like when you use or not mocks, why I do things the way I do them, and share all the knowledge I’ve got over the last few years.
About the stack and technologies, we will use Echo as a framework to build our middleware, controllers, and the app and Postgres as a database.

And of course, we will test everything possible. From bottom to top, the dao layers, service, controllers, and finish with a good integration test. Tests are an important step and they guarantee that our API works as expected. And this is something that I miss from some tutorials, so this is why I’m including it here.

Introduction about the project and... myself

Next steps:

So, soon we will do our first “hello, world” with Echo and Go and prepare the docker containers and the docker-compose file, so stay tuned for the next posts of this series of posts.

A nerd moment: But why Prometheus of Go?

I’m a kind of a History nerd, I like to learn more about what has already happened and that way try not to repeat some mistakes from the past. But I also enjoy some ludic stuff, and recently I discovered Greek mythology.

The Prometheus myth tells the story of a Titan who imagined the world and would like to build one. Zeus taught him all the knowledge he had. Prometheus went back after learning from Zeus and did to his knowledge something that changed not only his but also all of our lives: he shared it with humans: he taught them how to plant and manage fire and such event changed the destiny of humanity. Unfortunately, Prometheus had a really bad time in the end, and I advise you to read this myth which is one of my favorites.

The above is the detailed content of Introduction about the project and... myself. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Go language pack import: What is the difference between underscore and without underscore?Go language pack import: What is the difference between underscore and without underscore?Mar 03, 2025 pm 05:17 PM

This article explains Go's package import mechanisms: named imports (e.g., import "fmt") and blank imports (e.g., import _ "fmt"). Named imports make package contents accessible, while blank imports only execute t

How to implement short-term information transfer between pages in the Beego framework?How to implement short-term information transfer between pages in the Beego framework?Mar 03, 2025 pm 05:22 PM

This article explains Beego's NewFlash() function for inter-page data transfer in web applications. It focuses on using NewFlash() to display temporary messages (success, error, warning) between controllers, leveraging the session mechanism. Limita

How to convert MySQL query result List into a custom structure slice in Go language?How to convert MySQL query result List into a custom structure slice in Go language?Mar 03, 2025 pm 05:18 PM

This article details efficient conversion of MySQL query results into Go struct slices. It emphasizes using database/sql's Scan method for optimal performance, avoiding manual parsing. Best practices for struct field mapping using db tags and robus

How do I write mock objects and stubs for testing in Go?How do I write mock objects and stubs for testing in Go?Mar 10, 2025 pm 05:38 PM

This article demonstrates creating mocks and stubs in Go for unit testing. It emphasizes using interfaces, provides examples of mock implementations, and discusses best practices like keeping mocks focused and using assertion libraries. The articl

How can I define custom type constraints for generics in Go?How can I define custom type constraints for generics in Go?Mar 10, 2025 pm 03:20 PM

This article explores Go's custom type constraints for generics. It details how interfaces define minimum type requirements for generic functions, improving type safety and code reusability. The article also discusses limitations and best practices

How to write files in Go language conveniently?How to write files in Go language conveniently?Mar 03, 2025 pm 05:15 PM

This article details efficient file writing in Go, comparing os.WriteFile (suitable for small files) with os.OpenFile and buffered writes (optimal for large files). It emphasizes robust error handling, using defer, and checking for specific errors.

How do you write unit tests in Go?How do you write unit tests in Go?Mar 21, 2025 pm 06:34 PM

The article discusses writing unit tests in Go, covering best practices, mocking techniques, and tools for efficient test management.

How can I use tracing tools to understand the execution flow of my Go applications?How can I use tracing tools to understand the execution flow of my Go applications?Mar 10, 2025 pm 05:36 PM

This article explores using tracing tools to analyze Go application execution flow. It discusses manual and automatic instrumentation techniques, comparing tools like Jaeger, Zipkin, and OpenTelemetry, and highlighting effective data visualization

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)