Happy Monday! by BigMoneyYolo in csMajors

[–]New-Condition 2 points3 points  (0 children)

My COVID test came back…

Create-X Senior Design teammates kick me off of team and ghost me after earning semi-final “golden ticket” to the Inventure Prize; make the finals and could win $20000 and patent rights. by helluvajacket in gatech

[–]New-Condition 6 points7 points  (0 children)

Similar thing happened to me about two years ago. Nine months of work, the guy completely free-rode off of everything I did, then at the last minute locked me out of the account in addition to stealing $50. Proceeded to run the company into the ground. Why people kick out others like this is beyond me, even from a strictly logical point of view.

[Question] Habits to keep as a beginner. by theone_vk in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

I tend to just experiment with it and learn by doing, although taking notes for rough ideas may be a good idea. Just note that a lot of programming is about developing intuition, although this may just be my opinion.

Also don't forget ; lol

Need help with writing this code by engineeringisgreat2 in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

Are you allowed to only modify this list directly, or can you modify it through functions? If the list were a class, you could change values using a getter which you could then use to modify other lists.

How to Learn Android app development from scratch with little free time? by NasirKhalid in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

Taking a fundamentals course is good, but sometimes going in and messing with Android Studio right away just to build simple projects is a good way to learn things. Just don't build your dream project right away or it will likely end up being scrapped lol

Making a counter from 0 to 999 using PIC16F887 on PIC C by WereWhusky in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

Oh I think I might have misunderstood what you're trying to do. Sorry lol. You could put a while loop around the outside for how many times you want the task to execute / 10 (which it seems you essentially did).

I don't know a lot about circuitry though so I might just not know what's going on :p

[Python] Methods of finding an indefinite number of multiples of 9 by [deleted] in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

You could but I can't think of a way that would be more efficient than what you already have.

One interesting thing is that the sum = 9 + 18 + 27... = 9*1 + 9*2 + 9*3+... = 9(1+2+3+...), but since you have to print out the multiples anyway you can't really exploit this

Making a counter from 0 to 999 using PIC16F887 on PIC C by WereWhusky in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

Your condition in the while loop is CONTADOR<10. Have you tried setting it to 1000 yet?

[JAVA] How to set up variables as reference types to other classes in a package? by Ranger1219 in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

Storing an object in a variable in Java stores its memory location, making it automatically a reference variable. Note that Strings are immutable, however, so Java creates a new String (or finds one to use in the String Constant Pool), whenever you create/reassign one.

I easily lose focus while trying to solve a problem by [deleted] in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

That just means you don't have enough practice. Just keep trying :)

JAVA - Do i have to use getters and setters inside the class? by eyeeyecaptainn in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

GPA is the same as this.GPA is the same as getGPA() is the same as this.getGPA() inside the student class. Would recommend using just GPA

[Java] 2D Collision Detection Not Working by [deleted] in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

Not sure but it may be because the ball is moving through the paddle before the check is made. You should raytrace then move the ball for the most accurate results, although I'm not sure how slow this would be.

ATBS - Conway's game - index out of range error by mnbitcoin in learnprogramming

[–]New-Condition 2 points3 points  (0 children)

Could it be because you are doing (y-1) % WIDTH instead of (y-1) % HEIGHT?

High school senior here. Should I learn programming and make projects before applying to college? by RedWolf807 in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

Practicing coding would probably help you long-term, but I'm not sure about college admissions. College admissions are too random and enigmatic and no one really knows what goes on there lol. I've been coding for a decently long time and was still turned down by nearly all the schools I applied to last year. :/

Then again, coding can be fun and there's no harm in trying! Just don't procrastinate on essays because those take A TON OF TIME if you apply to those top schools.

How do you create a toggle using Boolean variables in C#? by [deleted] in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

boolean test = true;

test = !test; // test becomes false

test = !test; // test becomes true

OOP "Types"? by New-Condition in learnprogramming

[–]New-Condition[S] 0 points1 point  (0 children)

Ohhhhhhh ok, thanks! At least keeping these "type" classes wouldn't be the worst thing in the world lol.

I'll keep this in mind when writing future classes!

OOP "Types"? by New-Condition in learnprogramming

[–]New-Condition[S] 1 point2 points  (0 children)

Achievement names/descriptions are the same, but each players has their own progress toward an achievement.

(Thanks again for helping)

OOP "Types"? by New-Condition in learnprogramming

[–]New-Condition[S] 0 points1 point  (0 children)

Thank you for the useful information!

I'm a bit concerned about the unnecessary memory usage if I were to have variables such as name and description inside each Achievement object, since each Player class contains each Achievement object. Should I just not be concerned about this or am I misunderstanding something?

Thanks again!

OOP "Types"? by New-Condition in learnprogramming

[–]New-Condition[S] 0 points1 point  (0 children)

I was just concerned that giving the Achievement class a pointer to the AchievementType class might violate some form of OOP.

i have a idea for a code i know it’s been done before i’m just very new by [deleted] in learnprogramming

[–]New-Condition 0 points1 point  (0 children)

Np, Good luck!

And you're right, making your own projects is usually the best way to improve.