HNHacker News
TopNewBestAskShowJobs

gher-shyu3i

-7 karma · joined January 10, 2021

zmadaniia@gmail.com
submissionscomments
gher-shyu3i··on 2022 Ford F-150 Lightning
I wonder if they're going to provide diff locks for each axel.
gher-shyu3i··on 2022 Ford F-150 Lightning
I'm curious how it will perform off road. No need for a locking diff anymore if it has 1 motor per wheel.
gher-shyu3i··on Researcher at MIT analyzed 33K NYT articles on Palestine and Israel using ML
> This is a really bold statement

It's obvious. Any entity or agency that sides with the Zionist state, which was formed on stolen and occupied Palestinian lands, is biased. The tides finally seem to be changing, and truth is starting to dawn on people.

gher-shyu3i··on Science Has Become a Cartel
How do you think it's possible to address this issue?
gher-shyu3i··on Facebook Said It Would Stop Recommending Anti-Vaccine Groups. It Didn’t
Yet in the same breath, they censor anti-Israeli government posts.
gher-shyu3i··on Java's records, Lombok's data, and Kotlin's data classes
It's been resolved though.
gher-shyu3i··on U.S. has almost 500k job openings in cybersecurity
Probably non-dev jobs too, managers, tech writers, HR, office assistants, etc.
gher-shyu3i··on Bitcoin’s plunge intensifies, tanks 30% to $30k in single day
Temporary. Back up to $37K now.
gher-shyu3i··on Crypto crash deepens, stocks slip
Attention seeking headline. Stocks are down as well. From the very first sentence:

> Global stocks slipped and cryptocurrencies sank deeper on Wednesday as a threat of unwanted inflation had investors shy away from assets seen as vulnerable to any removal of monetary stimulus

This whole fiasco is because of money printing at will.

gher-shyu3i··on Uber Engineering Tricks of the Trade: Tuning JVM Memory for Large-Scale Services
What do they migrate to if they need on-prem solutions?
gher-shyu3i··on Half a million lines of Go
It is, and Java/C# and gang have superior tooling.
gher-shyu3i··on Half a million lines of Go
> it’s purely a count of newline characters per my original point

It's not simply that. Compare in golang:

    var res int
    if <some condition> {
       res = foo()
    } else {
       res = bar()
    }
to what other languages offer like

    let res = if <some condition> { foo() } else { bar() };
The golang version is both more verbose, and more error prone.

These things add up. Let alone how it takes dozens of lines of code in golang to implement what essentially is a sequence of map/filter/groupBy. The logic in languages that support the latter immediately stands out, whereas in golang you have to read it line by line to figure out what's going on.

What's ironic is that even with the proposal to add some of those to golang, they're still going to be vastly inferior to the implementations we have in Java/C#/Scala/etc. because they don't compose in golang, and are still going to be very awkward to read.

gher-shyu3i··on Half a million lines of Go
> Portable binaries, good cross-compilation support,

Nothing to do with the language. Other platforms provide the same features.

> goroutines and channels

Extremely verbose and also error prone. C#'s Tasks are much better abstractions for example.

> the language does make it easy for novices to write performant one-offs

Nothing to do with the language itself, it's just that it's compiled not interpreted like Python.

gher-shyu3i··on Half a million lines of Go
Could you list some of its powerful features? The only thing that gets a passing mention is goroutines, and even they are not implemented in a great manner.
gher-shyu3i··on Half a million lines of Go
Sorry about that. You wrote that the power it gives you does not justify the mess of the language. I agree that the language is messy, but that it also lacks any power whatsoever worth speaking about :)
gher-shyu3i··on Half a million lines of Go
It's the nature of golang to be verbose like that. It has very low code density, meaning it takes writing a lot of code to express something that could have been expressed in a much more concise manner in a stronger modeling language like Java or C#.
gher-shyu3i··on Half a million lines of Go
> you can follow the logic always 100% of the time

