Introduction 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.
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Go language performs well in building efficient and scalable systems. Its advantages include: 1. High performance: compiled into machine code, fast running speed; 2. Concurrent programming: simplify multitasking through goroutines and channels; 3. Simplicity: concise syntax, reducing learning and maintenance costs; 4. Cross-platform: supports cross-platform compilation, easy deployment.

Golang is better than C in concurrency, while C is better than Golang in raw speed. 1) Golang achieves efficient concurrency through goroutine and channel, which is suitable for handling a large number of concurrent tasks. 2)C Through compiler optimization and standard library, it provides high performance close to hardware, suitable for applications that require extreme optimization.

Golang and Python each have their own advantages: Golang is suitable for high performance and concurrent programming, while Python is suitable for data science and web development. Golang is known for its concurrency model and efficient performance, while Python is known for its concise syntax and rich library ecosystem.

Golang is better than Python in terms of performance and scalability. 1) Golang's compilation-type characteristics and efficient concurrency model make it perform well in high concurrency scenarios. 2) Python, as an interpreted language, executes slowly, but can optimize performance through tools such as Cython.

Goimpactsdevelopmentpositivelythroughspeed,efficiency,andsimplicity.1)Speed:Gocompilesquicklyandrunsefficiently,idealforlargeprojects.2)Efficiency:Itscomprehensivestandardlibraryreducesexternaldependencies,enhancingdevelopmentefficiency.3)Simplicity:

Golang and C each have their own advantages in performance competitions: 1) Golang is suitable for high concurrency and rapid development, and 2) C provides higher performance and fine-grained control. The selection should be based on project requirements and team technology stack.

C is more suitable for scenarios where direct control of hardware resources and high performance optimization is required, while Golang is more suitable for scenarios where rapid development and high concurrency processing are required. 1.C's advantage lies in its close to hardware characteristics and high optimization capabilities, which are suitable for high-performance needs such as game development. 2.Golang's advantage lies in its concise syntax and natural concurrency support, which is suitable for high concurrency service development.

The performance differences between Golang and C are mainly reflected in memory management, compilation optimization and runtime efficiency. 1) Golang's garbage collection mechanism is convenient but may affect performance, 2) C's manual memory management and compiler optimization are more efficient in recursive computing.
