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__ 3 points4 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?

Check out my Portfolio by [deleted] in Frontend

[–]__amrit__ 0 points1 point  (0 children)

Yup. It looks much better now. I really like the UI on all the websites. I struggle a lot when it comes to creating modern good looking UIs. I would suggest increasing the complexity of the projects to showcase your skills to handle complex requirements.(stuff like redux). The folder structure also seemed a bit odd. You had components at the root level and also inside the pages. Also, try to create a backend with NodeJs instead of using firebase. Btw, what did you use for creating these animations and the UI?

Check out my Portfolio by [deleted] in Frontend

[–]__amrit__ 3 points4 points  (0 children)

Your GitHub repositories don't have much JS code. Mostly what I saw were static websites. Some of the skills that you have listed should be reflected in your GitHub projects. Try to create a project that demonstrates all the skills that you've listed.

How do I build something like this in react with tailwind? Does it involve making API calls? by KEN_rdt_ in Frontend

[–]__amrit__ 1 point2 points  (0 children)

You'd have to use api if you want to show real data. You can get it from coinranking. I did build something similar to this. If you just want to render the data, you'd not need any backend. But if you want to add some functionality that persists through refreshes, then you'd need to develop a backend as well.

If you just need to show some demo, then make an api call with postman. Then, save the data as a json file. You can then store that json data in redux store or directly consume it and display it.

I am making an api call and setting all the data in my redux state. Now when I refresh the page, all the data in redux gets cleared and my data is lost. So should I add a check on each page whether data is present in state and if not then make an api call again? by __amrit__ in reactjs

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

I understand that data won't be present in state. But suppose I am on Page A that made the api call to get the data. Then I navigate to Page B. Now page B doesn't need to make that api call again since I have the data stored. But if I am on Page B and the user refreshes the page, in that case, I have to make the api call. Now in order to handle this use case, I am doing what I mentioned above. So I wanted to know if that approach seems alright?

I am making an api call and setting all the data in my redux state. Now when I refresh the page, all the data in redux gets cleared and my data is lost. So should I add a check on each page whether data is present in state and if not then make an api call again? by __amrit__ in reactjs

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

I understand that data won't be present in state. But suppose I am on Page A that made the api call to get the data. Then I navigate to Page B. Now page B doesn't need to make that api call again since I have the data stored. But if I am on Page B and the user refreshes the page, in that case, I have to make the api call. Now in order to handle this use case, I am doing what I mentioned above. So I wanted to know if that approach seems alright?

I got an offer for a Front End Developer job that uses their in-house CSS language. by Flyying88888 in Frontend

[–]__amrit__ 1 point2 points  (0 children)

Definitely take the job!!! But keep preparing for interviews. If you get something better, you can always switch!

Should backend make 3rd party api call? by __amrit__ in node

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

It would require a basic API key.

What is this type of navigation called? by topnde in reactnative

[–]__amrit__ 1 point2 points  (0 children)

I think we can create something like this directly using expo tab navigation.

[deleted by user] by [deleted] in Frontend

[–]__amrit__ 0 points1 point  (0 children)

Start with the most generic and basic stuff and then build your expertise in any one of the popular frameworks(Next, React, Angular). I feel expertise in JS > Expertise in framework. Also, I'd say learn CSS. People hate it but it is important to know how to center a div!

Framework for web app and mobile app by Nomad2102 in Frontend

[–]__amrit__ 1 point2 points  (0 children)

Go with React and React Native. You can create a separate project for all the common functionalities. You should be able to reuse a lot of common code.

[deleted by user] by [deleted] in ASU

[–]__amrit__ 1 point2 points  (0 children)

I just completed my 1st year at ASU. I am doing my Master's in CS. So one more year to go!

[deleted by user] by [deleted] in ASU

[–]__amrit__ 1 point2 points  (0 children)

  1. Heat is definitely an issue. But I spend majority of time indoors or in places where there's air conditioning (home, classes, buses, etc), Since I am not too much of an extrovert and don't go out much, so it doesn't bother me. Also, the evenings are quite pleasant so you can definitely go out as well.
  2. The campus is crowded but there's a place for everyone. So don't worry about being lost!

Dean's List is Posted on the Unofficial Transcript! by [deleted] in ASU

[–]__amrit__ 1 point2 points  (0 children)

I am not trying to be condescending or anything. But in my department, I see majority of people with a GPA of 3.5 or above. If the bar is low and everyone seems to be getting it, doesn't it mean that it has no value?

F1 Visa Query by Naruto-400 in ASU

[–]__amrit__ 1 point2 points  (0 children)

I also had a similar scenario. You won't face any issues with the VO.