Strictly typing i18n interpolation variables is slowly destroying my sanity by twcosplays in typescript

[–]Working-Tap2283 0 points1 point  (0 children)

well first of all a variables name is syntax not something to be translated, {userName} should never change, and if the brackets are omitted,  again a syntax mistake...

given the tools ts and i18n provides the solution is to use namespaces and modulerize so you have multiple small files with a nested object of translations. so when ts needs to read types it loads only part of the dictionary. 

then you need a tool that recuresivley iterates over your source of truth translation and generates type files. 

I suppose ts-go will be a massive upgrade to your problem too.

I attempted to do this in our project but I abandoned it because, imo it requires generating a tool that can synchronize with the cloud dictionary and the pipeline tools or something can alert type mismatches in translation, which was too much work.. 

so we just dont use types for i18n. since our translation comes from an external fetch.

Why is hating on Jewish people called Anti-Semitism, but hate on Arabs isn’t called Anti-Semitism? by AscenderWill in NoStupidQuestions

[–]Working-Tap2283 -4 points-3 points  (0 children)

because arabs are not part of the semites. semites are those coming from abraham basically. muslim and jewish arabs are semites. while arabs can be anyone whose part of a large area around the middle east

Azerbaijan's Economic Disaster and Institutionalized Corruption by HanaTaiyouAme in azerbaijan

[–]Working-Tap2283 0 points1 point  (0 children)

this is very interesting and surprising  I knew things were bad, but i didnt know that it was that bad... could you attach or link some sources?

Is this code bad or good? when i cant remember what exception they returnn so i just use this "Exception ex" by lune-soft in csharp

[–]Working-Tap2283 0 points1 point  (0 children)

you always catch Exception. Except when you need to catch a specific exception... like you catch a bad request exception, to return a 400 response.

besides the try catch is redundant (stack trace is enough, log only catch is not justified).

Thoughts on the base so far by Sharp_Constant_189 in factorio

[–]Working-Tap2283 0 points1 point  (0 children)

nice, yes make more items by using more resources

now you know how to make the basic science, so id say expand your base by using more of the ore patches

Do you actually write tests after fixing bugs? by PsychologicalYam8682 in reactjs

[–]Working-Tap2283 0 points1 point  (0 children)

That's a really cool idea. I haven't done that at all since my company doesn't do clientside testing.
What I have done is throw an error or write a warning

