Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
sho3k488yProbably use array yeah but if I had to do it like that probably
int person0 = 100;
int person1 = 100;
int person2 = 100; -
childnode458ymeh @sho3k. What about decimal jump?? You still have boiler plate and additionally bad formatted code 😪
-
If you're tagging numbers on the end of variables I'm rejecting that review in a heartbeat - meaningless names. Cut that shit out.
-
SAM416738yList<Person> people = new List<Person>();
people.Add(new Person(100));
people.Add(new Person(200));
people.Add(new Person(300)); -
spooky16948yI mean if you're numerating them then you go with real world standards, e.g.
person1
person2
person3
But a better approach (which has already been stated) is just to use an array
Related Rants
3 types of beginner programmers. Everyone has gone from this stage.
undefined
programmer
beginner
int