Is it too late to learn Python

Thread Solved

Join Date: Jul 2005
Posts: 1,221
Reputation: bumsfeld will become famous soon enough bumsfeld will become famous soon enough 
Solved Threads: 137
bumsfeld's Avatar
bumsfeld bumsfeld is offline Offline
Nearly a Posting Virtuoso

Re: Is it too late to learn Python

 
0
  #11
Mar 27th, 2008
Compared to Java, Python has simplified a lot of the syntax. It will spoil you, and you may actually have fun.
Should you find Irony, you can keep her!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 1,542
Reputation: Ene Uran has a spectacular aura about Ene Uran has a spectacular aura about 
Solved Threads: 171
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Virtuoso

Re: Is it too late to learn Python

 
0
  #12
Mar 27th, 2008
The proof is in the pudding. Take a small project like creating a monthly calendar and try to do it with Java and then with Python.
drink her pretty
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 181
Reputation: Paul.Esson is an unknown quantity at this point 
Solved Threads: 10
Paul.Esson's Avatar
Paul.Esson Paul.Esson is offline Offline
Junior Poster

Re: Is it too late to learn Python

 
0
  #13
Mar 30th, 2008
Originally Posted by ZZucker View Post
Look at the syntax of Java and Python. Which one would you rather use?
In that case Java.

Only reason I have never tryed Python is because of the syntax. I feel that is far removed from everything else. Switching from C++ to C to Java to C# is simple, The syntax in the languages are very similar, But that may just be me.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 138
Reputation: a1eio is an unknown quantity at this point 
Solved Threads: 21
a1eio's Avatar
a1eio a1eio is offline Offline
Junior Poster

Re: Is it too late to learn Python

 
0
  #14
Mar 30th, 2008
python has defiantly spioled me!

i hate the look of other languages even tho i'd love to learn them.. whenever i try.. i end up going back to python just cause it's so much clearer and quicker to make things.

i just wish it was a bit easier to create standalone programs that don't need the interpreter running. (i've tried py2exe but i just can't get my head round it)
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,013
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 929
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Is it too late to learn Python

 
0
  #15
Mar 30th, 2008
Okay Paul, in your case you use what you are familiar with.

Here is a little Python code, that I have asked people to write in C++, C, Java or C# ...
  1. a = 111111111 # that's nine ones
  2. print a * a # 12345678987654321
If it's late in the day and counting off nine ones is difficult you can use a = int('1'*9)
Last edited by vegaseat; Mar 30th, 2008 at 10:41 am.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 138
Reputation: a1eio is an unknown quantity at this point 
Solved Threads: 21
a1eio's Avatar
a1eio a1eio is offline Offline
Junior Poster

Re: Is it too late to learn Python

 
0
  #16
Mar 30th, 2008
hehe, nicely put vega, i totally forgot about that beautiful aspect of python
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 917
Reputation: linux is an unknown quantity at this point 
Solved Threads: 27
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: Is it too late to learn Python

 
0
  #17
Mar 30th, 2008
The thing about Python that I find more appealing than C, C++, Java, etc. is how you really don't need that many modules to do heavy things. You also aren't required to declare classes and functions to write a simple program.
Last edited by linux; Mar 30th, 2008 at 12:40 pm.
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 181
Reputation: Paul.Esson is an unknown quantity at this point 
Solved Threads: 10
Paul.Esson's Avatar
Paul.Esson Paul.Esson is offline Offline
Junior Poster

Re: Is it too late to learn Python

 
1
  #18
Mar 31st, 2008
That scares me a little, How does one implement a rotating counter in python ?

  1. class Program
  2. {
  3. public static void Main(string[] args)
  4. {
  5. ulong a = 111111111; // Thats 9 1's
  6. System.Console.WriteLine((a * a));
  7. }
  8. }

using C++ and .net
  1. using namespace System;
  2.  
  3. int main(array<System::String ^> ^args)
  4. {
  5. Int64 a = 111111111;
  6. Console::WriteLine( Int64(a * a) );
  7. return 0;
  8. }
  1. //Don't have a java compiler but would be somthing along the lines of
  2. long a = 111111111;
  3. System.out.println( (a * a).toString());
Last edited by Paul.Esson; Mar 31st, 2008 at 8:05 am.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 181
Reputation: Paul.Esson is an unknown quantity at this point 
Solved Threads: 10
Paul.Esson's Avatar
Paul.Esson Paul.Esson is offline Offline
Junior Poster

Re: Is it too late to learn Python

 
0
  #19
Mar 31st, 2008
sorry and in C
  1. #include <stdio.h>
  2. int main(){
  3. long long a = 111111111;
  4. printf("%lld", a * a );
  5. return 0;
  6. }
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 666
Reputation: ZZucker is on a distinguished road 
Solved Threads: 38
ZZucker's Avatar
ZZucker ZZucker is offline Offline
Practically a Master Poster

Re: Is it too late to learn Python

 
0
  #20
Mar 31st, 2008
Thanks for the samples of C, C++, C# and Java they make Python code look alarmingly simple.

Paul, what C++ compiler are you using?
The open source g++ gives me lots of errors:

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\AtestCON\NineOnes1\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\testCON\NineOnes1\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"

main.cpp:1: error: expected namespace-name before ';' token

main.cpp:1: error: `<type error>' is not a namespace
main.cpp:3: error: `array' was not declared in this scope
main.cpp:3: error: `System' has not been declared
main.cpp:3: error: `String' was not declared in this scope

main.cpp:3: error: expected primary-expression before '>' token
main.cpp:3: error: expected primary-expression before '^' token
main.cpp:3: error: `args' was not declared in this scope
main.cpp:4: error: expected `,' or `;' before '{' token

make.exe: *** [main.o] Error 1

Execution terminated
Do you really think that this C++ code:
  1. using namespace System;
  2.  
  3. int main(array<System::String ^> ^args)
  4. {
  5. Int64 a = 111111111;
  6. Console::WriteLine( Int64(a * a) );
  7. return 0;
  8. }
is easier to understand than Python:
  1. a = 111111111
  2. print a * a
Last edited by ZZucker; Mar 31st, 2008 at 12:19 pm.
Never argue with idiots, they'll just bring you down to their level and beat you with their experience.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC