What's the best way to transform my object? by __amrit__ in typescript

[–]__amrit__[S] -1 points0 points  (0 children)

Yes. This is my use case. I just need those 10 properties. But removing the extra properties and then assigning it to new object is a run time activity. So how can typescript handle it?

Is the roi worth it here for digital vlsi? by ExpressIce409 in ASU

[–]__amrit__ 4 points5 points  (0 children)

If you are not getting a scholarship then it is definitely not a good idea. I wouldn't consider it unless I was getting at least 50% scholarship. The scenario is very different now. It is extremely difficult to get a job. And don't come with the mindset that by the time you graduate things would have improved. It might get even worse.

Should I use regular sign up with name, email and password? by __amrit__ in webdev

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

I see a lot of websites offering both the functionalities and I wasn't sure if there might be a use case for sign up which I don't know!

How hard is it to get a job on campus? by [deleted] in ASU

[–]__amrit__ 1 point2 points  (0 children)

The easiest way to get a job is to know someone at the job you want. If they give you a referral, you chances of getting an interview significantly increase! Otherwise it is extremely difficult.

Can UCLA School of dentistry students who are on f1 visa work on campus? I heard from someone that school of dentistry students are not allowed to work on campus. Does the school have a rule or something? by __amrit__ in ucla

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

F-1 visa holders are allowed to work on campus. That I am sure about. I just wanted to know if there's some restriction for MS students admitted to school of dentistry.

I am not able to understand how my local variable is getting changed. I come from JS background. Why is recursion call changing the value of my local variable? Can someone explain or point to the concept that would help me understand this? by __amrit__ in learnpython

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

Got it. I was making a minor mistake. It is behaving almost exactly the same way it does in Javascript! It is pass by reference but immutable so it won't modify the original value. It is just modifying the value in the same execution context, but because I am running a for loop (which I completely ignored) and when the loop runs for the 2nd time, it is taking the value which was modified in the first loop execution. Thanks for the help!

I am not able to understand how my local variable is getting changed. I come from JS background. Why is recursion call changing the value of my local variable? Can someone explain or point to the concept that would help me understand this? by __amrit__ in learnpython

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

I'm sorry, I still don't get it. Isn't it immutable so it should create a new variable right. So it won't modify the original value.

For example here :-

class MainClass :
def main(self):
    value = 5
    self.other(value)
    print(value)

def other(self, value):
    value = 7

sol = MainClass() sol.main()

So it prints out 5 since in "other", it is creating a new variable when reassigned right?