Bitcoin Forum
November 09, 2024, 03:22:46 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Programming lessons wanted  (Read 1381 times)
phazon307
Full Member
***
Offline Offline

Activity: 140
Merit: 100

Don't fear Crypto Exchanges go with honest well kn


View Profile
January 26, 2014, 07:59:19 AM
 #21

Algebra is heavily used in programming.

Programming is full of

j=1; j<array.length;j++

type lines, no matter the language.


What does that line have to do with algebra?! That's an extract from an if() loop, 3 individual but related statements.

I've been programming for 20 years and can't remember the last time I needed algebra after A-level maths in school :p (but I don't do any 3D gaming progarmming, which is where I guess you're aiming this at)
I am pretty sure that if there are variables in a program, there's algebra involved. If there's something other than a number representing a value, it's probably algebra.
When you are creating a variable your defining something. This can use algebra but it can also not var time = getTime(); all your doing is making time = to a function so you don't have to write out the entire function over and over and over again that way when you want to use getTime you just say time.

Win up $200.00 usd in bitcoins every hour.
U1TRA_L0RD
Full Member
***
Offline Offline

Activity: 126
Merit: 100

CAUTION: Angry Man with Attitude.


View Profile
January 26, 2014, 10:12:55 AM
 #22

Hey guys, Is codemasters down for you? I cant seem to access it. It just says 405 forbidden  Huh
btcton
Legendary
*
Offline Offline

Activity: 1302
Merit: 1007


View Profile
January 26, 2014, 04:01:01 PM
 #23

Algebra is heavily used in programming.

Programming is full of

j=1; j<array.length;j++

type lines, no matter the language.


What does that line have to do with algebra?! That's an extract from an if() loop, 3 individual but related statements.

I've been programming for 20 years and can't remember the last time I needed algebra after A-level maths in school :p (but I don't do any 3D gaming progarmming, which is where I guess you're aiming this at)
I am pretty sure that if there are variables in a program, there's algebra involved. If there's something other than a number representing a value, it's probably algebra.
When you are creating a variable your defining something. This can use algebra but it can also not var time = getTime(); all your doing is making time = to a function so you don't have to write out the entire function over and over and over again that way when you want to use getTime you just say time.
Just by giving time a value (any value) you are already using algebra. At least from the way I see it.

The signature campaign posters adding useless redundant fluff to their posts to reach their minimum word count are lowering my IQ.
gogodr
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250



View Profile
January 26, 2014, 06:51:37 PM
 #24

Why does it matter if it uses math or not?
Learn it if you need it. You are already doing that with the programming language.
Usually when programming games (what I do.), I use calculus and physics a lot.
When programming web, usually I need some math to calculate offsets and positioning for the front end. Almost only logic on the back end.
rhino34567
Sr. Member
****
Offline Offline

Activity: 288
Merit: 250


View Profile
January 26, 2014, 07:13:35 PM
 #25

Does anybody know the best site to learn Java and/or C++? I can't find many good sites out there.

U1TRA_L0RD
Full Member
***
Offline Offline

Activity: 126
Merit: 100

CAUTION: Angry Man with Attitude.


View Profile
January 26, 2014, 07:15:20 PM
 #26

Does anybody know the best site to learn Java and/or C++? I can't find many good sites out there.
Codemasters is working now, I see that that is the best site to learn any language of coding!
nickjer
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
January 27, 2014, 02:10:56 AM
 #27

Algebra is heavily used in programming.

Programming is full of

j=1; j<array.length;j++

type lines, no matter the language.


What does that line have to do with algebra?! That's an extract from an if() loop, 3 individual but related statements.

I've been programming for 20 years and can't remember the last time I needed algebra after A-level maths in school :p (but I don't do any 3D gaming progarmming, which is where I guess you're aiming this at)

20 years of programming and you just stated an "if loop"? Please explain how an "if loop" works.

Also, programming is swimming in algebra. Not only are you passing values around in variables and defining functions with them (e.g., b = 3.0; h = 2.0; a = 0.5*b*h;) but you also use 1D and 2D arrays which is basic linear algebra (e.g., v[i*length+j]). Also a "real" if statement is a common place to see algebraic options such as:

if (f(x) % 2 == 0) { //code here }

Not to mention the amount of algebra used in many of the algorithms you take for granted (e.g., sorting, hashing, searching).
U1TRA_L0RD
Full Member
***
Offline Offline

Activity: 126
Merit: 100

CAUTION: Angry Man with Attitude.


View Profile
January 27, 2014, 02:15:09 AM
 #28

Algebra is heavily used in programming.

Programming is full of

j=1; j<array.length;j++

type lines, no matter the language.


What does that line have to do with algebra?! That's an extract from an if() loop, 3 individual but related statements.

I've been programming for 20 years and can't remember the last time I needed algebra after A-level maths in school :p (but I don't do any 3D gaming progarmming, which is where I guess you're aiming this at)

20 years of programming and you just stated an "if loop"? Please explain how an "if loop" works.

Also, programming is swimming in algebra. Not only are you passing values around in variables and defining functions with them (e.g., b = 3.0; h = 2.0; a = 0.5*b*h;) but you also use 1D and 2D arrays which is basic linear algebra (e.g., v[i*length+j]). Also a "real" if statement is a common place to see algebraic options such as:

if (f(x) % 2 == 0) { //code here }

Not to mention the amount of algebra used in many of the algorithms you take for granted (e.g., sorting, hashing, searching).

Wow, So it does need complex math.
Caesium
Hero Member
*****
Offline Offline

Activity: 546
Merit: 500


View Profile
January 27, 2014, 02:17:11 AM
Last edit: January 27, 2014, 02:39:02 AM by Caesium
 #29

Algebra is heavily used in programming.

Programming is full of

j=1; j<array.length;j++

type lines, no matter the language.


What does that line have to do with algebra?! That's an extract from an if() loop, 3 individual but related statements.

I've been programming for 20 years and can't remember the last time I needed algebra after A-level maths in school :p (but I don't do any 3D gaming progarmming, which is where I guess you're aiming this at)

20 years of programming and you just stated an "if loop"? Please explain how an "if loop" works.

Yep, cos I really haven't got better things to do than prove myself to you..

edit: having gone away and thought about why you made a point of that I realised my error. Of course I meant condition not loop. My programming is better than my grasp of English, I swear.

Quote

Also, programming is swimming in algebra. Not only are you passing values around in variables and defining functions with them (e.g., b = 3.0; h = 2.0; a = 0.5*b*h;) but you also use 1D and 2D arrays which is basic linear algebra (e.g., v[i*length+j]). Also a "real" if statement is a common place to see algebraic options such as:

if (f(x) % 2 == 0) { //code here }

Not to mention the amount of algebra used in many of the algorithms you take for granted (e.g., sorting, hashing, searching).


I've just never heard the term algebra used to refer to this sort of basics maths before, I suppose.

In school whenever algebra was mentioned it was always related to equations like: http://en.wikipedia.org/wiki/Algebra#Algebra_as_a_branch_of_mathematics

but you know, feel free to nitpick over my choice of words some more.

Tired of annoying signature ads? Ad block for signatures
techgeek
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000


View Profile
January 27, 2014, 02:48:31 AM
 #30

Have you checked out codeacademy.com or like treehouse.


nickjer
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
January 27, 2014, 02:57:08 AM
 #31

Algebra is heavily used in programming.

Programming is full of

j=1; j<array.length;j++

type lines, no matter the language.


What does that line have to do with algebra?! That's an extract from an if() loop, 3 individual but related statements.

I've been programming for 20 years and can't remember the last time I needed algebra after A-level maths in school :p (but I don't do any 3D gaming progarmming, which is where I guess you're aiming this at)

20 years of programming and you just stated an "if loop"? Please explain how an "if loop" works.

Yep, cos I really haven't got better things to do than prove myself to you..

edit: having gone away and thought about why you made a point of that I realised my error. Of course I meant condition not loop. My programming is better than my grasp of English, I swear.

Hah, sorry was just giving you a hard time. Although an if loop would be impressive Smiley
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!