473,756 Members | 3,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Random thoughts from an aspiring Pythonista

I was first exposed to Python in '94-95 by a fellow comp sci student.
After a brief "play time" I discarded it was too radical. I *hated*
the indentation == block of code theme. Besides, Forth was the One
True Language(tm). :)

Fast forward 6-7 years of real world programming in VB, C, NATURAL (a
COBAL derived quasi 4GL), PHP, Perl and others. Programming wan't my
main job, but I did it a bunch. Never wrote anything beyond toys in
Forth, and didn't really play with it after school...

I was working for a small ISP and needed to revise some Perl scripts I
had written about a year before. After 4 days of trying to figure out
how I wrote the things in the first place I just rewrote them from
scratch. There must be a better way!

I forget exactly how, but Python was brought back to my attention.
After having dealt with the real world of braces, I was willing to
take another look.

It didn't take long before I fell in love. Even with the previously
hated indentation as structure concept. Now I saw the beauty. Why
have one type of block structure for the computer and another for the
human?! Haven't we learned anything? We all know that if you have to
keep track or more than 1 thing for each update, sooner or later you
forget to do something!

I've been messing about with Python on and off (mostly on) for about 3
years. Mostly it's small utility scripts. I've done 1 mid-size
system (~3500 loc) although I think it would be 3-4 times bigger with
any other language. wxPython even makes GUI programming fun!

While many of the following aren't unique to Python, Python is where I
really "got" it so Python gets the credit ;)

-Indentation is structure

-Introspection and dynamic programming made easy

-List comprehensions!

-Strong dynamic typing

-An incredible standard library. Several times I've thought I was
going to need to build a custom class only to find that using the
standard library and 2-3 lines of code did the trick! (Lately this
was working with Julian dates as the business world uses them, YYDDD
and CCYYDDD)

-Python documentation is amazingly well written, although sometimes it
is a little terse. (Note to self: write some more examples for
inclusion in the next manual!)

-DocStrings rock!

-DocStrings + PyDoc is just unreal!

-unittest: Beyond the first intro course all programming courses
should be built on the concept of test driven development. (Theory
courses aside, of course.)

-import this

-Elegant is better than inelegant

-Unless elegant isn't clear

-Python gives you enough rope to hang yourself, but you have to know
where to look.

-Python land has a dearth of trees, branches or posts to use the rope
to actually hang yourself. And the landscape is so beautiful we don't
even notice most of the time. :)

-The Python Cookbook.

-Python has lots of support to make writing maintainable software
easy. It doesn't force you to do anything, it just makes it easier.

-It's a language you can swear by, not at.

-Built in high level data structures.

-References, not pointers.

-pysco - when speed really, really matters on i386 (and really, what
else matters? ;->)

-Interactive interpreter - now I know exactly what this code does!

So much to love. Anyway, thanks to all the great people who have
brought us Python.

Chris
--
Still searching for an even prime > 2!
Jul 18 '05 #1
1 1524
On Thu, 8 Jul 2004 16:33:41 -0400, Chris <ev********@gma il.com> wrote:

-It's a language you can swear by, not at.


Or in. :-)

--
Christopher
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2578
by: Jean-Fran?ois Lacrampe | last post by:
Hello, I've got two random number/statistics questions I'd like you to review. My first question is not directly related to PHP, but will be implemented in PHP, as explained in my second question, so let's go: I want to generate 10000 strings of x characters, with one chance (or less) on a million that you can guess them by just randomly typing them. So I need to know what is the value of x.
0
1162
by: David Goodger | last post by:
With apologies in advance to the devoutly religious among us, who may be offended by this corruption of The Lord's Prayer. No offence intended. The Pythonista's Prayer ======================= Our language, Which art in programs, Python be thy Name.
2
2732
by: Amy | last post by:
Does anyone know if thier is anything built in the framework to generate random filenames? I have a dataset(hash table) that grows very large. After a certain point a good portion of the elements will not be used anymore until the end of the program. In order to conserve memory I wanted to write out the current data in the hash table to a file. Any thoughts? Amy
5
2592
by: Linda | last post by:
Greetings: I have found a random image script that I like. It is located here: http://www.javascriptcity.com/scripts/local/simage3.htm I'd like to edit this to have 4 different slots for images with a different set of 5 images for each slot, something like this page: http://www.uchsc.edu The script says /* no need to edit past this point (unless you want to
2
1475
by: deanfamily | last post by:
I have a double-linked list. I need to insert RANDOM numbers into it. The rand() function doesn't put "random" number in the list, in the sense that every time you run the program it should produce new numbers. Also, I need to know if it is possible to remove just one of an item, instead of all that match the given criteria with the remove command. Any thoughts?
9
2935
by: Jeremy | last post by:
I have a situation where i am trying to run two query's and retrieve one record from each query, then using Union combine them into one recordset. The First Query is strait forward and should just return the matching record however the second query needs to find a random record and return it. The union is causing me some trouble. It seems that any method i try to find a random record just causes an error. Here is an example of a query...
7
1879
by: alphaLaura | last post by:
Hi all - I'm just new to the group and I hope nobody minds me asking for some help. I currently have an assignment which deals with matrices (more specifically, Gauss-Seidel solving of matrices). One of the side tasks we have is to generate an NxN matrix of random numbers using the rand() function, but subject to the constraint that the absolute value of the diagonal element (a) must be greater than the sum of the absolute values of all...
0
26040
SammyB
by: SammyB | last post by:
These are some "random" thoughts about generating random numbers in Visual Basic. Wikipedia will give a better introduction than I, see http://en.wikipedia.org/wiki/Random_number_generator. The key point is that you need to start the random number generator with a seed. Doing it in the form load with the number of milliseconds since midnight is an easy way to start. The VB.Net version This demo project will be as simple as I can...
12
1472
by: David Bear | last post by:
I would like to write some code that would randomly select a function from a list of functions and call it. I was looking in the globals names space and randomly selecting items that were of type function.. but I didn't see a way of actually running the function. Any pointers? -- David Bear -- let me buy your intellectual property, I want to own your thoughts --
3
2734
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
Hi, I have a method which produces a random DNA sequence. I would like to write a unit test for it, but can't quite figure out what makes sense. It is easy to test that a DNA sequence is produced. What I can't figure is randomness. By it's very nature random is random. I have written a simple test that generates 500 sequences and checks that none of them are the same. That works, but seems very weak besides, if the sequences are truly...
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9843
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.