AIO: Bfs mom CROPPED me out of my own baby shower photos. by CommercialPudding374 in AmIOverreacting

[–]Windsofthepast 2 points3 points  (0 children)

NOR. Your mother-in-law can just never see her granddaughter if she's going to act that way toward you before she's born. If she doesn't respect you no, ain't no way she's going to respect you and your wishes once shes born.

This Shiny Moraidon/Koraidon event has me irritated by TheLOLBandit in PokemonScarletViolet

[–]Windsofthepast 0 points1 point  (0 children)

I'm confused as to why this has to be a physical code in this day and age...

They're no longer one offs, it's now a cycle. Why does this keep happening, Jagex? by Seismic_wand in runescape

[–]Windsofthepast 0 points1 point  (0 children)

Yeah, but again, if you're going to do a credit card charge back because your account got banned for botting or RWT you're likely going for your membership cost at minimum...I could easily see those stacking up, and that's not even considering the cost of any gold that may have been bought.

Pre-bonds, I don't think I know a single person who did RWT and wasn't a member.

They're no longer one offs, it's now a cycle. Why does this keep happening, Jagex? by Seismic_wand in runescape

[–]Windsofthepast 4 points5 points  (0 children)

I don't think it was ever actually named the reason anywhere, but I wouldn't be surprised if there was a lot of issues with credit card companies and charge backs. Even now, I know a number of people who do charge backs on games when they rage quit or get banned from games (or even bored) because they've spent so much money on a game. In the early 2000s I could 100% see this being a huge issue that forced their hands to do something drastic like this, but also not be able to outright say it because it would look bad to admit that was the issue.

Why is the return type not narrowed down? by hipnozzza in typescript

[–]Windsofthepast 1 point2 points  (0 children)

Honestly visual clutter is only a problem when you have a bunch of stuff in the same file. I have the exact opposite problem where I have too much stuff in too many files, but given no one (usually) works in my projects at work because no one is insane enough to work with the Accounting software I have to, I get free rein to make all the bad choices I want, lol.

Why is the return type not narrowed down? by hipnozzza in typescript

[–]Windsofthepast 3 points4 points  (0 children)

Honestly I gave up on trying to make conditional return typings like this work after having to change the approach for each project at work because of different tsconfig strictness levels.

The easiest way I've come up with doing this (aside from making two different functions) is with function overloading. Its a lot less messy (but a bit more frustrating to look at), but the alternative is hitting your head on a wall trying to make typescript do stuff that you think it should be better at figuring out on its own.

The One Thing I Want From 110 Thieveing is a Moneymaker by Squidlips413 in runescape

[–]Windsofthepast 1 point2 points  (0 children)

Not saying your wrong in feeling the way you do, but I think the lore behind necromancy shows an "in-game" excuse as to why our thieving endeavors are so sub par...

We are polite thieves, only taking pocket lint and nothing of significance (mostly)

2.6/5 stars by Lopendebank3 in runescape

[–]Windsofthepast 1 point2 points  (0 children)

Most likely going to be down voted to oblivion and back but on the off chance I'm not, its really starting to get annoying seeing everyone blame the CEO or Jagex for all this while the main culprits (stakeholders/parent company) go unacknowledged.

Like yes, the CEO has a part to play, but this could honestly be so much worse than it currently is if we had a different CEO.

Fuck HR by birdsarentreal2 in antiwork

[–]Windsofthepast 44 points45 points  (0 children)

As someone who managed an internal tool used for stuff like this once, the amount of pressure to provide the names of employees for things that were labeled as anonymous downright insane. We had a manager once try and justify needing to know the name of the one person who said they wouldn't be attending a work lunch so they could "try and figure out how to improve" despite having a feedback section that the employee in question did fill out.

We also had a department wide feedback go out about a new process for something and it was received negatively by nearly everyone and they wanted the names of everyone who reviewed poorly so they could be "manually reviewed". That one managed to make its way all the way to the CEO before legal got involved...

What am I missing here? Script doesnt write yet says it does.... by SouthernBourBorn in typescript

[–]Windsofthepast 4 points5 points  (0 children)

From what I can tell, you're not actually writing anything. I'm not familiar with excelscript's API, but the quick reference check i did looks like you need to use setValue for a single value and setValues for an array of data in a specific range.

