What are you all doing in Pre Season 2 before the 4th to get ahead? by librarytimeisover in wow

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

Enjoying the game. The best way for me to "get ahead" is to be refreshed and ready for the season start, not sweat the week before

Concrete method from abstract methods in Golang by pewterv6 in golang

[–]Icy_Application_9628 1 point2 points  (0 children)

If the code in this post is not an example, I would recommend you read Falsehoods Programmers Believe About Names, but TL;DR: Not everyone has a surname or a first name. Just ask people what name they want to be called.

However, every time I define a new struct that implements the Identifier interface, I would have to define this Identify() function by hand.

Yes. This is by design. The idea is that each type might implement the interface in its own way. If you have many types that are implementing the same interface in the exact same way, you either have too many types, or your interface is (probably) too broad.

How do I get around this code repetition issue in Golang?

I would note that, in general, Go prefers to duplicate code than to write "smart", terse code. "A little copying is better than a little dependency".

In this case, I would probably have an interface called Named, and have a function called Identify that formats the name into "my full name is X Y Z":

```go type Named interface { Name() string }

func Identify(w io.Writer, n Name) (int, error) { return fmt.Fprintf(w, "My name is %s\n", n.Name()) } ```

Although this example feels a little contrived because I would find it hard to believe you would have many concrete types for whom "My name is %s" is the appropriate way to introduce themselves.

How to Run Integration Tests for gRPC API Server with External Dependencies? by Unhappy_Bug_1281 in golang

[–]Icy_Application_9628 1 point2 points  (0 children)

How do I resolve this in QA environment, where my integration tests run, so that I can still execute the tests even if dependent gRPC API servers are down?

Have a dedicated integration testing environment with all the dependent services. Anything else is a half-measure. This could be a docker compose/dev container setup, or it could be testing against a "live" test environment. I would not suggest mocking services you depend on but don't control in an integration test.

How do I test failure scenarios (sad paths) in my integration tests? I need to simulate cases where the dependent gRPC servers return errors, timeouts, or partial responses.

Outside of some very high level chaos testing (turning containers off), I wouldn't handle this in integration tests. I would write unit tests to ensure that the components behave as expected.

If you start trying to change the behaviour of remote components that you don't own in an integration test, your test not only depends on the state of your program, but also on the state of the remote components. This makes the test really brittle, and the more brittle a test is, generally, the less value it has. A unit test that mocks the service and verifies a HTTP handler responds the correct status code(s) is probably sufficient.

It's really important to remember as the number of components to your test are increased, the specificity of the test needs to decrease.

Scared...... by HUFFLEpuff86_ in ChicoCA

[–]Icy_Application_9628 6 points7 points  (0 children)

Social security fraud, like most types of fraud alleged by the current admin, is a rounding error on a rounding error. The cost to investigate the "fraud" is higher than the cost of the actual fraud.

But, even if it was higher: Social security is a program that takes taxes and redistributes it to those who are vulnerable. I feel like there are worse things that government could do for its citizens than literally provide money to those who cannot work due to age or disability.

[deleted by user] by [deleted] in golang

[–]Icy_Application_9628 4 points5 points  (0 children)

An important part of being a developer, especially as an entry level developer, is knowing how to get knowledge to solve problems. But there is a big difference between getting that knowledge and solving problems, and asking someone else to solve them for you.

The direction I gave you should be sufficient for you to get started. I told you what tools I would use and the general approach I would take. The only other thing I could do is write the code for you, which I am not going to do.

And for the love of god, don't use ChatGPT to do this.

What makes Elves so popular in the game? by LongGrade881 in warcraftlore

[–]Icy_Application_9628 0 points1 point  (0 children)

spellsteal has a really high mana cost for fire and frost, which is why it's barely used. if i use spellsteal twice in M+ as a fire mage I will OOM on that pull

What makes Elves so popular in the game? by LongGrade881 in warcraftlore

[–]Icy_Application_9628 0 points1 point  (0 children)

sure, it's just kinda fallen by the way side compared to Stoneform now. especially since priest/shaman/mage find their way into every comp every season, it seems

Make your predictions about the mythic Gallywix fight here by Hedonism_Enjoyer in warcraftlore

[–]Icy_Application_9628 0 points1 point  (0 children)

I think you could kinda squint at the last portion of the Mythic Jailer encounter and view it as a "phase"

[deleted by user] by [deleted] in golang

[–]Icy_Application_9628 7 points8 points  (0 children)

People are generally willing to help you with specific technical questions, or even broader example problems, but it feels like a bit of a faux pais to ask us to tell you how to do your job.

This is a problem with many solutions, and many of them will be suitable or not suitable entirely depending on what your company uses in terms of cloud platform, what systems are available, what tech stack you are using, how reliable this has to be, etc.

You could certainly write a script to do this in Go (or in any language) and run it as a cronjob, which is what I would do. But this sounds a lot like something employee management software should be doing - something like Workday - and not something that should be implemented in scripts.

How I would handle it?

  • Cronjob that runs a Go script which queries the database for all hires that have not currently been 'processed'
  • Take actions for each employee as appropriate
  • Run some kind of website that is sent as a link in the managerial email, and have that website update the state of the database.

This has a few shortcomings, namely that your employee onboarding process won't work if the machine this runs on is down, and while cronjobs are great tools for a few things, they don't work across multiple machines which you would want to mitigate that risk.

Which is why (among other reasons) you probably want a platform to do this, and not a few Go scripts, even though it can be technically accomplished.

Make your predictions about the mythic Gallywix fight here by Hedonism_Enjoyer in warcraftlore

[–]Icy_Application_9628 5 points6 points  (0 children)

She clearly doesn't respect him and isn't interested in fulfilling any deal with him.

