Building a Golang Web App using SQLite

  Рет қаралды 3,986

cdruc

cdruc

Күн бұрын

Пікірлер: 19
@yuxiang4218
@yuxiang4218 12 күн бұрын
Great video! The current stacks like Next.js and Prisma feel too abstract-it's refreshing to see everything work with basic HTTP server, raw SQL and scanners, and native HTML form method!
@DaviMartins99
@DaviMartins99 3 ай бұрын
Great video, cdruc! I've been dabbling with Go for the past few weeks, but I have not touched the HTTP side of it so far, still getting used to the syntax, concurrency and stdlib modules/functions. If you have some time, I got a few questions: 1. Is using the internal HTTP package and basically implementing everything from scratch the professional way of building HTTP services in Go? I have seen people from the Go community advising against pulling externals libraries. 2. As of the final state of the application, how testable are the endpoints? 3. And finally, can you share some libraries that you're always pulling in Go projects?
@cdruc
@cdruc 3 ай бұрын
Thanks! To be honest I'm a Go newbie myself - so I'm not in a position to recommend *any* package right now. From what I understand, the net/http library wasn't that great in the past (no way to specify the request method, no named parameters, etc) - and that's why people turned to things like gin, chi, *whatever*. Yes, the Go community is mostly against using packages. Everybody glorifies the stdlib - which is indeed, great (but probably not THAT great to be outraged when someone asks about libraries lol). Right now I try to build things using *only* the stdlib but just because "I want to do it myself so I can learn more/better/faster", not because "uSiNg PaCkAgEs Is BaD". Basic testing seems nice but haven't really delved into HTTP testing (doesn't look fun though, lots of boilerplate needed). Good luck with your learnings!
@DaviMartins99
@DaviMartins99 3 ай бұрын
@@cdruc thanks a lot, very insightful :)
@othmanalmahdy
@othmanalmahdy 24 күн бұрын
a great video but i have a problem the html dose not render the posts and i loged the posts before sending them to html and there is posts avilable but no data to render ?
@cdruc
@cdruc 23 күн бұрын
that's weird if you send me a repo link, I'll gladly have a look!
@LynxIo-wr4ul
@LynxIo-wr4ul Ай бұрын
Is really the Golang + tmpl + htmx stack production safe? I see building for example a blog, its ok specially if you use Hugo framework. But what about middle size apps, such as ecommerce or a learning platform? Thank you again :D
@cdruc
@cdruc Ай бұрын
no idea tbh. I haven't used htmx at all. Looks cool but I don't think it's suitable for larger apps. Again, I haven't used htmx so my opinion is of no value. The "stack" i'm playing with right now is a monolith golang + react&react-router - really happy with it.
@LynxIo-wr4ul
@LynxIo-wr4ul Ай бұрын
@@cdruc Thank you very much. Really appreciate your answer. I was also looking at that stack. I will give it a try. Thanks again !
@jefferymuter4659
@jefferymuter4659 Ай бұрын
I use that stack in big prod sites, no issues. I have no clue why people talk about it not being a prod stack. But it works fine at scale for us.
@zemorango
@zemorango Ай бұрын
Nice tutorial but I'm getting error : app.routes undefined (type app has no field or method routes)
@cdruc
@cdruc Ай бұрын
ensure that the routes function has the app *app as the receiver and that they are defined under the same “main” package
@Juikun
@Juikun 6 күн бұрын
what is timmy generate?
@cdruc
@cdruc 5 күн бұрын
just me making fun of chatgippidy before it comes and takes my job
@karlson2804
@karlson2804 2 ай бұрын
Way people say Go Eaear and better there is not a good structure and OOP for me as laravel dev for now it's all confusing.
@cdruc
@cdruc 2 ай бұрын
idk man, i've been playing with it for months now. initially i was put off by the lack of features because *everything* is WAY harder to build with go. but the benefit is: you are forced to understand what it is that you are actually doing. and that's a massive benefit because it translates well across *any* language. Laravel is untouchable in terms of productivity - there's NOTHING like it. But that productivity comes with a cost: you tend to understand less/not care about what's happening behind the scenes - you just see things working. magic! And that's totally OK if you're *knowingly* willing to pay that cost. Golang: you get nothing. You have to build it yourself. And that's the beauty of it.
@Juan-Chan
@Juan-Chan 3 ай бұрын
Very informative thanks! what's the VS Code database extension in kzbin.info/www/bejne/p567o4yQltuEf8U edit: found: it's qwtel.sqlite-viewer
@Juan-Chan
@Juan-Chan 3 ай бұрын
found: qwtel.sqlite-viewer
@cdruc
@cdruc 3 ай бұрын
Yup, that's the one I use 👍
The Simplest Tech Stack
9:38
Awesome
Рет қаралды 133 М.
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 4,7 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 4,9 МЛН
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 42 МЛН
David Crawshaw   SQLite and Go
32:03
Go Northwest
Рет қаралды 37 М.
DIY Golang Web Server: No Dependencies Needed!
25:04
Flo Woelki
Рет қаралды 11 М.
Go application setup with PostgreSQL, sqlx, goose migrations
9:38
Make Programming Fun Again
Рет қаралды 8 М.
THIS is the BEST Way to Write HTTP Services in Golang
13:53
Golang Project: Building a Secure Login Portal
10:39
Alex Mux
Рет қаралды 6 М.
Session-Based Authentication in Golang
23:36
cdruc
Рет қаралды 4 М.
SQLite в Golang - как использовать, на примере Telegram-бота
27:22
Николай Тузов — Golang
Рет қаралды 14 М.
PocketBase... The Ultimate Side-Hustle Backend?
3:31
Fireship
Рет қаралды 526 М.
Mastering Procedural Macros in Rust: A Comprehensive Guide Pt 1
55:11
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 4,7 МЛН