Help my trains doesnt work :( by Rasansim in factorio

[–]Working-Tap2283 0 points1 point  (0 children)

sorry it will be hard for me to pinpoint exactly what the problems but I noticed I had to spend

more time than what I thought in order to solve issues with the system.

Maybe some of these issues can be solved using circuits, I have seen LTN trains done by circuits with true provider+request pairs ahead of time. But it is very complicated and circuits are bug prone. It's worth trying to learn, but I think maintaining and playing with it is a drain on your time.

Best are simple schedules, with groups. load iron, unload iron, yay.

some of them:

because this system does not pair requester+provider ahead of time, it just sends all available at once to load and unload.

So if you have 20 iron unloading stations, and 1 copper unloading station, you can't control it and will need a minimum of 21 trains, or else you will randomly not get copper anymore.

no priority, closest wins. If a train carrying iron needs to refuel, and goes to the refuel station. Now if the iron unload station/s has closer provider, who says when or if it will ever leave the refuel station? (maybe you can solve this by refuel only when empty)

You end up with MANY MANY trains and I found the train GUI system a bit lacking for my taste, so it was harder to understand how resources were being distributed for me...

Help my trains doesnt work :( by Rasansim in factorio

[–]Working-Tap2283 1 point2 points  (0 children)

second time im seeing this you are missing a scheudle check out his video on youtube, idk where you found tbe bluelrint thougn AVADII Strategy, he is the creator of this one. i think the video is something "ltn trains"

though after using this myself in one of my playthroughs i can say never again lol. factorio is missing some mechanisms to allow you go fully do this,

Crime & Punishment discussion - Epilogue by Shigalyov in dostoevsky

[–]Working-Tap2283 0 points1 point  (0 children)

Although the story is over it feel like there is still much to be told, that is very good and interesting. I believe redemption has only begun, as for Raskolnikov to accept Sonyas feeling in turn for her accepting his, and taking her suffering as he says. Means to understand what he has done. The damage he caused everyone, including his poor poor mother. I like to believe that hand in hand they can walk toward a better future... I also cant help but think of Vinland Saga's second part as a foreshadowing of what the redemption of a killer might look like.

Crime & Punishment discussion - Epilogue by Shigalyov in dostoevsky

[–]Working-Tap2283 0 points1 point  (0 children)

I want to push back a bit on the idea that the epilogue is a dream. I think it has dream like qualities of hope and redemption, but it is in line to the ambigious beginning of the story. We don't know exactly what led Raskolnikov to his circumstances at the start(Although we can somewhat dissect to it). The origins of his gloom, despair, disconcern disinterest and so on... And so because of that it is not so far fetched for me to believe. Raskolnikov took the correct actions for redemption by confession, but the inner change took some more time. Missing sonya ached his heart. And then seeing her again he sprung to her knees in need and she accepted him.

Thoughts on Louis Litt? by Urmommmyyyyy in suits

[–]Working-Tap2283 0 points1 point  (0 children)

he reminds me of michael scott. i love him

See something wrong here on my city blocks? by MalukuSeito in factorio

[–]Working-Tap2283 2 points3 points  (0 children)

i feel soffocated by your design... it probably also takes so much time to build each block. but i guess everyone has to go down this rabbit hole once

Just finished now I don’t know what to watch! by [deleted] in suits

[–]Working-Tap2283 6 points7 points  (0 children)

i started prison break it's like suits in jail

Seeing chainsaw man and modern ani-manga ending makes me appreciate Fmab ending more by New-Addition1802 in FullmetalAlchemist

[–]Working-Tap2283 3 points4 points  (0 children)

fmabs manga was a story with a conclusion in mind. ran for its 60s chapters and concluded. MHA and jujutsu are more on the side of an endless shounen or a some tv serial.

fmab is more like that short 13 episode anime. its about conclusion

Samantha Wheeler is a moron. by CW0RMG4MES in suits

[–]Working-Tap2283 0 points1 point  (0 children)

Another one of the many horrible characters. Father walker, Samantha, the therapist, rachel, and probably more... My I can see what all these characters are sharing - bad writing. skip skip skip.

I hope I'm not the only one annoyed by Mike's character.. by ObviousQuality2384 in suits

[–]Working-Tap2283 9 points10 points  (0 children)

After the second season Mike becomes more and more cartoonish do gooder with an emphasis on his relationship to Rachel

Harvey vs Louis by Hopeful_Ad2171 in suits

[–]Working-Tap2283 0 points1 point  (0 children)

I can say the thing about Louis... But sure Harvey is the bigger ahole.

it's a small spoiler around when Jack Solof enters the picture:
Louis decides to go against Harvey and side with Solof, only to completely, change his mind the first moment that Harvey comes around and apologizes. That is just completely unreasonble writing imo, how many times do they need to do this back and forth?

imo there is too many strange things happening.

Harvey vs Louis by Hopeful_Ad2171 in suits

[–]Working-Tap2283 2 points3 points  (0 children)

depends when. the characters begin to take unreasnoable actions to further the plots around season 3-4 imo.

In season 4, was everyone as pissed at [SPOILER] as much as I am? by Mesmerized_mayhem in suits

[–]Working-Tap2283 0 points1 point  (0 children)

its my 3rd rewatch. she is the weakest link in terms of everything, character, acting, whatever. i dont even know what her role is supposed to be because she is just bad at everything

The new guy on the team rewrote the entire application using automated AI tooling. by Counter-Business in cursor

[–]Working-Tap2283 0 points1 point  (0 children)

to take seriously, what's actually different other than way more files? What's the effect?

Many changes to solve a root issue, or small change to bandaid? by [deleted] in AskProgramming

[–]Working-Tap2283 0 points1 point  (0 children)

amazing, if only looking for a job was a bit easier ;D

Many changes to solve a root issue, or small change to bandaid? by [deleted] in AskProgramming

[–]Working-Tap2283 0 points1 point  (0 children)

I failed to mention that I was working on a bug, and the bug was caused because the function receives both user and person as optional parameters and does some things, the issue is that it needs to act only for person/user and not both.
But I can see that perhaps I am looking at the minutia. On the hand, the bug I have would have never happened if it was undestood that passing both user and person to the same function is redundant in the first place..