HNHacker News
TopNewBestAskShowJobs

gher-shyu3i

-7 karma · joined January 10, 2021

zmadaniia@gmail.com
submissionscomments
gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
> Proper algebraic data types, typeclasses + constraints instead of inheritance, good concise syntax -- there are better type systems out there but most people have only used Java/C#

What's ironic is that both Java and C# are getting ADTs (sum types) and pattern matching. Java already gives you exhaustive pattern matching with the upgraded switch statement. I think C# has a proposal for an HKT-like capability, though not sure how far along that is or how much of a priority it is.

gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
You can say the same about Java and C#. These claims about golang are all baseless as far as I'm concerned, especially since they're contradicted by reality.
gher-shyu3i··on Show HN: We wrote a book about building business applications in Go
> The simplicity of Go did not result in simpler systems.

I echo this 100%. I worked at an employer who heavily used golang. The resulting projects were honestly a mess, yet they pushed through.

What's ironic, is that they ended up reinventing the wheel on so many different things, including DI and an entire application framework. Millions of dollars spent writing and maintaining these libraries, where Java already had them ages ago.

As you point out, the modeling capability of golang is extremely subpar. It results in verbose code that is very sparse, lots of code to implement something that would have taken a few lines in a language like Java and C#, let alone something more dense like Scala.

The way interfaces are handled in golang makes it very annoying to try to find out which types implement said interface. It puts a lot of pressure on the IDE to search the entire code base, and you end up with types you don't even care about. It clearly shows that the golang authors did not have IDEs in mind when writing the language, which is just absurd as it's supposedly a language designed for "programming in the large". Anyone who used "goland" knows what I'm talking about. Try refactoring a type, and have the IDE scan the entire code base to look for comment strings, which it has to because golang has no notion of doc strings like Java or C#.

Add features like records, pattern matching, enums (the amount of code that had to be written to implement something to emulate enums was just absurd and frustrating to deal with, not to mention error prone).

The concurrency aspect of golang is decent (though it will be even better in Java). Other than that, the language doesn't really have anything going for it other than having a large brand name backing it.

gher-shyu3i··on US millionaire CEOs saw 29% pay raise while workers’ pay fell
You're assuming good wages and good education make people always happy.
gher-shyu3i··on An intro to Zig's integer casting for C programmers
Zig is shaping up to be a very nice language. It has some very cool ideas. I hope we'll see more of it at a larger scale.
gher-shyu3i··on gRPC benchmark results
Not necessarily. Bump allocations are extremely cheap, and collections can be batched to avoid interruption and performance impact.
gher-shyu3i··on Lung cancer in never-smokers: a hidden disease (2019)
You simply buy them.
gher-shyu3i··on Lung cancer in never-smokers: a hidden disease (2019)
It's not hard to build a DIY air filter with a box fan. Lots of videos on youtube.
gher-shyu3i··on Police Kill Too Many People–White and Black (2016)
This seems to go against your claim of systematic racism[1]. More whites than any other race have been shot and killed by the police in the last 3 years.

[1] https://www.statista.com/statistics/585152/people-shot-to-de...

gher-shyu3i··on “About one-third of Basecamp employees accepted buyouts today”
Sorry to say, but that's simplistic thinking. And going too far in the other direction as we're seeing today is a recipe for chaos. Society becomes overly brittle, and the smallest hit will shatter it.
gher-shyu3i··on Labor shortage or terrible jobs?
Is it the same for restaurant workers in Europe?
gher-shyu3i··on Inheritance was invented as a performance hack
An atheistic/secular lifestyle tends to result in such outcomes.
gher-shyu3i··on Inheritance was invented as a performance hack
Exactly. There are many rich people who have properly raised their children.
gher-shyu3i··on Inheritance was invented as a performance hack
What's wrong with someone wanting to provide for his offspring?
gher-shyu3i··on Lambda School lays off 65 employees
It's obviously trying to jump on the data science hype train and make quick money while making exaggerated promises.
gher-shyu3i··on U.S. Labor Secretary throws support behind classifying gig workers as employees
The government doesn't want to do its job. Nothing to do with labor laws.
gher-shyu3i··on U.S. Labor Secretary throws support behind classifying gig workers as employees
Shhh, don't spoil the socialist utopia with reality.
gher-shyu3i··on U.S. Labor Secretary throws support behind classifying gig workers as employees
> Has anyone asked the gig workers how they feel about this? Do they want to be W2 employees?

They don't. They had a survey and that's why Prop 22 passed.

