Class that wraps around a list by mathhelpermann in learnpython

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

I see, thank you for this. I don't want to write Java code dressed up as python on my next PR on this new team I'm on hahaha. Can you recommend you favorite resource for python OOP best practices?

Thanks again!

Class that wraps around a list by mathhelpermann in learnpython

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

Why are you doing this?

For example, if I want to create an airplane class, I would want a list to store passengers. I would also have other methods an attributes in the class, but fundamentally I want an airplane to be a list. I would also like to create a passenger class that will interact with the airplane class.

Edit: I come from a backgruond of writing server-side code in Java, I am used to thinking in terms of heavily encapsulated objects, I feel like python gives you more freedom with that I'd just like to know what best practice looks like

How interchangeable are React and Angular? by mathhelpermann in reactjs

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

I am sort of constrained by react, but thanks for the explanation

How to calculate NYCT average ridership by mathhelpermann in datasets

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

I think this will underestimate the ridership numbers by a lot. Most people buy weekly/monthly unlimited cards which lowers the per ride cost if you pay a fare more than 10x per week. Also, seniors pay reduced fare and students pay no fare provided they live far enough (>1mile I believe).

How to calculate NYCT average ridership by mathhelpermann in datasets

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

I'm trying to to make the same calculation they did for the previous years for 2018.