Go to Post Screwing up is part of the game. Iterating, testing, and analyzing your failures separates the great from the average. - Jon Stratis [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-05-2014, 21:39
woudie's Avatar
woudie woudie is offline
Student
AKA: Stephen Woudie
FRC #4946 (Alpha Dogs)
Team Role: Webmaster
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Bolton, On
Posts: 32
woudie is an unknown quantity at this point
Best way to learn Java ?

Hey CD community, I was just wondering what would be the most effective and fastest way to learn Java or if there isn't a fast way whats the best way ? I wish to learn programming before the start of the 2015 season. Any advice on how learning programming will help. Hope to hear from you guys!! Thanks a bunch

Last edited by woudie : 15-05-2014 at 22:06.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-05-2014, 23:33
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Best way to learn Java ?

Do you mean learning how to program an FRC robot, or learning to program in general? That's a good first step. Do you have any general programming experience yet?
Reply With Quote
  #3   Spotlight this post!  
Unread 16-05-2014, 00:54
Domenic Rodriguez's Avatar
Domenic Rodriguez Domenic Rodriguez is offline
Registered User
FRC #0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Sep 2010
Rookie Year: 2011
Location: Grove City, PA
Posts: 213
Domenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura about
Re: Best way to learn Java ?

This thread contains some links to learning resources for Java: http://www.chiefdelphi.com/forums/sh...d.php?t=117226

The roboRIO next season will be using Java SE Embedded 8[citation needed], so a good place to start might be Oracle's Java Tutorials: http://docs.oracle.com/javase/tutorial/. FRC specific information can be found at http://wpilib.screenstepslive.com/s/3120.
__________________

LuNaTeCs - Learning Under Nurturing Adults Teaching Engineering Concepts and Skills - Small and Mighty!

FRC 316 LuNaTeCs - Student (2011-2014), Lead Programmer (2011-2014), Team Captain (2013-2014), Operator (2013), Drive Coach (2014), Mentor (2015-????)
'11 Philly Regional Finalists, '13 Chestnut Hill Finalists, '13 Lenape Champions, '13 Archimedes Division, '14 Chestnut Hill Champions, '14 Lenape Champions
FTC 7071 EngiNerds - Founding Advisor (2013-2014) | FRC 5420 Velocity - Founding Advisor (2015)
Grove City College Class of '18, Electrical/Computer Engineering (B.S.E.E)

Reply With Quote
  #4   Spotlight this post!  
Unread 16-05-2014, 01:07
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,547
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: Best way to learn Java ?

I was not a programmer on my team, but after three years of trying to learn to code on my own, the most effective way for me to actually learn to code and how to write code that people wouldn't hate me for was taking a class with a guy who was in industry for around thirty years. Obviously it was a school class, but I learned more in the last year of working with him than I did in three working independently. If you can find a good teacher, I would definitely argue that that's the best way (and arguably the fastest, since you'll pick up significantly fewer bad habits).

But that's just my experience learning Java in a non-robotics setting. I certainly wouldn't consider that route the only or best way. Unlike mechanics, where you can learn from a textbook or via physical experience, there are a million distinct ways to learn programming. As always though, a disclaimer: "Like all of my advice, your milage may vary."

I know that there's been some discussion of non-experts answering questions outside their experience, but I hope I haven't muddied the water too much...
__________________

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)
Reply With Quote
  #5   Spotlight this post!  
Unread 16-05-2014, 18:28
woudie's Avatar
woudie woudie is offline
Student
AKA: Stephen Woudie
FRC #4946 (Alpha Dogs)
Team Role: Webmaster
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Bolton, On
Posts: 32
woudie is an unknown quantity at this point
Re: Best way to learn Java ?

Quote:
Originally Posted by bvisness View Post
Do you mean learning how to program an FRC robot, or learning to program in general? That's a good first step. Do you have any general programming experience yet?
I mainly wanted to learn how to program an FRC robot, learning other things would've have been extra. I have tiny bit of experience, I learned how to program in visual basic a few months ago
Reply With Quote
  #6   Spotlight this post!  
Unread 17-05-2014, 12:45
vgdude999 vgdude999 is offline
Programmer/Driver
FRC #1751 (Comsewogue Warriors)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Port Jefferson Station, NY
Posts: 25
vgdude999 is an unknown quantity at this point
I suggest you watch the video tutorials by Brad Miller here:
youtube.com/user/BradAMiller
__________________
2013: Rookie year, programmer-in-training; SBPLI Regional Finalists
2014: Co-Captain, Programmer, Driver; Seeded 15th
2015: Co-Captain, Programmer, Driver
Reply With Quote
  #7   Spotlight this post!  
Unread 17-05-2014, 21:42
orangelight's Avatar
orangelight orangelight is offline
Registered User
AKA: Alex
FRC #0548 (Robostangs)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Northville
Posts: 166
orangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to behold
Re: Best way to learn Java ?

Are team uses the book Big Java to teach new programmers. It might have some more advanced programming you don't need to program a robot near the end but it's pretty good.
__________________


Reply With Quote
  #8   Spotlight this post!  
Unread 28-06-2014, 01:25
MatthewC529 MatthewC529 is offline
Lcom/mattc/halp;
AKA: Matthew
FRC #1554 (Oceanside Sailors)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2013
Location: New York
Posts: 39
MatthewC529 is on a distinguished road
Post Re: Best way to learn Java ?

Apologies for the essay... hopefully its helpful for you and anyone else! I will be available most of the time (as will many other awesome people on this forum) if you have questions!

If you want to learn how to code FRC Robots specifically you are going to have a hard time. True FRC Tutorials are sparse and distant in terms of keywords when searching for them. The best I can offer is the WPI ScreenSteps Live page that provides what I would call it a "Quick Start Guide to the WPI API" for all the languages, including Java.

WPI ScreenSteps Live Guide

There is setting up your IDE, writing your first program and so on and the WPILib Programming section provides plenty of examples on the basics of Actuators, PWM's, Sensors and the such with examples. Usually in C++ and Java. Anything in C++ should be easily portable to Java since most of the differences are in syntax.

Team 3133 Tutorial

This is a nice tutorial by Team 3133 which is small (covers basic Input, PWM, Pneumatics and Vision) but, in my opinion, sparse in detail and the "Why" of what works and what doesnt. Its a more "Trust Me" tutorial. I am considering doing a more in depth tutorial but it would be for IterativeBot. Useful only if you use Simple or Iterative.

The other option is to read through the WPILib Source Code which can be a HUGE help for even the most stubborn of problems. Usually the Javadocs give a lot of detail or just enough detail, the WPI team was pretty good with documentation. If there is little or no documentation you may have to dive right into the Code of WPILib itself if you want to know what you want to do is feasible and not breaking anything.

I think general Java knowledge will be to your advantage, most Computer Science programs cover VB and Alice in their first year but that makes you a Programmer... not a "Good" Programmer. You need to spend time between now and next season working on various experimental projects like Chat Clients, Games or various Applications, reading source code of other projects and learning the ins and outs of Java like at least IO, Generics, the limits of Polymorphism, Interfaces, Anonymous Inner Classes (Or Lambda's if Java SE 8 is available next year), Collections, Manipulating Arrays, How Reference Handling Works in Java, And all the awesome Utilities like java.util.Arrays, java.lang.Objects and so on.

Beginner's Java with Bucky Roberts
Intermediate Java with Bucky Roberts
Thorough Java Tutorial with Derek Banas
Java Algorithms with Derek Banas (For Fun)

These are always my general go to Recommendations. You would have found Thenewboston (Bucky) through any youtube search for Java Tutorials and Derek Banas covers so many things from Java to C# to Android to Algorithms to... Personality Tests! And his tend to be more in depth and a more conventional approach than Bucky's.

Again though I not only recommend watching these videos and reading up on WPILib Documentation and FRC Documentation but you should do stuff outside of Robotics to get your general programming ability down or else you will find it very difficult to write a cohesive, readable, maintainable code base.

Good Luck! I will be omnipotent and available if you have questions (being friendly)!

Last edited by MatthewC529 : 28-06-2014 at 23:20. Reason: Cleaner Hyperlinks
Reply With Quote
Reply


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 22:40.

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