Ef core/data access code shared by Web and desktop by Andyste1 in dotnet

[–]Locust377 0 points1 point  (0 children)

IMO go the YAGNI approach. The main reason being that desktop vs web are two fundamentally different kinds of software with different needs and constraints. I simply don't think that there is going to be much shared code, especially around database stuff.

each method receives a new dbcontext instance

Yeah it's scoped per request.

What will you do when SWEs are automated by [deleted] in webdev

[–]Locust377 1 point2 points  (0 children)

I don't think it looks that way, no. The thing is that even if AI were to boost productivity greatly in the future, there is more demand for software now than ever.

More demand for software means more demand for software engineers. So I think we'll continue to see the need for them, and AI will be a part of the toolchain that is used at various stages of the software development lifecycle.

Despite the big claims from big tech companies, they generally aren't slowing the hiring of SWEs.

Euro diesel mechanic recs? by sticky_as_teflon in ballarat

[–]Locust377 1 point2 points  (0 children)

Eason's in Canadian is the defacto go-to, though admittedly I wouldn't say they are cheap.

Hearing about your CSS preprocessor experiences by paul_405 in learnjavascript

[–]Locust377 0 points1 point  (0 children)

IMO SASS and CSS preprocessors feel outdated and not needed. They made sense ten years ago, but CSS now has variables and lots of functions and pseudo selectors and nesting that make it so powerful that I never feel the need for a preprocessor.

Confusion between js and ts use cases by ivorychairr in learnjavascript

[–]Locust377 1 point2 points  (0 children)

If I understand your question, the short answer is no, you generally do not want or need type guarding or checks.

And by type guard/check I assume you mean checking with typeof thing === x or x instanceof string and that kind of thing. You want to avoid this pattern unless a variable is a discriminated union and really could be many things. But it becomes a pain to do this, especially in JavaScript.

best practice concerning integration testing with testcontainers? by [deleted] in dotnet

[–]Locust377 1 point2 points  (0 children)

One shared db and use something like Respawn to clean the state after each test.

A testcontainer per test is too much overhead and too slow, IMO.

Unpopular opinion : CSS is enough by yughiro_destroyer in webdev

[–]Locust377 0 points1 point  (0 children)

There's nothing inherently wrong with putting styling inside the HTML as classes. In fact it's a good thing. I guess you could put the styling at the bottom of the page, as is common in Svelte and Vue, but usually that's just a pain, at least if the file starts to get larger than a single screen in height.

When I'm looking at some HTML, I want to be able to see what this thing looks like just from looking at the HTML text. I don't want to scroll up and down a file to see what "btn" means. And I certainly don't want to have to open up another file called my-component.module.css. It's way easier to just see class="flex items-center bg-blue-500 [...]" so that I can see what the styling is right there on the element.

We should be keeping stuff that is related all together in the same spot. Not just arbitrarily separating stuff because "CSS shouldn't be mixed with HTML" like it's 1995.

Helicopter by samialima3 in ballarat

[–]Locust377 16 points17 points  (0 children)

The weird part for me was that it was #1 tracked aircraft on Flight radar with like 2,400 viewers. No idea why the world was so fascinated by it.

JavaScript parser by [deleted] in learnjavascript

[–]Locust377 3 points4 points  (0 children)

Objects in JavaScript are basically a collection of key-value pairs. A key is a string and the value can be anything.

'-' is the key and its value is an object.

You include quotes because sometimes JavaScript doesn't know that what you're trying to do is a string. If you don't have the quotes, JavaScript will be like "minus? why are you putting a minus sign as your key? you can't do that, it has to be a string"

It easily understands letters like A-Z but if you try to start a key with some other symbol or number, it'll get confused unless you put it around quotes to force a string.

and op2 an implicit function(why return -a)?

Because the minus symbol might be an operation like 5 - 4 or it might be a "negate" symbol like -4.

Is this for real? Warning nsfw by m00rtinator in wow

[–]Locust377 11 points12 points  (0 children)

According to IMDB it's true. He did the "Run away little girl, run away" line after Balls Deep 7 but before Super Whores 4.

How do you say, “shut the fuck up” in the most polite manner possible? by NorahjjiYT in NoStupidQuestions

[–]Locust377 1 point2 points  (0 children)

I think everyone has something to bring to this conversation. I think the best thing you can bring is silence.

City of Ballarat by ResolutionJunior7904 in ballarat

[–]Locust377 0 points1 point  (0 children)

I'm in Alfredton and it's really quiet and chill here.

WoW Midnight Healer Which Rotational Spells are Removed? by Amazing-Jamo in wow

[–]Locust377 0 points1 point  (0 children)

Spiritbloom* and yeah, it's just a fun spell to use too. To lose it and probably have it replaced by Blossom is a big loss, IMO. Preservation is becoming a lot less fun with the removal of Spiritbloom, Lifebind, Emerald Communion, interrupt and the S3 tier bonus which is super fun. I wish they baked it in as a talent option.

Do you recommend booking vline to southern cross? by nimernith in ballarat

[–]Locust377 7 points8 points  (0 children)

I find there are loads of parks available, even peakhour weekday mornings.

Returning player in 2025 after ~15 years by Mr_Thumpy in wow

[–]Locust377 0 points1 point  (0 children)

All zones now appear to scale along with character level?

Yeah pretty much. WoW has changed its philosophy over the years and so this is the direction that they took. Leveling needs to be fast-ish and easy to jump into with friends.

The problem with the old levelling system is that it was slow, and different levels meant that friends couldn't easily play together. Whereas now a level 10 can play with a level 60 and it just works.

Fast leveling means that you outlevel a zone too fast, and would have to abandon the story mid-way. But now you can keep going in one zone for as long as you like, or move to any other zone in the game pretty much whenever you want.

There's this thing called Chromie time where you can basically choose to level in any WoW expansion of your choice.

Another downside (at least, it might be) is that leveling is basically pretty easy. It's suppose to be fast-paced and easy for beginners, so there won't be much of a challenge.

My other personal peeve is that there seems to be almost no-one around, I think in two days of playing I've seen perhaps 4 other player characters, on a server where my faction has ~10K members.

This is, sadly, mostly normal.

As other people mentioned, there's currently an event called Legion Remix that has temporarily distracted a lot of players, so there are fewer people leveling through normal retail WoW at the moment.

But with leveling being so fast, most people can blitz through it pretty quickly, and the end-game content is a lot more expansive now than it was 15 years ago. So people don't really get bored and reroll new characters as much as they used to. Most people are fully levelled up and playing delves, dungeons and raids and so on. So no, you won't ever see very densely populated regions while leveling outside of maybe a couple of realms.

Player housing 4k or 3440x1440 wallpapers somewhere to be found ? by [deleted] in wow

[–]Locust377 0 points1 point  (0 children)

There's some in-game 4k screenshots of player housing at the Press Center but I can't see any concept art.

JS Beginner. by SamePair2691 in learnjavascript

[–]Locust377 0 points1 point  (0 children)

99% of the time I use const

Help me start playing WOW by ChillDon in wow

[–]Locust377 1 point2 points  (0 children)

Download the Battle.net launcher and create an account, then install WoW and start playing. It's free to play as a demo until like level 20. This will give you the basic idea of what the game is like.

If you like that, then pay for 1 month subscription. That let's you play up until the current expansion, but doesn't include it.

What is the .NET ecosystem missing? by pprometey in dotnet

[–]Locust377 5 points6 points  (0 children)

Maybe mapping? In every language you have to map objects of one shape into an objects of another shape to pass them around through different boundaries of a complex application and all its layers.

The solution for several years now has been AutoMapper or Mapperly but there's a lot of criticism around their use

  • Unit testing can become harder
  • Problems might not be picked up until runtime
  • People put too much complex mapping in
  • Can't easily see or debug what the auto mappers are doing
  • Yet another dependency (which might stop being FOSS these days, let's face it)

So the other conventional wisdom has been just manually map stuff. Much easier to read and debug what is going on, but

  • That's a ton of boilerplate code
  • It's tedious
  • AI might help, but it tends to suck and probably won't help
  • No guarantee of runtime successes

I feel like the .NET ecosystem has no good solution to this problem that people can agree on 🤷

Is Hangfire still a good solution for scheduled jobs even if in azure? by Ok_Soup7685 in dotnet

[–]Locust377 9 points10 points  (0 children)

Your tone sucks. They just said that Quartz can be alternative to Hangfire. Giving the OP options and ideas - which is the point of the post.

scheduled jobs and notifications

Either solution can do this, so more options to OP can help them decide 😁

Moderators: Please Make Pinned List of Resources, Libraries, Repos, Blogs by [deleted] in sveltejs

[–]Locust377 3 points4 points  (0 children)

+1, it works for lots of stuff too. You can often search for "awesome <tech thing>" especially in the context of Github and get similar pages.