Ruby has keyword arguments and optional arguments with defaults.
Among [many] other things.
21–30 of 61 posts
Ruby has keyword arguments and optional arguments with defaults.
Among [many] other things.
I don't really get the affinity of Go and Ruby. The most similar thing I could say about them both is that they're both not Java. This makes sense from a hiring sense, either your hiring from the large Jvm/.Net pools or you're not. I suppose both Ruby and Go have less steep learning curves compared to Java/Kotlin/Scala. I can't wait until Go v2 gets generics then I can use it like other statically-typed compiled, gc'…
"Go has become the new Ruby. A language I use to get things done, and enjoy programming again."
Good for him
Go really is the easiest language I've used. It installs with no fuss. The VSCode extension sets everything up and works perfectly. The library documentation is so clear that it usually answers any question I have without having to dig up blog posts and without dodging top search result Stack Overflow pages closed without answering the question. The highly opinionated nature means I can go into any Go code base and m…
Go is the new Java. It runs everywhere, is easy to learn and use and people who don't get it hate it with passion. Anyway, comparing go documentation with rust docs, I'm surprised anyone can get any work done with rust.
I kinda throught Elixir / Phoenix was the new Ruby / Rails. Nice read none the less.
Go really is the easiest language I've used. It installs with no fuss. The VSCode extension sets everything up and works perfectly. The library documentation is so clear that it usually answers any question I have without having to dig up blog posts and without dodging top search result Stack Overflow pages closed without answering the question. The highly opinionated nature means I can go into any Go code base and m…
Go is the new Java. It runs everywhere, is easy to learn and use and people who don't get it hate it with passion. Anyway, comparing go documentation with rust docs, I'm surprised anyone can get any work done with rust.
A statically typed compiled systems language with anachronistic C semantics and a regressive package dependencies system is never going to be a new high level DSL oriented scripting language. A far better take is that Crystal is the new Go, because it mixes the benefits of a high level language with the benefits of a lower level language, and learned a lot more of the lessons from the ruby and node ecosystems about h…
No, you can't. Language constructs in Go allocate in ways that are not immediately obvious. When the GC runs, it still has to scan all of that memory, regardless of whether you preallocated it or not, which is especially unfortunate with a non-generational garbage collector like that of Go.
Also, I have to say that I really don't get it when people say that they have to think about the borrow checker for a long time before writing a program in Rust. That's not the case for me or anyone else I know.
“All languages suck, but they all bring interesting concepts as well, that can overall make you a better programmer.” True on so many levels. Learning other languages means learning a new way of thinking due to the reasons those languages were created in the first place. Even if you never change the language you use daily, learning other languages and doing small projects in them will make you better in your “home” l…
Not true, There are lots of languages that bring absolutely nothing to the table in terms of making you a better programmer. Take something like Elm, it doesn't make you a "better programmer". It does make your program better by being statically typed. Kinda like typescript doesn't make you a better programmer than if you use javascript, but it makes your program better. You can say this for a lot of languages.
> But, just like in Java, if I need speed, I can preallocate and reuse memory to avoid hitting the GC. No, you can't. Language constructs in Go allocate in ways that are not immediately obvious. When the GC runs, it still has to scan all of that memory, regardless of whether you preallocated it or not, which is especially unfortunate with a non-generational garbage collector like that of Go. Also, I have to say that…
Also, while the garbage collector may not be generational, it's mostly concurrent. Looks like GC pauses are below 1ms now?