learning to code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jonlovesddr
    h
    • Sep 2008
    • 1631

    #1

    learning to code

    I'm a first semester comp sci student and my intro course is an intro to object oriented programming which focuses on java, but I'm kind of struggling since I have no prior coding experience and I might not pass this course
    I want to continue learning to code, but it's really discouraging that my first experiences with writing code have been this difficult'
    Does anyone have any words of wisdom/encouragement or advice on how to not suck at coding

    [if it makes a difference] I've been reading this book to supplement course material
    Build the skills your teams need. Give them the O'Reilly learning platform and equip them with the resources that drive business outcomes.
  • choof
    Banned
    FFR Simfile Author
    • Nov 2013
    • 8563

    #2
    Re: learning to code

    advice is to learn how to code
    honestly, if you're a first sem comp sci student and you're getting shit on by java
    I would recommend selecting a different major

    Comment

    • choof
      Banned
      FFR Simfile Author
      • Nov 2013
      • 8563

      #3
      Re: learning to code

      Learn to code in Java — a robust programming language used to create software, web and mobile apps, and more.

      This beginner Java tutorial describes fundamentals of programming in the Java programming language

      A website dedicated to the fascinating world of mathematics and programming

      Q&A for professionals, academics, and students working within the systems development life cycle

      Comment

      • Jonlovesddr
        h
        • Sep 2008
        • 1631

        #4
        Re: learning to code

        that's not encouraging
        but thanks

        Comment

        • choof
          Banned
          FFR Simfile Author
          • Nov 2013
          • 8563

          #5
          Re: learning to code

          Originally posted by Jonlovesddr
          that's not encouraging
          but thanks
          java is used as a stepping stone in programming for a reason, it's a very easy language to pick up and it's widely used throughout the world. are you having trouble with the language itself (aka syntax), or are you having trouble with how the language actually works (aka logic)

          if it's the syntax, my advice is to spend all your time writing snippits of code
          if it's the logic, it depends on how long you've been in the class. if you keep struggling, you'll be utterly left in the dust later on

          the lack of programming experience can really only be fixed one way: by continuing to program with java.
          Last edited by choof; 12-13-2015, 12:53 PM.

          Comment

          • Jonlovesddr
            h
            • Sep 2008
            • 1631

            #6
            Re: learning to code

            seems more like syntax because it feels like there's a ton of vocabulary that i just am not familiar with
            and i haven't written a lot of code this semester since most of the course is science and learning OO concepts
            i can write plenty of test code in eclipse though so i should start doing that

            Comment

            • Contrapasso
              FFR Player
              • Nov 2013
              • 108

              #7
              Re: learning to code

              Originally posted by Jonlovesddr
              i can write plenty of test code in eclipse though so i should start doing that
              then get to coding, brEh
              Originally posted by Ziemniax
              the amount of people telling he's bs just shows how freaking good this guy is.
              Originally posted by MrPopadopalis25
              Agreed. Same reason why I know god is real.
              Originally posted by Ghakimx
              If I was the officer, if I saw the guy, I would try to assess the situation properly. What is the race of the guy?

              Comment

              • Xayphon
                sausage
                FFR Simfile Author
                • Nov 2008
                • 1630

                #8
                Re: learning to code

                Learning how to code is certainly not limited to anybody with special abilities. I've never had any computer scientific courses or any maths honor class or anything else that encourages logical thinking in highschool and I still learned how to code in Java to an intermediate level. Being good at coding requires dedication and experience, none of which you currently have. You are still at point 0 and need to understand its concepts and how coding languages require you to think. You really only learn by coding yourself and trying to get programs to do what you actually want.

                Java as a first programming language with all its concepts is certainly not easy to learn, but once you get that down, you will have less and less trouble picking up other (imperative) languages, getting used to them, and knowing how to program. It's like a thinking paradigma you need to understand and get used to, it comes with time. I really encourage you to constantly keep yourself busy with programming simple tasks and also challenging yourself to tackle bigger and bigger problems, even if it's just trying to understand terms like public, private, void, extends, abstract, interface, and so on.

                Comment

                • benguino
                  Kawaii Desu Ne?
                  • Dec 2007
                  • 4185

                  #9
                  Re: learning to code

                  It's kinda hard to help considering the vagueness of the OP. So the only thing I can provide is some generic/vague suggestions:

                  -practice

                  -If you get stuck, look at someone else's code (Google is your friend). When one first starts learning something, sometimes it's easiest to learn by imitation. Try copy/pasting some code and modifying it to suit your needs. If you do this though, make sure you go through the copied code line by line, and try to understand exactly how that piece of code is working. Eventually, you'll be good enough to where you don't need to Google them anymore (e.g. I would hope don't have to google "how to loop through elements in array" 30 million times before you can do it on your own). You can pick up a lot of things from someone else's code such as good coding patterns and good code styling (e.g. variable names, use of whitespace, etc).

                  -Focus more on the algorithm/logic and the different paradigms in imperative and OO-programming as opposed to the syntax or memorizing function names in the Java standard libraries. Personally, I'm horrible when it comes to the latter (syntax and function names) but those are a quick google search away. The syntax will come naturally to you over time.

                  -Learn how to read the official documentation. Tutorials and stuff can help, but sometimes you need to go directly to the source to get the information you need. For example, this is the official documentation for Java's String Class: here.

                  -Learn how to effectively use your IDE. Make use of any code completion features and such. For example, for many IDE's, when you type a function call and start entering parameters, it'll tell you what the parameters are.

                  -Comment your code. First, by commenting your code, it forces you to think about what the piece of code is actually accomplishing. Second, comments help for when other people (including future versions of yourself) have to read your code.

                  -When trying to program, sometimes it helps to not jump straight into coding. In essence, you want to create an algorithm. In cooking, people call this a recipe. If you can write a recipe, you can code. First, think about how you would describe the algorithm ("recipe") to another person, in English terms. It can even be an algorithm that involves the other person using a paper/pencil setup. Now, for each step in the algorithm you came up with, clarify the step and/or break down the step into smaller steps such that every step is unambiguous. Once you have your collection of unambiguous steps, then they should easily translate into code.

                  -Learn how to trace your code (by hand). Given a piece of code, you should be able to tell what the output is going to be. This is a good skill for debugging, especially for small test cases and edge cases.
                  AMA: http://ask.fm/benguino

                  Not happening now! Don't click to join!



                  Originally posted by Spenner
                  (^)> peck peck says the heels
                  Originally posted by Xx{Midnight}xX
                  And god made ben, and realized he was doomed to miss. And said it was good.
                  Originally posted by Zakvvv666
                  awww :< crushing my dreams; was looking foward to you attempting to shoot yourself point blank and missing

                  Comment

                  • leonid
                    I am leonid
                    FFR Simfile Author
                    FFR Music Producer
                    • Oct 2008
                    • 8080

                    #10
                    Re: learning to code

                    Try learning functional programming language as well when you have time (Haskell, Scheme, etc)



                    Proud member of Team No

                    Comment

                    • aperson
                      FFR Hall of Fame
                      FFR Simfile Author
                      • Jul 2003
                      • 3431

                      #11
                      Re: learning to code

                      Originally posted by leonid
                      Try learning functional programming language as well when you have time (Haskell, Scheme, etc)
                      Agreed. J is an excellent language to pick up.

                      Comment

                      • Reincarnate
                        x'); DROP TABLE FFR;--
                        • Nov 2010
                        • 6332

                        #12
                        Re: learning to code

                        No love for Scala?

                        Comment

                        • benguino
                          Kawaii Desu Ne?
                          • Dec 2007
                          • 4185

                          #13
                          Re: learning to code

                          Jon here is struggling with the fundamental paradigms and general syntax of an imperative programming language (in this case Java). I don't think trying to get him to tackle functional programming languages is the best course of action at the moment, at least from a pedagogical standpoint.
                          AMA: http://ask.fm/benguino

                          Not happening now! Don't click to join!



                          Originally posted by Spenner
                          (^)> peck peck says the heels
                          Originally posted by Xx{Midnight}xX
                          And god made ben, and realized he was doomed to miss. And said it was good.
                          Originally posted by Zakvvv666
                          awww :< crushing my dreams; was looking foward to you attempting to shoot yourself point blank and missing

                          Comment

                          • lurker
                            ur worst nitemare
                            FFR Simfile Author
                            • Jan 2003
                            • 1628

                            #14
                            Re: learning to code

                            Originally posted by Jonlovesddr
                            that's not encouraging
                            but thanks
                            i'm a current comp sci major and one of my professors said the same exact thing to the whole class about halfway into the semester (about assembly though, not java)
                            it is a tough field and if you stay stuck at this same level relative to your peers you're gonna have a bad time when you have to do interviews later on
                            i'm gonna add the book i used to get comfortable with java to choof's list: http://math.hws.edu/javanotes/
                            you should be looking at a lot of sample code and this site has a pretty decent amount of it

                            Originally posted by Jonlovesddr
                            i can write plenty of test code in eclipse though so i should start doing that
                            and yeah this
                            some feathery f**k

                            Comment

                            • rushyrulz
                              Digital Dancing!
                              FFR Simfile Author
                              FFR Music Producer
                              • Feb 2006
                              • 12985

                              #15
                              Re: learning to code

                              Originally posted by leonid
                              Try learning functional programming language as well when you have time (Haskell, Scheme, etc)
                              SML was pretty OK, too bad my professor was a massive dickhead about it.


                              Comment

                              Working...