My code won't work (uhm total beginner here).

Thanks for the response :)

So next question after reading the responses after this point :p I haven't really gone too much into Python before, how would you compare Python to the likes of Java as a beginner language? Strongly typed, cross platform and it gets you into Android development.

Depends what you want from a programming language. If you want to develop Android apps, Java is obviously the go-to language instead of Python. But for a complete beginner, wanting to learn the basic logic behind programming, Python is easier and flows more logically to a lay-person.

I love C# as a language. It's great for developing business applications. For an educational and scientific tool, I'm thoroughly convinced Python is better. You don't need any IDE more complex than IDLE for Python to learn how to program:
Python-2.5.2-HelloWorld-idle.png


Is this a d1ck measuring contest?

It certainly isn't. I'm simply trying to be informative and have no idea why people would say, "No! Never get a Pi for development! It was never meant for that!" or "Don't be insane! Never think of doing Python before learning C#, think of the lack of educational resources!".
 
It certainly isn't. I'm simply trying to be informative and have no idea why people would say, "No! Never get a Pi for development! It was never meant for that!" or "Don't be insane! Never think of doing Python before learning C#, think of the lack of educational resources!".

I do not know either. I completely agree with the advice you have given here.
 
If you read my posts, you'll notice that wasn't my suggestion. However, there's certainly no educational disadvantage to doing so.

Personally, I find Python to be a better language for beginners than C#. This is a great (and free) introduction to programming for newbies, with classes starting on 6 October: https://www.coursera.org/course/pythonlearn

Any intermediate to advanced developers here started and finished any of these coursera courses? Or are they too boring/simple and eventually stop?
I am trying to improve our developers overall, and am thinking of mandatory courses per quarter in languages you done use/know, as some people are just stuck in their bubbles, with their way of thinking.
 
I did the machine learning one, tried the android cloud one, but was bored as **** with it.
 
Any intermediate to advanced developers here started and finished any of these coursera courses? Or are they too boring/simple and eventually stop?
I am trying to improve our developers overall, and am thinking of mandatory courses per quarter in languages you done use/know, as some people are just stuck in their bubbles, with their way of thinking.

Haven't done any of the developer courses, but I am signed up for cryptography starting in September. I think if you choose a course with a higher difficulty level or pace, it could be a good idea.
 
Got a question about .substring(x,y);

Let's take the word 'Food'

F = 0
o= 1
o = 2
d = 3

So why is it that when we cut "food".substring(0,2); we get "fo" instead of "foo".
 
I don't understand a few things you said, but I get these errors when I use the ( instead of {
View attachment 139506

I guess the next step is to find out how to use those errors to fix things and find out when to use { and when to use (
The thing about compiler errors is that they seldom refer directly to the cause. They refer instead to the point where compiler could not process any further. So for example if you don't have matching braces or brackets the compiler may give some cryptic message about found end of file or end of class when expecting }.

So often the line referred to in the error is where the compiler gave up and not where the cause of the error is.

The type of error I referred to can be avoided if you have a good IDE. Some IDE 's automatically add the closing brace or bracket when type the opening brace or bracket. Some even do this with single and double quotes (Komodo Edit is one). Often the express versions of some IDE's don't, making this a common nightmare for beginners who use them.

Something that might help you is to try to make your code changes iteratively in small steps. For example type a section them compile. Obviously a section that is complete. So that when you get a compiler error it's easy to track because chances are its in the bit you just typed. For example when you do an if else, first do its skeleton, compile, then fill out the if block, compile, then fill out the else block and compile.
 
Last edited:
How can I put high quality screenshots in MyBB forum posts? Everything comes out like it's 144p.

Like this Untitled.jpg
 
Got a question about .substring(x,y);

Let's take the word 'Food'

F = 0
o= 1
o = 2
d = 3

So why is it that when we cut "food".substring(0,2); we get "fo" instead of "foo".
0 is your starting index, 2 is the length of the string you want.
 
Top
Sign up to the MyBroadband newsletter
X