cfoley's Profile User Rating: -----

Reputation: 2044 Grandmaster
Active Posts:
4,223 (1.68 per day)
11-December 07
Profile Views:
Last Active:
User is offline Today, 08:39 AM

Previous Fields

OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
Expert In:

Latest Visitors

Icon   cfoley has not set their status

Posts I've Made

  1. In Topic: Programming with a learning disorder

    Posted 21 Oct 2014

    Programming is a difficult thing to learn for everybody. I can only imagine it is even harder with a learning disorder. Although I have very little knowledge of learning disorders, here is some advice I would give to any aspiring coder. Maybe it will be of use to you too:

    * Pick one language and stick to it. All the languages you listed are conceptually very similar so just pick one. My first recommendation to beginners these days is Python. If you find programming difficult because of all the things you need to remember then maybe something like Clojure or Racket would help. The latter two have very little syntax but are still plenty powerful.

    * Programming is a combination of knowledge and skill. You can't learn the skill from a book. You have to pick up the skill by repeatedly trying things out. A good book will have practice problems. Do them all. If it doesn't have enough then look for more elsewhere. You should also have your own mini projects to work on. You won't always be able to finish them. You will make loads of mistakes but the learning from those early projects is invaluable.
  2. In Topic: Learning to Debug

    Posted 19 Oct 2014

    No shame in looking for help. I've been programming in Java since 2000 and google for things I don't know all the time. Most of the time I know the answer will be in the API's javadoc but it's often quicker to find what I need on Stack Overflow, blogs or tutorials.

    If I have to program something in a less familiar language I take a two pronged approach. I spend some time reading tutorials and getting the language's programming model into my head. Then while I'm working I make heavy use of google to help me with unfamiliar syntax and example code for the language's API.

    The trick is to know what pieces to google for. Most imperative languages will have similar building blocks. Maybe you know you need a while loop or an if statement. Fine, google for that and put a program together in an unfamiliar language. That's how I got started in Ruby and Python but really I was writing Java programs with the syntax of those languages. At least that let me get some work done. As time went on I picked up on language features that helped me code better in those languages.

    I find "programming by google" more challenging in functional languages. I'm just not familiar enough with the paradigm. Often when I look for some usage of an API, I can't make sense of the example code. Even when I think I can, it's not unusual for me to be unable to bend it to my needs. It means I have to place more emphasis on learning the language and understanding the API.
  3. In Topic: Scanner Array Initializing

    Posted 14 Oct 2014

    You need single quotes around 'n'. Double quotes for Strings, single for chars.
  4. In Topic: Finding String length without variables

    Posted 14 Oct 2014

    Ha, ha. Good for you for solving it!
  5. In Topic: Scanner Array Initializing

    Posted 13 Oct 2014

    while(repeat != 'n' || quiz.questionCount < 10)

    Let's use an example and say the variables are like this:

    repeat = 'n'
    quiz.questionCount = 5

    repeat != 'n' would be false
    quiz.questionCount < 10 would be true

    repeat != 'n' || quiz.questionCount < 10 would be false || true

    false || true evaluates to true which will keep the loop going.

    You have to change the || for something else. Can you see what it would be?

My Information

Member Title:
32 years old
April 7, 1982
Forum Leader:
Years Programming:

Contact Information

Click here to e-mail me
Website URL:
Website URL  http://


Page 1 of 1
  1. Photo

    burakaltr Icon

    06 Mar 2013 - 18:18
    Thanks for Your Precious Input. I Found the character counting thing very bedazzling. I have the code to it that I wrote Myself, but it took me Long to find a subtle Algorithm :)
  2. Photo

    cfoley Icon

    18 Oct 2011 - 03:29
    Cheers! The next one is in progress, but I'm having to learn and write some programs first. It's going to take a little time...
  3. Photo

    Dogstopper Icon

    18 Oct 2011 - 03:24
    Nice blog. Can't wait to see more
  4. Photo

    ayaz 786123 Icon

    25 Feb 2011 - 06:49
    have a nice day sir
  5. Photo

    cfoley Icon

    16 Feb 2011 - 17:26
    Oooh thanks! Your comment is the first I heard!
  6. Photo

    m-e-g-a-z Icon

    16 Feb 2011 - 15:34
    Congrats on becoming a Forum Leader! :)
  7. Photo

    Dogstopper Icon

    08 Jan 2011 - 23:49
    "Cabbage" is much better! :D
  8. Photo

    cfoley Icon

    06 Jan 2011 - 16:19
    Cheers dude!
  9. Photo

    Dogstopper Icon

    06 Jan 2011 - 14:36
    "Purple DIC-headed Warrior" doesn't quite apply now that you got the promotion. Well done!
  10. Photo

    DaneAU Icon

    08 Sep 2010 - 09:19
    "cfoley has no profile comments yet. Why not say hello?"
    I don't have many comments either, so i am only doing what the thingy below said to do, hello cfoley and thanks for the thanks :)
Page 1 of 1