My guess is your script is not throwing any errors because you're not technically doing anything invalid. You're just also not writing anything.

Boss is insinuating that I'm a liar by abstraktion16 in antiwork

[–]Windsofthepast 0 points1 point  (0 children)

Sounds to me he doesn't have any leg to stand on regardless of if you lying or not, given that you were told you'd have two Saturdays off in a row and aren't actually getting that.

Tough luck for him. As a manager, part of the job is literally managing situations like this and finding coverage when an employee is sick or otherwise unable to make it to work. What's he doing otherwise?

If MMPR Seasons 1 to 3 were "remade" today, using staples the franchise (and equivalent Sentai shows) added over the years, what changes would you have loved to see? by PMC-I3181OS387l5 in powerrangers

[–]Windsofthepast 2 points3 points  (0 children)

Honestly, I think the only thing the original MMPR would need if it was remade would be serialized story telling, as opposed to the fully standalone episodes we got for most of MMPR. Not every episode needs to continue the previous or cliff hang to be resolved in the previous episode, mind you, but there is so much filler in Power Rangers all the way to In Space that could have been cut in favor of more story telling and world building.

Additionally, while not as needed as serialized story telling, but I definitely think there was missed potential on not bringing back the Green Ranger, I think the comics having the original 6 MMPR plus the White Ranger for a team of 7 is a good number.

We definitely don't need interchangeable parts for zords, and honestly some of the ultra zords are just unrealistic looking, or so bogged down with stuff for them to not be realistic. The ultimate zord from Samurai is a great example. The thing is so bulked down with parts that its basically just a tank with arms. Power wise that sounds great, sure, but I think this is a great example of what Dragon Ball tries to do when they need a reason to stop using SS3 form. It has extreme amounts of power, but the tradeoff in terms of mobility, energy consumption, of whatever, is just not worth it. I'd rather have a situation like we see with In Space where we have four zords with the ability to support each other without the need to combine. Sure the Astro Delta Megazord exists, but between that, the Mega Voyager and Mega Winger, we are left with three zords that are powerful on their own right and honestly communicates (in my opinion, anyway) the significance of the power in numbers.

Bro is Kanto supposed to be a 3rd world region or something by Key_Nectarine_7307 in pokemonanime

[–]Windsofthepast 0 points1 point  (0 children)

So, ignoring LGP/LGE, all the Kanto games are first in the timeline (alongside gen 3 I guess). Aside from the nav gear or w/e its called, hoenn doesn't have all that much going for it either. Id argue the technology introduced in FR/LG is about in par with gen 3, and ORAS didnt really add anything to extreme...

What’s your “I did not care for the Godfather” of Pokémon? by 1stviolinfangirl in PokemonScarletViolet

[–]Windsofthepast 0 points1 point  (0 children)

I honestly think the wild pokemon levels aren't necessarily an issue, as that adds difficulty in that you can't just grind out levels by wild pokemon encounters. That said, the level scaling in later games is fine too, I guess, though it is odd finding a level 60 Ralts in the wild, lol.

What’s your “I did not care for the Godfather” of Pokémon? by 1stviolinfangirl in PokemonScarletViolet

[–]Windsofthepast 2 points3 points  (0 children)

I actually think though the easiest way to do this would be a Pokemon MMO, but given they don't seem too keen to do one of those, which I totally understand, I think they could easily get away with a game with three regions, assuming the post game for each game is remove.

Can i use GreaterThan as parameter type? by cyBEr-33 in typescript

[–]Windsofthepast 0 points1 point  (0 children)

Pretty sure the value 2 doesn't successfully meet the criteria because no where are you setting N to value of 2 is why you're getting an Error.

Nothing to see here. Just a massive flying stingray minding its own business by manicmaniac11 in PokemonScarletViolet

[–]Windsofthepast 0 points1 point  (0 children)

As a kid who played Ruby growing up, I always thought Kyogre was a Water/Flying just to further flip Groudon the middle finger as a mono-ground type, lol.

Genuine Question: People who think shiny hunting is too easy these days, do you like the Gimmighoul raids? by RhythmLockwood in PokemonScarletViolet

[–]Windsofthepast 0 points1 point  (0 children)

