![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Wow, that got the soup boiling! There are the C/C++ experts, and then there is the C/C++ crowd mostly lost in memory allocations, pointers, and other things the prof comes up with to kill time. Sorry DaWei, I didn't originally consider you part of the crowd.
Hello Sane! Nice to know you are still looking in every now and then! Thanks Arevos for the hint on Haskell. Can you point me into the right direction?
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#22 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
![]()
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#23 | |
|
Professional Programmer
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3
![]() |
Quote:
Edit: Try the homepage of Haskell. |
|
|
|
|
|
|
#24 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Thanks Game_Ender for the Haskell ref!
Yes, I have looked at boost, 20M+ zipped, found it to be overwhelming in size and complexity. Beating yourself with chains comes to mind! I think it was one of the reasons I switched to Python.
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#25 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Nah, Game Ender, it was the 'fear' remark. I'm not a professional programmer, and C++ is just one of my occassional tools, but fear has never been involved and the bottom line has always come through nicely.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#26 | |
|
Programmer
Join Date: Dec 2005
Posts: 67
Rep Power: 0
![]() |
Quote:
As far as the topic goes, personally I find python is alot quicker to develop in. I love python. I have alot more experience in C/C++ then I do any language but I always revert back to python when I have an Idea for a program that won't be too greatly effected by the speed differences. For example the other day I wrote a fully functioning FTP client with GUI in a matter a couple hours in less then 500 lines of code using Python, wxPython and Pythoncard. It would have taken me alot longer in C/C++ as well as alot more code to tackle the same task. For me atleast, python does cut down on development time. |
|
|
|
|
|
|
#27 |
|
Newbie
Join Date: Jan 2007
Posts: 3
Rep Power: 0
![]() |
what kind of programs can you write with python?
|
|
|
|
|
|
#28 |
|
Professional Programmer
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3
![]() |
The real question is what can't you write in python. You can write anything but an operating system or dynamic library in python.
|
|
|
|
|
|
#29 |
|
Newbie
Join Date: Jan 2007
Posts: 3
Rep Power: 0
![]() |
i have a question. like im like trying to learn how to program in python. and like can anyone tell me what loops are used for and whats an easy way to learn them. is there like some sort of like formula
|
|
|
|
|
|
#30 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Loops are used for repeating blocks of code. There are two basic types of loops; while loops, which keep repeating until a condition is met, and for loops, which repeat for each item in a list.
Here's an example of a "while" loop: python Syntax (Toggle Plain Text)
And here's an example of a "for" loop: python Syntax (Toggle Plain Text)
python Syntax (Toggle Plain Text)
It's a little counter intuitive, but there are a few good reasons for not including the last number. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [tutorial] Python for programming beginners | coldDeath | Python | 30 | Dec 14th, 2005 12:35 PM |
| If you want to learn Python or improve your Python skills | coldDeath | Python | 2 | Nov 23rd, 2005 1:27 AM |
| Convert Python script to C++ code | clanotheduck | Python | 17 | Sep 25th, 2005 9:55 AM |
| Advanced Python Tricks | Arevos | Python | 19 | Sep 24th, 2005 8:39 AM |
| Python - A Programmers Introduction | coldDeath | Python | 17 | Aug 19th, 2005 1:41 PM |