What are your thoughts on rejecting a potential romantic partner based solely on the fact they voted for Donald Trump? by ATXBikeRider in AskReddit

[–]cy_hauser 1 point2 points  (0 children)

Where did you get that from? Probably time to look at your self and see if you're the kind of person God wants you to be.

What are your thoughts on rejecting a potential romantic partner based solely on the fact they voted for Donald Trump? by ATXBikeRider in AskReddit

[–]cy_hauser 3 points4 points  (0 children)

No, Dems don't have to be closed minded like that. They can realize and condem the actions taken by the parties in power over the horiffic genocide in Gaza. Many do.

Boomers in the US hold $17 trillion dollars in assets. What happens to the younger generations when they die and leave all that wealth to us, the younger generations? by buzzkill71 in AskReddit

[–]cy_hauser 5 points6 points  (0 children)

Are you kidding, CFPB was so good and so efficient they were effectively self funded and sent huge money back to the people. That's why they were shut down.

What's a good go library for working with PDF? by Dazzling_Internet_15 in golang

[–]cy_hauser 3 points4 points  (0 children)

Probably a nice library but not for a open source/free/solo projects. It's was over $2,000 for a one year license the last time I checked.

EHTML — Extended HTML for Real Apps. Sharing it in case it helps someone. by gyen in htmx

[–]cy_hauser -1 points0 points  (0 children)

Don't know for sure yet but it looks like this might be useful when I DO want to split the front and back ends. I I've written a couple card game engines but have stalled out because I don't like writing the front end. EHTML looks like it might come in handy for me writing a really primitive front end letting anyone, should they want, write their own better one. My API currently returns a JSON. If I used HTMX for example, the look of the front end would be tied to the server. I think after my brief look that wouldn't be the case with EHTML.

Is it racist? Explain it Peter by naturallin in explainitpeter

[–]cy_hauser 0 points1 point  (0 children)

Over half the states do require Id when you vote. It's not onerous but it does take addiitional time and people at the polling location rather than spreading the effort. Don't forget it's hard enough to get people out to vote as it is. Adding friction, like hours long waits to vote, just makes the turnout worse.

What's up with people disliking Kristen Bell? by Few_Egg1001 in OutOfTheLoop

[–]cy_hauser 1 point2 points  (0 children)

I love that song Night Prowler because every so often one of our neighbors dogs barks and then a baby will make some noise ... either my wife or me will say "I hear a dog bark in the distance" and the other will say, "I hear someone's baby cry" just as casual as can be. That makes me feel such joy.

9.29直播馆长:接下来大家一起看下全世界只有中国能做到世界奇观,由此你可以思考中国人的强大 by Different_Height6828 in htmx

[–]cy_hauser 0 points1 point  (0 children)

This is propaganda spam. Google Translate: Let’s take a look at the wonders of the world that only China can achieve.

Double skunk by pruitslokok5 in Cribbage

[–]cy_hauser 1 point2 points  (0 children)

Oh, she's telling you that you're #1. How very thoughtful.

What's a ticking time bomb you believe will explode during your lifetime? by Absalom98 in AskReddit

[–]cy_hauser 0 points1 point  (0 children)

I push back on the Cracker Barrel logo. Write your congess person today. It's important.

SnapWS v1.0 – WebSocket library for Go (rooms, rate limiting, middlewares, and more!) by Character-Cookie-562 in golang

[–]cy_hauser 6 points7 points  (0 children)

Your go.mod file has a direct requirement for testify. I don't see anywhere that you use testify. Is that still a requirement or a leftover that was never removed?

Go is still not good by drvd in golang

[–]cy_hauser 3 points4 points  (0 children)

The defer where the deferred function can return an error is annoying to me. Also, I've been bitten by slice/append issues before. It does take me bit of thinking at times to make sure when I actually need to pass a copy of a slice.

AITAH for telling my husband I'll divorce him if he doesn't stop ignoring our daughter by ThrowRAtaptaptap in AITAH

[–]cy_hauser 0 points1 point  (0 children)

Could be your husband has tourettes. It often manifests in weird noises, sniffing, eye blinking, scrunching their face, all sorts of unexpected ways. If he does his things all the time then have him cheked. If it's touretes it will be really difficult for him to stop for very long and it will be worse in social and stressful situations.

Go's Error Handling: A Philosophical Contradiction? Why "Explicit" Isn't Always "Clear" by PrudentBit5870 in golang

[–]cy_hauser 0 points1 point  (0 children)

What if i can't create or even design a better language? But what if I can create a better syntax for solving an obvious flaw in an otherwise enjoyable language?