gher-shyu3i··on U.S. Labor Secretary throws support behind classifying gig workers as employees
It's not a legal hack. If the government is not doing its job, these companies provide ways for people to make ends meet instead of going out to the streets to beg.
gher-shyu3i··on Ask HN: Can Salesforce be a long term career?
Haven't they moved off of Oracle? I recall seeing they had job openings for Postgres admins with the intention of moving off of Oracle.
gher-shyu3i··on Ask HN: Please Dark Mode for HN
Try using the DarkReader plugin:

* https://addons.mozilla.org/en-US/firefox/addon/darkreader/

* https://chrome.google.com/webstore/detail/dark-reader/eimadp...

gher-shyu3i··on My experience with sexual harassment in the Scala community
> Marriage has nothing to do with it

Of course it does. Marriage means responsibilities and protects rights, and no one night stands. Just because abuse happens in some marriages does not mean that we should leave sexual relationships to happen adhoc. Limiting sexual relationships to contracts (marriage, not prostitution) is the solution that has worked forever basically. The widespread of STDs, not to mention children out of wedlock, not to mention the mental tolls that come out of easy relationships is already documented, and the society is paying the price.

The incident in very article you're replying to would have been avoided had there been no casual interaction with the man, let alone sleeping with him in the same room.

> your point is clearly proven wrong by and large.

Quite the contrary. We're already seeing the effects on conservative societies that have "westernized", and normalized sex outside of marriage. The effects have been catastrophic to say the least at every level: mental, societal, familial, health, financial. The society in its entirety is paying the toll.

gher-shyu3i··on Green vs. Brown Programming Languages
Code bases in reality still do what I'm describing, and they pass code reviews. Kubernetes is one example of the atrocities caused by the language.
gher-shyu3i··on Green vs. Brown Programming Languages
Algebraic types would solve the issue in the example you're giving. However, those don't exist in golang either.
gher-shyu3i··on The health benefits of better air
This means that everyone should wear N95+ masks on the subway trains.
gher-shyu3i··on Print Debugging Should Go Away
Not everything is up for interpretation in Islam. For example, homosexuality is prohibited, and no amount of "interpretation" is going to change that. Same goes with drinking wine or intoxicants. There is no valid interpretation of Islam that allows such behaviors.

You'd be surprised to find that said "religious leaders" you're referring to don't know the basics of exegesis. This applies to ISIS for example. I invite you to read the many Hadiths about Khawarij, those immediately reject your premise that all interpretations are equally valid. They're not.

gher-shyu3i··on My experience with sexual harassment in the Scala community
> we parents need to get better had having conversations with our children around sex.

Exactly. The conclusion is simple, yet challenging to implement: don't have sex outside of marriage. For girls and women: don't have casual relationships with men. Problem solved.

gher-shyu3i··on My experience with sexual harassment in the Scala community
> I felt bad that I made him feel untrusted and stopped asking others to join.

Mistake #1

> Remembering that he had suggested I get milk and wine in our previous conversation, I also bought them. I don’t remember how much I drank.

Mistake #2.

Obviously we're not excusing the behavior of the guy. However, when will we learn that we should not mix genders this way, and especially the many times people have been bitten with alcohol. It's bizarre really. People want to have their cake and eat it. They play with fire then cry when they get burnt.

gher-shyu3i··on Print Debugging Should Go Away
> As long as you accept it is their right to define that, and not you!

That's not how Islam works. That's how it was able to survive against the torrent of corruption that affected Christianity and Judaism. The Quran and Hadiths are preserved so that we're easily able to consult them to determine who is and isn't a Muslim. Note that this isn't gate keeping, Islam is wide open for anyone to accept. However, the tenants are strict enough to survive the passage of time.

> You can call them a bad Muslim, ignorant, misinformed, misguided etc. But they are what they believe themselves to be.

This already happens. I'm talking about the extremes that the secular West has adopted, whereby people can inherit their parents religion, even if they don't believe in it.

gher-shyu3i··on Print Debugging Should Go Away
> the fundamentialist part is important

It's still outright wrong. Your experience with Christian and Jewish fundamentalists does not apply to Muslims. Please stop with spreading incorrect information about Muslims.

ISIS is a fringe group whom we don't give any semblance of credence to, and even they would not look down at washing machines "because it's a woman's job". This is plain ridiculous.

The secular West continues to group all religions together and marks any religious person as some sort of sheep.

Also, let's stop with this "identifies as" business. A person is either a Muslim or a non-Muslim. A person who does not believe in God cannot "identify as" a Muslim for example. That being said, the religion is open to anyone who wants to accept it.

← PreviousPage 4 of 17Next →