Official CS50x Thread (Free Online Harvard Programming [C, PHP, HTML, Javascript, SQL...] Courses

Ctrl

Rookie
Joined
May 2, 2013
Messages
59
Reputation
40
Daps
211
@Ctrl major props on such a detailed explanation breh , i literally spent the last 3 hours rereading your answer but it finally made sense to me, so lets say the program were to keep "counting" people the next set past 4 would be

4=4+1 correct? which would "equal" 5, which would be our next "0"

took me a minute to understand that 0 aint per se actually the numerical zero but could equal a "get set" command if need be

dunno if i even said that right :laugh:

No problem.

Correct, for N = N + 1, on the next iteration, 5 would become the new value of N.

And yeah, that 0 is just a value that we deliberately set for N before doing anything else.
Its value is a numerical 0, but it can be updated to a new value when we use the assignment operator ("=").

It might be easier to visualize at first if we keep the variable name on the left, and substitute its value on the right.
So when N is 0, instead of writing 0 = 0 + 1 or N = N + 1, we can write it out as:

N = 0 + 1 (N gets set to the value of 0 + 1)
N = 1 (The right side is simplified so that we now have: N gets set to 1)

And then
N = 1 + 1
N = 2

N = 2 + 1
N = 3

N = 3 + 1
N = 4

Hopefully that clears that up for anyone else who may have been having trouble.
 

newarkhiphop

Moderator
Staff member
Supporter
Joined
Apr 30, 2012
Messages
37,909
Reputation
10,132
Daps
124,595
watching this thread.... i want to jump in the pool, but i'm scared the water is cold... dippin' my foot in now.... :russ:

:yeshrug: go for it breh, nothing to lose everything to gain, this is my second time trying something like this, Stanford has something similar last year but i dropped out, course was too difficult, this one is easier but still challenging
 

mc_brew

#NotMyPresident
Joined
May 19, 2012
Messages
5,459
Reputation
2,415
Daps
18,368
Reppin
the black cat is my crown...
:yeshrug: go for it breh, nothing to lose everything to gain, this is my second time trying something like this, Stanford has something similar last year but i dropped out, course was too difficult, this one is easier but still challenging
more than likely i will.. i always found programming interesting... i messed around with vb a little bit way back when... i also have messed around with html & css a little bit too.... i've never been able to get deep into programming, because the coding and logical aspects are both tedious and challenging... but it is always fun when you get to the completed project... it's fun to imagine a program or site and be able to take it from your imagination to something people can actually interact with.... don't worry, brew will jump in the pool soon....
 

<<TheStandard>>

I Am A God
Joined
May 1, 2012
Messages
11,530
Reputation
2,417
Daps
34,390
I'm thinking about signing up and taking this class.

I could see this being very helpful to me.

I've pretty much been running my own business (Djing and doing graphic design) since I graduated in 2008 and could never get a stable job outside of that……this seems like a good way to make myself more marketable and utilize my natural skill set for computers incase my music industry aspirations don't really work out (and right now it's cool but it could be better)…..In this day and age it's perfect for me.

Thanks for sharing this. I really appreciate it.
 

Hahahaha

All Star
Joined
May 1, 2012
Messages
1,784
Reputation
320
Daps
4,120
Just signed up.

I work in IT but never learned to code anything so will see how it goes. I've always wanted to learn powershell or other scripting but with no foundation always found the concepts hard to grasp.
 

FreshFromATL

Self Made
Joined
May 1, 2012
Messages
19,674
Reputation
2,631
Daps
43,785
Reppin
ATL
First off, good luck to everyone that's embarking on this journey. Hopefully you are all able to develop some new useful skills on this quest.

Now, my advice in here for the people that are learning to code is to LEARN TO LOVE IT. If you are only thinking about the money, programming will eat your ass alive. Why must you learn to love it? Technology changes A LOT. What you learn today can become obsolete next year. You have to constantly read and practice to get better. You have to CONSTANTLY learn new shyt. You can never learn enough and be cool with just that knowledge. Only if you love it will you be able to get better to the point where you can actually write or contribute to useful applications that use multiple technologies.

I'm not trying to deter anyone...just letting you know the real. Learn to love it, practice everyday, read, watch videos, and hopefully you'll be the one inventing some new, in-demand technology.

Good luck ya'll :salute:
 

newarkhiphop

Moderator
Staff member
Supporter
Joined
Apr 30, 2012
Messages
37,909
Reputation
10,132
Daps
124,595
:blessed: just finishes Week 0 , going to work on my SCRATCH game tomorrow after work, this second part of lesson 0 was much easier to understand SCRATCH sounds like a such a dope programming software too bad they ain't all like that , i could see kids picking it up super quick

@Liu Kang and others drop your SCRATCH links when done would like to see what yall cooked up
 

Liu Kang

KING KILLAYAN MBRRRAPPÉ
Supporter
Joined
May 3, 2012
Messages
13,749
Reputation
5,513
Daps
29,903
I'm working on some (kinda) space invader type of game but there are still some bugs in it I'm trying to solve. Will up it today to see if you can help to find where I'm fukkin up :lolbron:

By the way, there is a offline version of Scratch which is better so you don't need internet.
 
Top