Live data from Hacker News

The 4-chan Go programmer

dolthub.com

31–40 of 177 posts

Re: The 4-chan Go programmer

#31

There is a Go developer that defends using channels four times like in this blog, he also made some great medium posts in which he details real use cases. His name is Christopher, if you want to find more about him, just Google “chris chan 4chan”.

Holy shit I actually did Google this. Yikes.

If you're a Go programmer, this is about a guy who fucked his mom and has nothing to do with Go programming.

Re: The 4-chan Go programmer

#32

There is a Go developer that defends using channels four times like in this blog, he also made some great medium posts in which he details real use cases. His name is Christopher, if you want to find more about him, just Google “chris chan 4chan”.

Can someone explain this for people who don't want to do it?

Re: The 4-chan Go programmer

#33

Earlier quoted context omitted.

I mean to a point that makes sense; you got your base data types like idk, a bank account number which can be validated, which is inside a bank account which can be validated, which is in a customer which can be validated, etc etc. Visitor pattern style, I believe?

imagine allowing invalid values to exist

This is actually my preferred approach. If you want to put a 4gb base64 as your phone number, go right on ahead; best believe I will truncate it to a sensible length before I store it, but sure. Who am I to question your reality.

Sadly, people abuse shit like that to pass messages (like naming Spotify playlists with messages to loved/friends/colleagues while in jail) and maybe we have to assert a tiny bit of sanity on the world.

Re: The 4-chan Go programmer

#34

There is a Go developer that defends using channels four times like in this blog, he also made some great medium posts in which he details real use cases. His name is Christopher, if you want to find more about him, just Google “chris chan 4chan”.

Can someone explain this for people who don't want to do it?

[deleted]

Re: The 4-chan Go programmer

#36

There is a Go developer that defends using channels four times like in this blog, he also made some great medium posts in which he details real use cases. His name is Christopher, if you want to find more about him, just Google “chris chan 4chan”.

Can someone explain this for people who don't want to do it?

Reference to a mentally disturbed person who became internet famous and was recently arrested.

Re: The 4-chan Go programmer

#37

Earlier quoted context omitted.

I mean to a point that makes sense; you got your base data types like idk, a bank account number which can be validated, which is inside a bank account which can be validated, which is in a customer which can be validated, etc etc. Visitor pattern style, I believe?

imagine allowing invalid values to exist

> imagine allowing invalid values to exist

Pretty common, for example when using databases as a mostly dumb store with all the logic in application code, and then a second application (or big refactor) appears and they introduce a subtle bug that results in an invalid `INSERT` (or whatever), and the database happily accepts it instead of rejecting it.

Re: The 4-chan Go programmer

#38
post #24
post #7

As a scientist that ends up working closely with actual professional software engineers... lots of the stuff they do looks like this do me, and I can't for the life of me make sense of why you'd do it. I have seen a single line of code passed through 4 "interface functions" before it is called that call each other sequentially, and are of course in separate files in separate folders. It makes reading the code to figu…

> I can't for the life of me make sense of why you'd do it. Over-engineering is a common cause: simple solutions can be deceitfully difficult to find. That being said, additional indirection layers are usually justified by the overall architecture, and — assuming they're reasonable — can't always be appreciated locally. « I'm always delighted by the light touch and stillness of early programming languages. Not much t…

"I apologize for such a long letter - I didn't have time to write a short one." - Mark Twain

Re: The 4-chan Go programmer

#40
post #7

As a scientist that ends up working closely with actual professional software engineers... lots of the stuff they do looks like this do me, and I can't for the life of me make sense of why you'd do it. I have seen a single line of code passed through 4 "interface functions" before it is called that call each other sequentially, and are of course in separate files in separate folders. It makes reading the code to figu…

I chalk it up to "complexity envy" If they have real problems why can't we?

source me: CS by edu, science geek by choice.

Post reply on HN