Go to Post The sword is only as powerful as it's beholder. But if you choose the labview sword you won't get much tech support at regionals. - xXhunter47Xx [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 5 votes, 4.40 average. Display Modes
  #1   Spotlight this post!  
Unread 25-02-2015, 12:05
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 116
King Nerd III is an unknown quantity at this point
Quotes from the Chief Engineer and I

(warning: the following story is about matrices.)

Today in AP Computer Science my teacher was lecturing us about how when creating a matrix, for example Matrix[3][3], the first set of brackets is rows and the second is columns. While this is usually convention, it is not actually how a matrix will work as the way we draw arrays, like the one above:
[0,0][0,1][0,2]
[1,0][1,1][1,2]
[2,0][2,1][2,2]
Is just a way for us to visualize, and not how they are actually created in the computer, as my teacher so believes. That is why I could draw the above like this:
[0,0][1,0][2,0][0,1][1,1][2,1][0,2][1,2][2,2]
or even this:
[0,0][0,1][0,2]
/////////////////[1,0][1,1][1,2]
//////////////////////////////////[2,0][2,1][2,2]
or even if I so choose I could draw it like this:
[0,0][1,0][2,2]
[0,1][1,1][2,1]
[0,2][1,2][2,2]
After a heated debate with my teacher over whether or not a computer actually builds out an array in the ordered fashion like this:
[0,0][0,1][0,2]
[1,0][1,1][1,2]
[2,0][2,1][2,2]
We decided to just dropped it. But now to the point of the post. My Chief Engineer and I were discussing the above designs and how all of them will work because you're drawing an imaginary things and it doesn't matter if you draw the cells as gummi bears it will work when I turn to him and say "People don't care about convention so long as you comment it enough!" (-Lord Supreme Programmer Isaac and Chief Enginerr Robert, 2/25/15)
So if there is a lesson to be learned it is comment your code, kids. Even though good code should speak for itself.

Last edited by King Nerd III : 25-02-2015 at 14:16.
  #2   Spotlight this post!  
Unread 25-02-2015, 12:18
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Quotes from the Chief Engineer and I

How members of an array are stored and accessed is a function of the programming language. It is not something one should worry or argue about since the language will reference and de-reference everything for you. "Row" and "Column" mean nothing to the compiler. Notation has nothing to do with the physical location since memory is laid out so one accesses word-sized elements in sequence. In C and C++ matrices and arrays are really done with pointer arithmetic - google it.
__________________
Fast, cheap or working - pick any two!

Last edited by wireties : 25-02-2015 at 12:23.
  #3   Spotlight this post!  
Unread 25-02-2015, 12:24
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 116
King Nerd III is an unknown quantity at this point
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by wireties View Post
How members of an array are stored and accessed is a function of the programming language. It is not something one should worry or argue about since the language will reference and de-reference everything for you. "Row" and "Column" mean nothing to the compiler. Notation has nothing to do with the physical location since memory is laid out so one accesses word-sized elements in sequence. In C and C++ it is really done with pointer arithmetic.
That is exactly what we said! We were trying to convince our teacher that you don't actually store these numbers in little ordered cells! We could say that when you create a Matrix[][] the first brackets are potatoes and the second are tomatoes and it would still work. It really frustrates me that my so called AP Computer Science teacher hasn't taught this since haskell, had to learn Java over the summer (he pronounces it as Jaiva, it can get irritating), and said, and I quote, "Java is the most popular programming language because three billion devices sounds like a lot". He just makes me want to smash my head into a wall. At least he got us 4 megabyte jumpdrives!

Last edited by King Nerd III : 25-02-2015 at 14:23. Reason: changed paskell to haskell
  #4   Spotlight this post!  
Unread 25-02-2015, 13:04
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by King Nerd III View Post
At least he got us 4 megabyte jumpdrives!
It sounds like your teacher is a bit behind the times...
  #5   Spotlight this post!  
Unread 25-02-2015, 13:05
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 116
King Nerd III is an unknown quantity at this point
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by philso View Post
It sounds like your teacher is a bit behind the times...
Don't worry, they will actually hold a surprising amount of documents. For just some simple Java programs they would work pretty well, but thankfully they were 4gb.

Last edited by King Nerd III : 25-02-2015 at 14:25.
  #6   Spotlight this post!  
Unread 25-02-2015, 13:21
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Quotes from the Chief Engineer and I

I think you mean "Pascal". And C/C++ (counted together) is far and away the most popular programming language.
__________________
Fast, cheap or working - pick any two!
  #7   Spotlight this post!  
Unread 25-02-2015, 13:27
cadandcookies's Avatar
cadandcookies cadandcookies is offline
Director of Programs, GOFIRST
AKA: Nick Aarestad
FTC #9205 (The Iron Maidens)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Minnesnowta
Posts: 1,554
cadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond reputecadandcookies has a reputation beyond repute
Re: Quotes from the Chief Engineer and I

Paskell sounds like an odd mix of Pascal and Haskell. That could be interesting...
__________________

Never assume the motives of others are, to them, less noble than yours are to you. - John Perry Barlow
tumblr | twitter
'Snow Problem CAD Files: 2015 2016
MN FTC Field Manager, FTA, CSA, Emcee
FLL Maybe NXT Year (09-10) -> FRC 2220 (11-14) -> FTC 9205(14-?)/FRC 2667 (15-16)
VEXU UMN (2015-??)
Volunteer since 2011
2013 RCA Winner (North Star Regional) (2220)
2016 Connect Award Winner (North Super Regional and World Championship) (9205)
  #8   Spotlight this post!  
Unread 25-02-2015, 13:29
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 116
King Nerd III is an unknown quantity at this point
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by wireties View Post
I think you mean "Pascal". And C/C++ (counted together) is far and away the most popular programming language.
Sorry, typo. I meant Haskell. Only other language he knows. And the quote about Java was from him, probably one of the funniest things he's said as it reminded me of the quote from the Java install.

Last edited by King Nerd III : 25-02-2015 at 14:15.
  #9   Spotlight this post!  
Unread 25-02-2015, 13:31
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 116
King Nerd III is an unknown quantity at this point
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by cadandcookies View Post
Paskell sounds like an odd mix of Pascal and Haskell. That could be interesting...
That would be weird. Have you ever used Chicken or LOLCODE? They look really ridiculous.
  #10   Spotlight this post!  
Unread 25-02-2015, 13:34
Fields's Avatar
Fields Fields is offline
Classic
no team
Team Role: Engineer
 
Join Date: Dec 2014
Rookie Year: 2015
Location: Minneapolis
Posts: 117
Fields is a name known to allFields is a name known to allFields is a name known to allFields is a name known to allFields is a name known to allFields is a name known to all
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by King Nerd III View Post
At least he got us 4 megabyte jumpdrives!
Wait. They still make them that size?!? Seriously, google doesn't show up when I search that size.

I remember winning a 64mb drive in college for a CAD competition about 9 years ago. THAT was a big deal.

Last edited by Fields : 25-02-2015 at 13:34. Reason: Speling suks
  #11   Spotlight this post!  
Unread 25-02-2015, 13:45
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 116
King Nerd III is an unknown quantity at this point
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by Fields View Post
Wait. They still make them that size?!? Seriously, google doesn't show up when I search that size.

I remember winning a 64mb drive in college for a CAD competition about 9 years ago. THAT was a big deal.
Well here was the order of events:
1. He asks if they still make firesticks
2. I explain to the class what a firestick is
3. He asks if they would be useful or if we would prefer storing them in the "Lightning Cloud"
4. He says that we will buy 4mb firesticks from Circuit City.
5. He shows up with 4gb jumpdrives he bought for $25 a piece. 25 dollars. Where did he find them so expensive?????
6. We explain to my teacher how a gigabyte and megabyte are different.

Last edited by King Nerd III : 25-02-2015 at 13:49.
  #12   Spotlight this post!  
Unread 25-02-2015, 22:45
jeremylee's Avatar
jeremylee jeremylee is online now
Registered User
FRC #2526 (Crimson Robotics)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2011
Location: Otsego, MN
Posts: 104
jeremylee is a jewel in the roughjeremylee is a jewel in the roughjeremylee is a jewel in the rough
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by Fields View Post
I remember winning a 64mb drive in college for a CAD competition about 9 years ago. THAT was a big deal.
When I was in school, I got a free 32mb with a $1500 dell laptop, score!

OP, it's crazy how quickly people can fall behind the times without even knowing it. Pick your battles in this kind of situation as some will never be won with either knowledge or wisdom. Might as well offer a coffee and talk about the weather instead.
  #13   Spotlight this post!  
Unread 25-02-2015, 22:50
Christopher149 Christopher149 is offline
Registered User
FRC #0857 (Superior Roboworks) FTC 10723 (SnowBots)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Houghton, MI
Posts: 1,104
Christopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond repute
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by Fields View Post
Wait. They still make them that size?!? Seriously, google doesn't show up when I search that size.

I remember winning a 64mb drive in college for a CAD competition about 9 years ago. THAT was a big deal.
I remember buying a 128 MB drive. This was about when they finally became "good", and it was on sale for the same price as a 64 MB version (at least $20).
__________________
2015-present: FTC 10723 mentor
2012-present: 857 mentor
2008-2011: 857 student

2015: Industrial Design, Excellence in Engineering, District Finalist, Archimedes Division (#6 alliance captain)
2014: Judges Award, District Engineering Inspiration, District Finalist, Galileo Division

  #14   Spotlight this post!  
Unread 25-02-2015, 22:57
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 116
King Nerd III is an unknown quantity at this point
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by jeremylee View Post
When I was in school, I got a free 32mb with a $1500 dell laptop, score!

OP, it's crazy how quickly people can fall behind the times without even knowing it. Pick your battles in this kind of situation as some will never be won with either knowledge or wisdom. Might as well offer a coffee and talk about the weather instead.
It's not like he is behind the times, he has a MacBook Air and a nice desktop for class, but the old desktop plugged into the archaic projector is just hilarious. I don't know what the plug is called, but it is larger than a VGA! God, it looks ridiculous!
  #15   Spotlight this post!  
Unread 25-02-2015, 23:07
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,814
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by King Nerd III View Post
It's not like he is behind the times, he has a MacBook Air and a nice desktop for class, but the old desktop plugged into the archaic projector is just hilarious. I don't know what the plug is called, but it is larger than a VGA! God, it looks ridiculous!
Sometimes, the older technology JUST WORKS. And that is what is important in the long run. And it wasn't too long ago that FRC used 37-pin ports (like, last year--and there's still the MXP).

I believe you were looking at some form of serial or parallel port. Probably a many-pin one. VGA, if I'm not mistaken, is another form of serial port. You use serial ports on a near-daily basis if I'm not mistaken--on the Universal Serial Bus (USB).


(Incidentally, I had to boot up a Windows 2000 computer last night. Why, you ask? Because it can run program X. Program X serves a key function in this application. Old technology? Yep. Does it JUST WORK? Yep, unless someone turns it off...)
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:04.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi