Page 1 of 2 [ 29 posts ]  Go to page 1, 2  Next

khaoz
Veteran
Veteran

User avatar

Joined: 9 Apr 2013
Age: 68
Gender: Male
Posts: 2,940

13 Nov 2013, 10:11 pm

I have been trying for months to learn code at code academy Python), but just cannot seem to grasp it. I think it is an issue of not understanding when to put something in quotation marks or in parenthesis. Whatever it is, I just cant figure it out. Its making me feel like I have the IQ of a street lamp, but seriously, it cant be THAT hard.

what am I doing wrong? Anyone can help me understand this better?



AardvarkGoodSwimmer
Veteran
Veteran

User avatar

Joined: 26 Apr 2009
Age: 62
Gender: Male
Posts: 7,665
Location: Houston, Texas

13 Nov 2013, 11:19 pm

First off, please try and be easy on yourself. It's hard in all kinds of fields to see both big picture and details. It might seem like this would be an easy thing, but it's not.

Myself, the first really neat C++ program I wrote was getting it to print a diamond shape of various characters of various widths. And then I kind of viewed a program as a screenplay with a beginning, middle, and end. The beginning is set up of variables, the middle is usually useful looping, the end is pulling out variables and printing in an useful way.

But then my preferred cognitive orientation is story and narrative, as opposed to abstract reasoning or thinking in pictures. So, you've got to find your own way. Just keep going at it in various ways, including diagonally so to speak.

PS Is code academy formal university classes or something more casual?



khaoz
Veteran
Veteran

User avatar

Joined: 9 Apr 2013
Age: 68
Gender: Male
Posts: 2,940

13 Nov 2013, 11:35 pm

code academy is a free online class that teaches Python, Ruby, Java, HTML...

http://www.codecademy.com/



Bodyles
Veteran
Veteran

User avatar

Joined: 10 Aug 2013
Age: 46
Gender: Male
Posts: 808
Location: Southern California

14 Nov 2013, 12:43 am

I don't know about all that, but I do know that for myself I generally learn coding languages much better when I actually have a coding project in that language I need to work on.
Google is your best friend.
Usually just asking a specific coding question will get you plenty of answers, and one of them will generally be what you need.

Stackoverflow often has the best answers, imho, but sometimes it's best to simply look at the official docs for the language to figure out a particular bit of code.

I've never dealt with Python, but generally speaking in most coding languages I've dealt with quotation marks are used to deliniate a string, which is to say a group of characters, whereas parentheses are used to contain what's passed to a function, the function itself, or sometimes both, although most languages use brackets for the functions themselves.

Hope that helps.



neobluex
Veteran
Veteran

Joined: 31 May 2013
Age: 28
Gender: Male
Posts: 589
Location: Argentina

14 Nov 2013, 7:40 am

khaoz wrote:
I have been trying for months to learn code at code academy Python), but just cannot seem to grasp it. I think it is an issue of not understanding when to put something in quotation marks or in parenthesis. Whatever it is, I just cant figure it out. Its making me feel like I have the IQ of a street lamp, but seriously, it cant be THAT hard.

what am I doing wrong? Anyone can help me understand this better?


I'm learning python there. Some topics are well explained in codeacademy, but others, specially some "challenges", are very poorly explained.



UndeadToaster
Deinonychus
Deinonychus

User avatar

Joined: 25 Sep 2013
Age: 28
Gender: Male
Posts: 340

14 Nov 2013, 3:14 pm

khaoz wrote:
code academy is a free online class that teaches Python, Ruby, Java, HTML...

http://www.codecademy.com/

The OP said he was using codecademy...

Khaoz, I learned Python by taking a Coursera course a while back, and it was pretty good, I thought. I started using codecademy afterwards, though, and I think it was beneficial, but I'm not sure it's the best place to start for an absolute beginner. There were some things that I knew from the Coursera course that just weren't explained as well or at all in codecademy. Find some other class/guide/whatever before getting discouraged.



superluminary
Toucan
Toucan

User avatar

Joined: 4 Nov 2013
Age: 49
Gender: Male
Posts: 274

15 Nov 2013, 5:02 am

khaoz wrote:
I have been trying for months to learn code at code academy Python), but just cannot seem to grasp it. I think it is an issue of not understanding when to put something in quotation marks or in parenthesis. Whatever it is, I just cant figure it out. Its making me feel like I have the IQ of a street lamp, but seriously, it cant be THAT hard.

what am I doing wrong? Anyone can help me understand this better?


It's seldom anything to do with IQ, it's a particular way of thinking. You have to get the idea of things standing in for other things. You have to be able to think in modules. You have to be absolutely exact, there's no room for any kind of fuzziness at all. To progress you have to be able to construct and maintain large abstract structures in your head. You also have to think about your code in terms of philosophy.

I've met some pretty clever people who never managed it, despite spending 3 years in CS. There are all kinds of brains, and that's good.



Spudz76
Tufted Titmouse
Tufted Titmouse

User avatar

Joined: 18 Aug 2009
Age: 48
Gender: Male
Posts: 41