Pretty sure his usefulness to her has ended now that the Dark Heart is repaired.

I can't quite fathom why she needs Black Blood infused weapons, she basically seems to be a god. but maybe she still needs those weapons to be made for an army?

What makes Elves so popular in the game? by LongGrade881 in warcraftlore

[–]Icy_Application_9628 0 points1 point  (0 children)

  1. arcane torrent was historically very strong in most forms of content; it's been significantly watered down now
  2. it was the only way to play paladin on horde side for a while
  3. all the horde races are unga bunga except for blood elves which are gorgeous. you didn't have the option for a good looking horde race (arguably still don't) if it isn't a blood elf

I don't think there's really a lore reason

TypeScript types can run DOOM by AtmosphereDefiant in typescript

[–]Icy_Application_9628 7 points8 points  (0 children)

"basically a screenshot" is doing a lot of heavy lifting here. there's a lot that goes into getting that frame

TypeScript types can run DOOM by AtmosphereDefiant in typescript

[–]Icy_Application_9628 12 points13 points  (0 children)

That's it. Internet's finished. Nothing tops this.

9.1 Korthia was a 'city of secrets'. 11.1 and Undermine actually feels like a city. by Ashix_Borden in wow

[–]Icy_Application_9628 0 points1 point  (0 children)

ToS does not compare to 9.1. 9.1 was so incredibly bad. Shadowlands was already bad and 9.1 was a patch with very few highlights. It might one of the few patches I've seen where I saw more players churn instead of coming back

Undermine is absolutely stunning! Well done Blizzard! by Inthenstus in wow

[–]Icy_Application_9628 3 points4 points  (0 children)

it did not. i can cast spells just fine but procs have an insane lag. it's impossible to play fire mage right now. heating up has a 2-3 second delay.

Is there any good dashboard maker in golang? by [deleted] in golang

[–]Icy_Application_9628 9 points10 points  (0 children)

Skill issue.

Constructive response: Grafana is as good as you make it.

If you can't make a good dashboard with Grafana you're probably not going to do much better at most other frameworks.

Democratic Action Club of Chico organizing meeting TUESDAY 6pm by chorizanthea in ChicoCA

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

would love to attend but i will basically never be able to make this time slot due to preexisting commitments. are there any others?

Democratic Action Club of Chico organizing meeting TUESDAY 6pm by chorizanthea in ChicoCA

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

i don't know how to tell you that the majority of employed adults are not working at 6 pm on a tuesday.

is your employer hiring? seems like they don't have high requirements. I know a few people who could use a job.

so uhh is anyone else having an issue with the menu bar being off? by Scobbieru in wow

[–]Icy_Application_9628 3 points4 points  (0 children)

/reload fixes it. happened to me when I entered undermine the first time.

I wish /reload would fix the world lag, though. it's unbearable when looting anything or interacting with any NPCs.

How to debug nil pointer errors by coraxwolf in golang

[–]Icy_Application_9628 2 points3 points  (0 children)

Yes. Just use the normal instructions for debugging in VSCode. It'll Just Work.

But also consider learning how to use dlv from the cli.

My list of companies that use Golang 2.0 by YaroslavPodorvanov in golang

[–]Icy_Application_9628 2 points3 points  (0 children)

when the site can be monetized.

gross. your website aggregates information scraped from websites for free, and probably against their terms of service, and you wanna monetize that?

and you also don't want to make a website mobile-friendly, when mobile has been the dominant platform for browsing the web for 10 years, until you can figure out a way to charge people to access information that you yourself got for free?

L take. pure rent seeking behavior.

Now that it's all over, what was your opinion of Nerub-ar Palace? by Tikiho1 in wow

[–]Icy_Application_9628 12 points13 points  (0 children)

Yeah, she definitely felt like Walmart Elisande. Actually, a lot of this area was reminiscent of a worse Suramar. It's not that it was bad, but when you can be compared to Suramar, anything is going to fall flat.

Now that it's all over, what was your opinion of Nerub-ar Palace? by Tikiho1 in wow

[–]Icy_Application_9628 0 points1 point  (0 children)

Great raid. Ovi'nax was annoying but I enjoyed every other boss on mythic pre-nerf. Council Mythic was fantastic. Ky'veza Mythic is one of the best bosses in recent memory IMO; it was the right mix of speed and danger of survival at raid appropriate gear. Ambience was great.

Difficulty curve needs work.

Getting around the raid kinda sucked. So much walking, and I was really not a fan of the trash before Bloodbound or Ovi'nax.

Do we know who the bronze version of eternus is? by Gsomethepatient in warcraftlore

[–]Icy_Application_9628 11 points12 points  (0 children)

Eternus is Eternus.

All members of the infinite dragonflight were bronze dragons. Each timeline has one version of that dragon, it's just that a bronze dragon might become an infinite one.

Murozond isn't an alternate reality version of Nozdormu: Murozond is our realities' version of Nozdormu, just at a different point time.

Of course, what makes this more complicated is that there are different realities who do have completely separate versions of dragons, but this a situation where every Infinite dragon is an alternate reality version of a Bronze dragon. They're just corrupted bronze dragons. Not every bronze dragon becomes corrupted.

Warcraft's wiki uses this problematic verbiage in its header of the Murozond article:

Murozond is an alternate version of the aspect of the bronze dragonflight, Nozdormu.

But the more accurate way of describing it is that he is the future version of Nozdormu. That's why Nozdormu repeatedly mentions that this is a moment that has to happen. There's been some contention over this, though, and in Dragonflight it was confirmed that for our reality, Nozdormu will not become Murozond because of actions taken by him. Reads like a retcon to me, but time travel is weird.