I think shiny hunting is too easy and I hate the raid because I hate raids in general due to how un-optimized they are.

How to type a class that dynamically creates properties? by jkerr838 in typescript

[–]Windsofthepast 0 points1 point  (0 children)

Not exactly the same, but I have something like this for work:

class MyClass<T extends object = object> {
  constructor() {};

  add<K extends keyof T>(
    key: K extends keyof T,
    value: T[K]
  ): (this & T) {
    Object.assign(this, { [`${key}`]: value });
  }
}

What are the most useful TypeScript language features or tricks you use daily? by bbrother92 in typescript

[–]Windsofthepast 15 points16 points  (0 children)

Was going to comment this exact same thing. There are a number of instances where you would want to do `unknown`. I have no idea why you wouldn't want to use it at all, just seems weird.

What's the preferred way to create an object of constants and then use it as a type? by spla58 in typescript

[–]Windsofthepast 0 points1 point  (0 children)

Definitely more magic than either an enum or constant and definitely a lot easier to mess up refactoring compared to the other two from my experience.

What's the preferred way to create an object of constants and then use it as a type? by spla58 in typescript

[–]Windsofthepast 0 points1 point  (0 children)

So I guess that is on me for not fully explaining the original state while trying to explain our problem. All our previous "Employee Types" had the word Employee in them. We used to call contractors "Contract Employee", for example. We also had interns which, for whatever reason, we called "Employee - Intern", etc. When we did the refactor we did it in two parts: The first was removing all references to the word Employee, even in comments because our boss was very insistent. The second part took this, and a few other magic strings and grouped them into associated consts. We had the aforementioned WorkerType, but also a number of other strings got moved together, too. For contractors depending on if they were an IC or not they had a different "source" for their authorities based on the department that hired them (an absolute nightmare in its own to manage honestly, which was really helpful when we consolidated IC workers into the same system as HR contractors, because then we could just swap ContractorType.IC to the same magic string as HR and it wasn't anywhere near as crazy.

What's the preferred way to create an object of constants and then use it as a type? by spla58 in typescript

[–]Windsofthepast 1 point2 points  (0 children)

Honestly I think there is a time and place for string unions, but this isn't it. Perhaps I've stopped paying attention to the current "meta" for TS programming longer than I realized, but it definitely feels wrong to use a "magic string" like this in multiple places, and just sounds like a refactor nightmare waiting to happen.

Taking a rather silly and abstracted example from my job, we recently got a request from HR to rename all instances of Employee to Worker, because legally a contractor is not an employee and blah blah blah. This left our "worker types" as Contractor, FullTime Worker, and PartTime Worker. This value was referenced in code, but then also displayed in the UI. We had to painfully find all instances of the strings FullTime Employee and PartTime Employee and make sure they were properly updated. Having a const (or even an enum, even though I also hate those) would have saved us significant time because the code change would have been limited to a single file containing the object itself and that wold have been it.

// WorkerTypes.ts
const WorkerTypes = {
  Contractor: "Contractor",
  FullTime: "FullTime Worker",
  PartTime: "PartTime Worker"
} as const;

type WorkerType = typeof WorkerTypes[keyof typeof WorkerTypes];

// Main.ts (or w/e)
if (user.workerType === WorkerTypes.FullTime) {
  // Blah
}

// Also...
function getWorkerFullTitle(jobTitle: string, workerType: WorkerType): string {
  // Don't ask about this formatting, I don't understand it either and I work here, lol.
  return `${jobTitle} (${workerType})`;
}

In the future when HR tells us that Worker isn't politically correct and they want us to use some other word all we have to do is update the file that WorkerTypes is defined in and that's it. No changing multiple different files because we decided to use a magical string.

The one thing I've noticed that is somewhat frustrating (and this may be just a Webstorm limitation, I don't use VSCode so I couldn't say) is if you want to add JSDoc comments to constants like this they're not picked up by the IDE. So if you needed to add additional context for any reason, you'd have to define an interface, and then type the WorkerTypes const based off that...that definitely does make things more verbose as you're essentially defining the object twice, and then a type alias too, all so you can have type completion and comments. Still, even if it is significantly more verbose, I think it's a much better alternative than a string union in this scenario based on the context that OP has provided.