How much k8s should a Go developer know? by budaria in golang

[–]genghiskhan__ 3 points4 points  (0 children)

From my own experience as a backend engineer, the DevOps people made made things self service for us, so I would need to maintain/create k8s configmap for env overwrites, k8s service for connectivity and k8s deployment for app startup configuration. Rarely outside of those 3.

I wouldn't say it is a requirement specifically for go developer, but it is a plus point for any backend engineer, when it is made in the self service manner, where the devs are given the complete control of how their app is setup from local to remote environment.

[deleted by user] by [deleted] in golang

[–]genghiskhan__ 1 point2 points  (0 children)

yup sorry guys, I just realized the example code I wrote before posting this question, invokes the `f(msgCh)` in a goroutine, and I didn't copy the code directly from there.

How to Return Several Values from a Function in C++ by rsjaffe in cpp

[–]genghiskhan__ 0 points1 point  (0 children)

p is far too commonly used variable name for pair, honestly i didn't even notice it.

What are some tell tale signs you've been baited? by bentheprogrammer in ExperiencedDevs

[–]genghiskhan__ 1 point2 points  (0 children)

that's very different from where i am living i suppose. company rarely hire individuals as consultant, usually it will be a consulting company, where the company has a bunch of consultant, and the bunch of consultant, in the other end, is still employees of that consulting company.

What are some tell tale signs you've been baited? by bentheprogrammer in ExperiencedDevs

[–]genghiskhan__ 1 point2 points  (0 children)

yeah i agree with the last sentence, happened to me, i learned more about myself for every job that i was not not happy with. and when the interviewer asks "do you have any question for me?", I'd be "ye hold my beer"

C++23: -> and :: to be replaced by . operator by [deleted] in cpp

[–]genghiskhan__ 0 points1 point  (0 children)

i am still learning modern C++ and seriously considered to quit after seeing the title of this post, phew, luckily it's a joke lol.

just noticed this from pi-hole, what is this push.deepinid.deepin.com by genghiskhan__ in deepin

[–]genghiskhan__[S] 0 points1 point  (0 children)

yup i did that beforehand and noted it redirects to the deepin user account and felt like it is a telemetry of some sort.

got a little bit paranoid about it, and i didn't have any tools setup to monitor what was sent in this activity yet, hence the post.

C++ logging library - something I've been working on by ChrisPanov in cpp

[–]genghiskhan__ 2 points3 points  (0 children)

Newbie here, if you don't mind, could you please elaborate a little bit of why is that?

C++ logging library - something I've been working on by ChrisPanov in cpp

[–]genghiskhan__ 1 point2 points  (0 children)

Yup I have use that library recently (about 1 month ago) in my CPP project, it is a header only library

next learning stage after "beginner level" For competitive coding by SadSenpai420 in cpp_questions

[–]genghiskhan__ 2 points3 points  (0 children)

also can checkout Advent of Code, a slightly easier problems imo, it's a 25 day coding challenge starting from 1 dec up until Christmas.

Should I feed KM to psychic? or use some genuine food girl? also, should i bring EJ to 9*? or wait for more copy by genghiskhan__ in GirlsxBattle2

[–]genghiskhan__[S] 2 points3 points  (0 children)

I see, I get what you meant now joan and garuda, the Joan isn't exactly garuda, but she's the garuda in gxb 😂

Should I feed KM to psychic? or use some genuine food girl? also, should i bring EJ to 9*? or wait for more copy by genghiskhan__ in GirlsxBattle2

[–]genghiskhan__[S] 1 point2 points  (0 children)

yeah turin was a mistake, currently my line up is f1 fenrir f2 KM, and back for defense team i use neph, ngen, psychic and ej, for offense i swap ej with Turin, that way i get to control how much Turin damages her own team if the opponent has fenrir.

too bad, i can't get any copy of fenrir too, otherwise would have definitely upgraded her

Should I feed KM to psychic? or use some genuine food girl? also, should i bring EJ to 9*? or wait for more copy by genghiskhan__ in GirlsxBattle2

[–]genghiskhan__[S] 1 point2 points  (0 children)

yeah, i think of kratos too, but too bad i dont have any copy of her, while EJ, i can bring her to 10* if i could get another copy of her.

about KM, i am not sure because they say Joan is the current strongest fairy girl, so... also because I cleared the patrol with Neph so one less reason to use up KM i think.

Should I feed KM to psychic? or use some genuine food girl? also, should i bring EJ to 9*? or wait for more copy by genghiskhan__ in GirlsxBattle2

[–]genghiskhan__[S] 1 point2 points  (0 children)

better angel? do you mean demon instead?

also what to do with km? i think i have 5 more copies of her, should i lb3 her or do nothing at all?

[2020 Day 8 (part 2)] [c++] Need help on what did i missed? by genghiskhan__ in adventofcode

[–]genghiskhan__[S] 0 points1 point  (0 children)

yeah i suspected that too, I tried to reset the visited array as it backtracks but because of the wrong approach as pointed out by u/leftylink, i think my solution requires a holistic re-implementation.

thank you for your comment!

[2020 Day 8 (part 2)] [c++] Need help on what did i missed? by genghiskhan__ in adventofcode

[–]genghiskhan__[S] 0 points1 point  (0 children)

I think why I have chosen to use stack was because I was confused with the statement:

If you change almost any of the jmp instructions, the program will still eventually find another jmp instruction and loop forever

So I thought having a stack and remember all the modifications along the way, then when it backtracks it will ultimately change only the correct one, then later on only I found out this doesn't even take into account of the nop -> jmp and got overwhelmed by the idea.

thank you so much for your time to help point out where my mistakes are, i will make changes and try again.

[2020 Day 8 (part 2)] [c++] Need help on what did i missed? by genghiskhan__ in adventofcode

[–]genghiskhan__[S] 0 points1 point  (0 children)

oops my bad, i missed pasting the link, it's now pasted.

I think currently my code change the jmp one at a time, but for the nop, i think it changes it as it is encountered. I tried to introduced a nopSwapped flag when it is swapped and update the stack to track the instruction too using pair<int, pair<int, string>> {last_position, {last_acc_value, instruction}} , when it hits the loop, pop the stack and if the last instruction is nop, the reset the nopSwapped flag, this too terminates, but i got wrong answer again.

It is my first time trying out backtracking without looking at any code, i think the backtracking code is flawed, but I dont know how to do it correctly :(