You can see the bare bones if conditions and for loops sure, but what are they actually trying to do? golang code is very thin - it takes a lot to write to convey a particular piece of logic. What a few lines of map/filter/accumulate/group by in a more expressive language like Java or Kotlin becomes dozens of lines in golang. It becomes challenging to extract the underlying logic and to follow it. Java and Kotlin are strictly superior.

gher-shyu3i··on Half a million lines of Go
Could you elaborate on what power it give? After working on several projects in a golang monorepo, it's exceedingly weak at modeling, which results in verbose code that is also thin - meaning that it takes a lot to write to say a few things. You can see the for loops and if conditions in front of you, but it's difficult to extract the underlying logic its trying to convey.

The code bases were a complete mess to work on, and even new projects are suffering because of it - no lessons learned can fix it because the language is so weak.

gher-shyu3i··on Israeli airstrike in Gaza destroys building with AP bureau
What extremism? They're literally asking for their homeland and rights.
gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
The language authors did not work on large systems. If their position did hold any merit, we wouldn't have seen many people try to solve the shortcomings of their language.
gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
> You're speaking as if generating mocks and adding stack traces to errors are... features

They're working around a weakness in the language. Stack traces in exceptions are definitely a feature. golang doesn't offer it out of the box, which is why the abomination of a framework I was telling you about had to be written. Similar things had to be done to work around the lack of generics, or the lack of composability of goroutines, or even in normal functions because of lack of composability of error handling.

> Sometimes I truly don't understand the context that my peers are working in. Totally incoherent...

Exactly what I think when I see people writing large projects in golang, and all the messes they have to go through to work around its limitations.

gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
Because interfaces are nominally typed, it's very simple to accidentally implement interfaces that are defined in other parts of the code base, even though they are not related to your project. This makes searching for implementors of a given interface in a project show implementors you don't care about, which makes navigation and discoverability very tedious.

Furthermore, golang does not have a proper format for docstrings like Java or C#. When refactoring, the IDE tries to be smart and parse all comment strings as they are doc strings, and when you want to rename a struct, you're going to get a huge dialog with so many entries which can be false positives, and you have to go through them manually to check whether or not they apply. Same as with the interface issue, similar struct names may appear all across the code base which makes this refactoring very tedious.

There are other issues of course, like the fact that golang has no constructors, and structs are defined adhoc, meaning adding a new field to it needs more hunting across the code base to make sure you don't miss defining and break something.

gher-shyu3i··on Scala 3.0
Slow from a performance perspective, or to read and write code?
gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
> which you know a priori and therefore have no need to go spelunking.

Except when you're working on a codebase that's new to you, and you're trying to navigate it to make a change somewhere, so you don't have a priori knowledge about what implements which interface.

gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
> Sounds like they were trying to force the language to be something it's not

They're getting around the lack of features in the language. Most languages that I know of have mature DI solutions, and those are needed for writing any non-trivial app.

Also, one of said frameworks I was referring to generates mocks for your app and wraps errors so you automatically get stack traces in errors that are being passed around. Something already solved in Java and C# and practically any language with exceptions.

gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
True. What's sad is that we had already known that generics, proper error handling, and enums were a good thing when golang was first written, yet they were purposefully ignored.
gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
golang fails miserably in a monorepo setting, which is ironic because it was designed at Google, and Google are known for their monorepo.
gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
It still is, it's inherent to the way interfaces are designed. Did you use golang on a monorepo for example?
gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
> first have an application framework, specific to your application.

So we're reinventing the wheel each time no?

> And no, you won't have mapping logic between RPC and internal and DTO.

How would it work then? Use the same DTO across the board?

gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
> Use a framework that understands your schema / data storage system.

The whole supposed premise of golang is that it shuns frameworks. What frameworks do you recommend in golang for such applications?

You're still going to end up writing mapping logic back and forth between your RPC layer, internal layer, and DTOs. It's extremely verbose and error prone in golang to manually write them.

← PreviousPage 3 of 17Next →