Live data from Hacker News

Just Use Go

blainsmith.com

121–130 of 238 posts

Re: Just Use Go

#121
post #118

For web stuff, I enjoy https://htmx.org so Go + Templ + HTMX (aka the GOTH stack) Or, if you prefer more of a power tools feel, then HTMX and Raku in functional style ( https://harcstack.org ) maybe to your liking. Which I call the Crotch Rocket of the programming world.

That looks like a fun stack—especially the Raku—but have you ever actually deployed anything using it?

Here are some:

  - https://raku.org (dog-fooding)
  - https://harcstack.org
  - https://cragcli.info
It's fairly early days ... but a couple of other Raku community sites are taking it up.

Re: Just Use Go

#122

Earlier quoted context omitted.

sqlc is pretty darn great but it's no comparison to Django. Django has its own problems and I would love for it to take some lessons from sqlc. Really hate we don't have proper type hints for Django.

Is django the best backend batteries included framework at the moment?

For the ORM/schema evolution part at least imo. And iommi is written for it so that is also a big boost (I'm one of the authors of iommi :P)

Re: Just Use Go

#124
post #101
post #80

Earlier quoted context omitted.

Why the Null handling and in Go is worse than others?

It sets primitives to 0, "", false etc. Which is almost always but not always fine. And if they're complex objects you still get NPEs To get true nullable fields you need to use pointers. That's a whole topic in itself but they're awkward. It's much worse than true nullable objects that your compiler can check for NPEs. It throws fewer NPEs but at the expense of data integrity where you don't know if your 0 is actual…

What if Go went all the way? Referencing a zero pointer (nil) gives you the zero value of the pointed to type. If you try to access a zero map, it tries to deference the zero pointer to the underlying buffer. The zero pointer gives you the zero slice with zero length. The presence check fails without crashing and you get some pretension of reasonable behaviour.

Re: Just Use Go

#125
post #112

Earlier quoted context omitted.

Let me copy paste my other comment: "This is getting really fucking irritating. Every 3rd comment on every HN post is "This is LLM", which has become a proxy for "I dont like it so it must be llm"

This one has major signs of LLM speak, specifically Claude. Normal humans who rant like, actually rant. This is AI generated rant.

Yeah it's taking itself a bit more seriously than an actual human would.

Re: Just Use Go

#126

I love Go. But I prefer .NET for web development that also compiles to a binary and has a great ecosystem of libraries and packages. Go is great if standard library works (and it can for many cases) but when you need to start looking into non standard libraries, Go can hit limitations. For example, to build a full production web application with database in Go, there is no great out of the box migration tool. There a…

Comparing Go and .NET is like comparing a Honda with an aircraft carrier with wheels.

Re: Just Use Go

#128

I like go, but a lot of little things stop me from loving it. Like, enums. I get a lot out of the box when I use an enum in Java or Kotlin. Converting to/from a String is trivial. Type safety ... exists. I can do that in Go, but I have to hack it in, for every single enum type I want to represent. Enums are not a thing in the language, which means its easier to keep the language in your brain all at once, but at the…

The convention of explicit error handling after every method call is absolutely bonkers to me. I would never use it for anything serious.

Re: Just Use Go

#129
post #101

Earlier quoted context omitted.

It sets primitives to 0, "", false etc. Which is almost always but not always fine. And if they're complex objects you still get NPEs To get true nullable fields you need to use pointers. That's a whole topic in itself but they're awkward. It's much worse than true nullable objects that your compiler can check for NPEs. It throws fewer NPEs but at the expense of data integrity where you don't know if your 0 is actual…

What if Go went all the way? Referencing a zero pointer (nil) gives you the zero value of the pointed to type. If you try to access a zero map, it tries to deference the zero pointer to the underlying buffer. The zero pointer gives you the zero slice with zero length. The presence check fails without crashing and you get some pretension of reasonable behaviour.

[deleted]

Re: Just Use Go

#130

Why is this flagged? Because of the swearing? Cause there have been previous posts with swearing in them? Or do people in general hate Go so much? I know the OP said dont use external libraries, but I love bubble tea (And their related libs), they are a great reason to use Go for TUI that said, I only use Go for hobby projects, I dont know how good it feels if you have to use it for work 40 hours a week

Maybe because the style is just worn-out ragebait trolling now.
Post reply on HN