[Tutor] First steps for C++/Qt developers
Alan Gauld
alan.gauld at btinternet.com
Wed May 12 18:56:37 CEST 2010
"M. Bashir Al-Noimi" <mbnoimi at gmx.com> wrote
> This is my first post and I want to set a plan for learning python
> syntax within 2 weeks.
Learning python syntax in 2 weeks is easily achievable if you go through
the official tutorial at python.org. It is designed for people coming from
another language, especially C++ or Java. If you work through it at a
sensible pace - ie slow enough to think about it - you should be done
in 2 or 3 days. From there you will know enough to start working through
the Django tutorial material and write short simple Python function and
programs.
> 1. From where I can start python by examples for C++ developers (I
> don't want documentation tutorials cuz I need simple tutorials
> compares between C++ & python syntax just at start point)?
As others have said, trying to convert your knowledge of C++ into
Python is likely to result in you writing Python that looks like C++.
It is also likely to introduce bad habits based on C++ limitations.
You need to learn the Python way of doing things (and its limitations!)
> 2. What's most IDE like Qt Creator (smart code completing is very
> important to me)?
Most Python IDEs do at least basic tooltips and such but if you are
familiar with Eclipse then you can install PyDev and get all the usual
Eclipse tools, including a good debugger. The one thing that is less
useful in Eclipse is its interpreter prompt, but you can just use a tool
like IDLE or Pythonwin or IPython in a terminal for that.
> 3. One of most different -I guess- between PHP & ASP.net is separated
> html code, does python separates html code or not?
Python supports all the different styles of web development but Django,
like most modern web tools separates code from presentation.
> 4. Do I need any pre knowledge about CGI principles before stating
> developing web application with python?
Since it is all built on CGI it is always a good idea to understand
what is really going on. But raw CGI skill is not essential to get started
in Django.
> 5. Does django provide rapid framework for web applications just like
> Qt? or you suggest better framework (I don't want to create web
> applications from scratch)?
Django is a framework for rapid Web development but it is very
different to, for example Glade. It is not an IDE or visual editor.
> 6. What's most suitable packaging tool (deploying desktop
> applications) for Windows OS?
If its a web server based app then installing Python and Django
on the server and loading your packages on is a better bet that
trying to create an exe file os similar.
> 7. Does the period of 2 week enough for learning python syntax &
> basics of web developing?
Yes, but it will be a steep curve.
Ask lots of questions, and read lots of documentation.
Ask the questions in the place most likely to answer them
correctly! (ie python stuff here, Django stuff on a Django list)
> 8. Does any one tested an experience just like me (learning a new
> language within short period could be crazy ;-) )?
I've been programming for about 30 years and have learned
well over 20-30 languages. C++ was the hardest to learn and
took about a month to get comfortable, most take a week.
Becoming an expert, now that's a different thing altogether - it took
me about 4 years to reach that in C++ and about 1 year to lose
it again! I'm still learning in Python after 10+ years! (Mainly
because I don't use it for industrial stength projects)
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list