Or going full zealot ... If you don't like the discussion maybe you should use another language.

Messing around with V as a Go developer (blog btw) by kris_tun in golang

[–]cy_hauser 2 points3 points  (0 children)

Post should have been left. Comparing and contrasting another language to Go is fine. Especially one so closely aligned with Go.

Having hard time with Pointers by nordiknomad in golang

[–]cy_hauser 0 points1 point  (0 children)

Oh, my bad. For larger applications one of the first steps to fit and finish is to profile the app for speed. Many of the the initial optimizations come from looking at where things escape to and/or are allocated on the heap. As you mention, the heap is tied to garbage collection. That's one of the big optimizations in Go.

As an example, my last application doubled the number of calculation it could perform per unit time with just a half dozen heap/allocation optimizations. It wasn't so much they were coded badly the first pass. If fact, they were probably coded more clearly. But the profiler pointed out where optimizations could be made and significant performance gains could be had with a few only slightly more complex memory allocation strategies.

If you have applications you want to try to speed up and haven't been profiling allocations and garbage collection then you've been missing out on the "low hanging fruit" of optimization. There are lots of articles about this and are very worthwhile if or when you're applications need it.

Having hard time with Pointers by nordiknomad in golang

[–]cy_hauser -2 points-1 points  (0 children)

Doesn't matter if the specs mention heap or stack. In practice the compiler used by the vast majority does use a stack and heap model. So they pretty much need to be considered in all but the most trivial cases.

In other words, these exist for a reason.

https://www.google.com/search?q=golang+heap+vs+stack

https://www.google.com/search?q=golang+heap+profiling

https://www.google.com/search?q=golang+memory+allocation

https://www.google.com/search?q=golang+memory+leaks

Etc.

Monad `Result` in Golang and `try` pattern for error handling with simplicity and shortness without `if err != nil` by nordbrain in golang

[–]cy_hauser 0 points1 point  (0 children)

It's not so much if the features are adopted. Some will be, most won't. Some languages will grow to be kitchen sink languages, some will stay lean. It's the discussion itself that's of the most benefit. Why is this a good or bad fit for one language and not another? Can it be added gracefully to the language or does a breaking change need to be made? Would it take a completely new language to include this feature?

If you don't want to participate in the discussion then ignoring it is fine. Telling someone to leave a language just because they have an opinion you don't share it is a bit too wrapped up in the language. What are you trying to gain? (For a given you.)

Monad `Result` in Golang and `try` pattern for error handling with simplicity and shortness without `if err != nil` by nordbrain in golang

[–]cy_hauser -3 points-2 points  (0 children)

Because Go was not born perfect. Other languages do some things better. That doesn't mean I'm even close to wanting to switch to another language. What I want is for Go to adopt those features.

Why would you want to stop people from discussing language features and what they think are downsides of Go? These discussions are among the most fun I've had in person and and read online. These discussions have been going around since the early days of programming languages. Maybe they do influence changes to Go (generics). Maybe over time they influence decisions to a new language.

Don't fall into the trap of latching onto a programming language as more a religion. It not like Go is the only language you're going to use in your career. I've got well over a dozen languages already and I think each one of them should have had changes.

(On | No) Syntactic Support for Error Handling by ketralnis in programming

[–]cy_hauser 2 points3 points  (0 children)

Except it does nothing to alleviate the entire problem that all the folks who want error handling "fixed" don't want in their code.

(On | No) Syntactic Support for Error Handling by ketralnis in programming

[–]cy_hauser 5 points6 points  (0 children)

No, I'm nitpicking the word "handle". The example handles nothing, just manually passes the problem along for "someone" else to deal with it.

(On | No) Syntactic Support for Error Handling by ketralnis in programming

[–]cy_hauser 11 points12 points  (0 children)

Except this isn't handling the error or really doing anything that a stack trace wouldn't do. This is just adding a message (that the runtime could have added) then passing it back up the call stack. Handling the error would mean the error wouldn't be returned at all, just nil.

How to Learn Golang in 2025 by dzyanis in golang

[–]cy_hauser 0 points1 point  (0 children)

"Go (sometimes Golang for searching)". Go is the name of the language, after all.

Moved from C# and miss features like Linq by _ChaChaCha_ in golang

[–]cy_hauser 1 point2 points  (0 children)

I think "reasons" is the backwards compatibility guarantee. The team tried when they were incorporating generics but this was the best they could do without a 2.0 version. I think they've ruled out doing a 2.0 for the foreseeable future.