Better HN
topnewbestaskshowjobs
Log inSign up

zarlo

7 karma · joined Sep 20, 2024 (2y ago) · 11 submissions

Submissions

comment 2w ago · link · parent

Godot still defaults to .net 8

comment 2w ago · link · parent

One thing I really, really wish Go had was met a daughter that was checked at compile time.

me miss spelling a tag has burnt me so many times.

comment 2w ago · link · parent

Go is also very much a batteries included language when it comes to their standard library. Like it even comes with an ORM. Most people use the Http server that comes with standard library. even more so now that the router for it is a lot better.

comment 2w ago · link · parent

with Go, they have made one commitment. The language will always be backwards compatible. So code written in today's go should still be able to be compiled in 30 years using the compiler of the day. That means when adding new language features, they are very, very, very particular and stubborn about it.

comment 2w ago · link · parent

For me, I use both languages. But there's a lot of things which are only like a couple lines or very easy to do in .NET but to do it in Go is a lot of work.

Some example.

Open API document generation using type handlers doing this in go was a pain in .net is comes out of the box.

A lot of people underestimate the power of extension methods.

.nets metadata system is compiled time safe where Go is not and this has burnt me a lot.

I really like go for command line tools Small binary sizes I lovely.

go's standard library is significantly more hackable than .nets there have been a few things where I've ended up using Go because to do it in .net would require me maintaining a fork of the standard library.

Go makes composing data insanely simple. where in .NET you can have an equivalency but it will be done via interfaces.

Go's Dark Type System is both great and really annoying.

C#'s stricter type system when it comes to interfaces can be really handy as that can be used as metadata to change how data is processed and enforce compile time checks.

comment 1mo ago · link · parent

IEnumerators can also be value types So no heap allocation, just stack.

slightly off topic but a lot of things in .NET actually use compile time duct typing. like how async works To make your own task, you don't add an interface to it. You just implement a single method.

comment 1mo ago · link · parent

Yeah, I'm not going to use a toolchain where if my project is successful, I'm going to end up having to pay.

comment 2y ago · link · parent

i am upset that both spaces and tabs are used in the sql code blocks the first 3 use tabs and the last 2 use spaces

comment 2y ago · link · parent

its likely you have low bounce rates so they are allowing it

comment 2y ago · link · parent

i have self hosted for years never had any issues with people not getting emails