19 Nov 2013, 2:43 am

In my opinion, Python is not a very good starter language. It does not share much with most of the other "C-like" languages, and tends to be very picky about things such as indentation since it is a brace-free language. I find it very alien compared to any other language. C is also very unforgiving as a starter language. I would suggest Javascript (not Java) as that is the way everything is going, PHP will be dead in a matter of a few more years. I have just switched over from all-PHP to all-Javascript (using Node.js) for web development and I sincerely hope I never have to go back and touch any of the nasty PHP stuff ever again. And I would never bother with Python unless I was trying to patch something already written in it.



superluminary
Toucan
Toucan

User avatar

Joined: 4 Nov 2013
Age: 49
Gender: Male
Posts: 274

19 Nov 2013, 6:01 am

Spudz76 wrote:
In my opinion, Python is not a very good starter language. It does not share much with most of the other "C-like" languages, and tends to be very picky about things such as indentation since it is a brace-free language. I find it very alien compared to any other language. C is also very unforgiving as a starter language. I would suggest Javascript (not Java) as that is the way everything is going, PHP will be dead in a matter of a few more years. I have just switched over from all-PHP to all-Javascript (using Node.js) for web development and I sincerely hope I never have to go back and touch any of the nasty PHP stuff ever again. And I would never bother with Python unless I was trying to patch something already written in it.


JavaScript is deep and satisfying, and unusually friendly for beginners, but you have to watch out because there's a lot of bad advice and cut and paste tutorials out there. If you get into Node you'll pick up work easily.

Ruby is also pretty fun, logical and free.



enigmeow
Tufted Titmouse
Tufted Titmouse

User avatar

Joined: 14 Nov 2013
Age: 56
Gender: Male
Posts: 32

19 Nov 2013, 6:18 am

A "fun" place to apply a early language is Unity3D (which is very C# like). You get to play with a huge game development environment and gives you that instant feedback of success

I agree on the javascript suggestion. I find python using white space to define scope silly


_________________
AQ: 42, Aspie-Quiz: 140/68


Kurgan
Veteran
Veteran

User avatar

Joined: 6 Apr 2012
Age: 36
Gender: Male
Posts: 4,132
Location: Scandinavia

19 Nov 2013, 8:39 am

OP:

You may want to check out TheNewBoston on YouTube. This channel offers excellent beginner tutorials for both Java and C++. Both of these languages can be used with Eclipse or Netbeans, which are free IDEs. As an alternative to Python, you can also check out the newly developed Go (or Golang, which it's also refered to) language; it's easier to learn, and coding is generally much quicker.



superluminary
Toucan
Toucan

User avatar

Joined: 4 Nov 2013
Age: 49
Gender: Male
Posts: 274

19 Nov 2013, 8:53 am

I'm considering writing a short book, "Coding for Aspies". What do you think?



enigmeow
Tufted Titmouse
Tufted Titmouse

User avatar

Joined: 14 Nov 2013
Age: 56
Gender: Male
Posts: 32

19 Nov 2013, 11:43 am

superluminary wrote:
I'm considering writing a short book, "Coding for Aspies". What do you think?


Quote:
chapter 1, programming c++
chapter 2, social engineering and manipulating the people around you...


In all seriousness, computer programming is aspie gold.. so pure


_________________
AQ: 42, Aspie-Quiz: 140/68


ruveyn
Veteran
Veteran

User avatar

Joined: 21 Sep 2008
Age: 88
Gender: Male
Posts: 31,502
Location: New Jersey

19 Nov 2013, 11:57 am

khaoz wrote:
I have been trying for months to learn code at code academy Python), but just cannot seem to grasp it. I think it is an issue of not understanding when to put something in quotation marks or in parenthesis. Whatever it is, I just cant figure it out. Its making me feel like I have the IQ of a street lamp, but seriously, it cant be THAT hard.

what am I doing wrong? Anyone can help me understand this better?


Python, or C, or PERL are languages. They are no substitute for learning the basic underlying logic and theme of this or that particular algorithm.

Without resorting to a programming language tell me how to sort a deck of cards first by suit and then by rank within suite, King high Ace low.

ruveyn



Kurgan
Veteran
Veteran

User avatar

Joined: 6 Apr 2012
Age: 36
Gender: Male
Posts: 4,132
Location: Scandinavia

19 Nov 2013, 4:06 pm

superluminary wrote:
I'm considering writing a short book, "Coding for Aspies". What do you think?


Programming is so much more intuitive than both body language and spoken language. :)



Asterisp
Veteran
Veteran

User avatar

Joined: 15 Dec 2007
Age: 44
Gender: Male
Posts: 898
Location: Netherlands

19 Nov 2013, 4:50 pm

Programming takes a certain way of looking at things. But for me the trigger was exploration. Taking existing code, modifying it, seeing what happens, modifying again. Together with a good book or website this was for me okay.

I started with BASIC (like there was much else on my home computer). Just start with a mainstream language, which has good books or websites. That can be a great help.