New Class Starting on Monday(9/15).. Scala

Page 1 of 2 12 LastLast

  1. Posts : 22,740
    Windows 10 Home x64
       #1

    New Class Starting on Monday(9/15).. Scala


    I'm going to take another class from Coursera on Monday, Functional Programming Principles in Scala.
    https://www.coursera.org/course/progfun

    Looks like this is going to be fun. So far I'm working through the book by the developer of the language and it's really good.

    Wish me luck!! I hope to get a good grad again.
    Jeff....
      My Computer


  2. Posts : 68,667
    64-bit Windows 11 Pro for Workstations
       #2

    Have fun Jeff. I'm looking forward to seeing anything you write with it. :)
      My Computers


  3. Posts : 22,740
    Windows 10 Home x64
    Thread Starter
       #3

    Brink said:
    Have fun Jeff. I'm looking forward to seeing anything you write with it. :)
    Thanks Shawn.. I've written a number guessing game so far. It's far from complete but it works well enough to let me understand the basics of Scala.

    PHP Code:
    *----------------------------------------------------------------
     * 
    PGM:     GuessNumber.scala
     
    By:      Jeff Farkas
     
    *          Guess a number between 1 and 100..
     ----------------------------------------------------------------*/
    object GuessNumber {
      
    def main(args: Array[String]){
        
    //Set up the random number to guess.,
        
    var rnd = new scala.util.Random
        
    var range 1 to 100
        
    var rand_num range(rnd.nextInt(range length))
        
    println(rand_num)
        
        
    //Set up count variable and get first guess..
        
    var count 1
        
    var guess readInt()
        
        
    //Loop until the correct number is guessed....
        
    while (guess != rand_num){
            if (
    guess rand_num){
                
    println("Too High, try again.")
                
    count += 1
                
    print("Enter your guess: ")
                
    guess readInt()
            } else{
                
    println("Too Low, try again.")
                
    count += 1
                
    print("Enter your guess: ")
                
    guess readInt()
            }
        }   
        
        
    //End of Program and print out results...
        
    println("Correct!!! And it took, " count " guesses.")
      }

      My Computer


  4. Posts : 22,740
    Windows 10 Home x64
    Thread Starter
       #4

    Basic Hello World in Scala.
    PHP Code:
    /*
     * PGM:    JunkX.scala
     * By:     Jeff Farkas
     * ****    Test out various parts of Scala ...
     */
    object JunkX {
      
    def main(args: Array[String]){
        print(
    "Enter your name: ")
        
    val name readLine()
        
    println("HI " name " welcome to Scala!!")
      }

      My Computer


  5. Posts : 23,195
    Windows 10
       #5

    Good Luck

    Always wanted to try and get into coding, I can read them and they seem to make sense, but then trying it never works
      My Computer


  6. Posts : 9,652
    W10 Pro, W10 Home
       #6

    BunnyJ said:
    I'm going to take another class from Coursera on Monday, Functional Programming Principles in Scala.
    https://www.coursera.org/course/progfun

    Looks like this is going to be fun. So far I'm working through the book by the developer of the language and it's really good.

    Wish me luck!! I hope to get a good grad again.
    Jeff....
    Good luck then and have fun at the same time!
      My Computer


  7. Posts : 22,740
    Windows 10 Home x64
    Thread Starter
       #7

    paulsalter said:
    Good Luck

    Always wanted to try and get into coding, I can read them and they seem to make sense, but then trying it never works
    Thanks...
    I love programming and I've done it since I was 17. Also, It was my job for4 many years so it has been very good for me.
      My Computer


  8. Posts : 22,740
    Windows 10 Home x64
    Thread Starter
       #8

    LittleJay said:
    Good luck then and have fun at the same time!
    Thanks!! It's fun so far.. I just hope the course is not that hard.
      My Computer


  9. Posts : 22,740
    Windows 10 Home x64
    Thread Starter
       #9

    UPDATE: 9/17/14:

    Well, I started the class on Monday but it didn't go all that well. It seems that the class requires a rather high level of understanding of Java or a basic understanding of Scala. And the process of submitting the assignments for grading is a real pain in the butt. I can teach myself a lot about Scala and not have to do the class until I feel ready to take it again or if I feel I need to.

    Now I'm taking a class -- Interactive programming in Python. It's from Rice University(Houston TX) and so far it's much better. The process of coding and submitting the assignments for grading is far better and I really like the Python language.

    I have the first week of the class done and I submitted the assignment and I took the first quiz(I received a 100% on my first attempt)!!

    Jeff...
      My Computer


  10. Posts : 68,667
    64-bit Windows 11 Pro for Workstations
       #10

    Great job. :)
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:46.
Find Us




Windows 10 Forums