473,485 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do you feel ?

Hi,

A bit off topic.

I just wondered what was your feeling when you were coding with Python.
I have beebn coding with different languages and the only that has given
me the will to invent or to be creative has been Python. Python allows
me not to focus on the complexity of the language itself.

Of course, from time to time, I find something that is not clear to me
but indeed after a couple of research you find the information you were
looking for.

I love that language and above all, I love using it.

Sorry for this little spam but it is always good to acknowledge good
things and not only complaining when it doesn't work.

Thanks the Python team.
- Sylvain
Jul 18 '05 #1
15 1539
"Sylvain Hellegouarch" <sh@defuze.org> wrote in message
news:ma*************************************@pytho n.org...
Hi,

A bit off topic.

I just wondered what was your feeling when you were coding with Python.
I have beebn coding with different languages and the only that has given
me the will to invent or to be creative has been Python. Python allows
me not to focus on the complexity of the language itself.

Of course, from time to time, I find something that is not clear to me
but indeed after a couple of research you find the information you were
looking for.

I love that language and above all, I love using it.

Sorry for this little spam but it is always good to acknowledge good
things and not only complaining when it doesn't work.

Thanks the Python team.
- Sylvain


I feel vaguely guilty, as if I were cheating somehow. Isn't programming
supposed to hurt more than this?

--
Cy
http://home.rochester.rr.com/cyhome/
Jul 18 '05 #2
Sylvain Hellegouarch <sh@defuze.org> writes:
Hi,

A bit off topic.

I just wondered what was your feeling when you were coding with
Python. I have beebn coding with different languages and the only
that has given me the will to invent or to be creative has been
Python. Python allows me not to focus on the complexity of the
language itself.

Of course, from time to time, I find something that is not clear to
me but indeed after a couple of research you find the information
you were looking for.

I love that language and above all, I love using it.

Sorry for this little spam but it is always good to acknowledge good
things and not only complaining when it doesn't work.

Thanks the Python team. - Sylvain
I get a little giddy quite often. I start to think, "I can code anything!"

Step 1. Code l33t application
Step 3. Profit
<{{{*>

Jul 18 '05 #3
Sylvain Hellegouarch wrote:
Hi,

A bit off topic.

I just wondered what was your feeling when you were coding with Python.
I have beebn coding with different languages and the only that has given
me the will to invent or to be creative has been Python. Python allows
me not to focus on the complexity of the language itself.


Currently I feel hungry. I need to eat breakfast.

David
Jul 18 '05 #4
I did not expect that one ^^

David Fraser wrote:
Sylvain Hellegouarch wrote:
Hi,

A bit off topic.

I just wondered what was your feeling when you were coding with
Python. I have beebn coding with different languages and the only that
has given me the will to invent or to be creative has been Python.
Python allows me not to focus on the complexity of the language itself.

Currently I feel hungry. I need to eat breakfast.

David

Jul 18 '05 #5
Yeah I know what you mean, I've been programming C for a long time and
since I've been coding with Python, I feel free but also guilty to enjoy
so much coding whereas coding in C was more ... hmmm painful :)

Cy Edmunds wrote:
"Sylvain Hellegouarch" <sh@defuze.org> wrote in message
news:ma*************************************@pytho n.org...
Hi,

A bit off topic.

I just wondered what was your feeling when you were coding with Python.
I have beebn coding with different languages and the only that has given
me the will to invent or to be creative has been Python. Python allows
me not to focus on the complexity of the language itself.

Of course, from time to time, I find something that is not clear to me
but indeed after a couple of research you find the information you were
looking for.

I love that language and above all, I love using it.

Sorry for this little spam but it is always good to acknowledge good
things and not only complaining when it doesn't work.

Thanks the Python team.
- Sylvain

I feel vaguely guilty, as if I were cheating somehow. Isn't programming
supposed to hurt more than this?

Jul 18 '05 #6
I'm a dyed-in-the-wool Lisp programmer by history, but not for pay these
days. I'm trying Python for a nights-and-weekends project. And every time
I use it, I tell my wife (a technically savy non-programmer) that "hey,
this Python stuff really isn't bad. It's.... well..., pretty good."

Of course, the first thing I did was re-implement generic functions. But
other than that, I'm must using the libraries. They're good. I'm having
fun again!

The one thing I've found annoying is that I haven't yet discovered how to
do whatever I want in lambda expressions. I have top-level assignments
where I'd like create a function to use as the the value being assigned. I
don't know how to define a named function in a top-level assignment, and a
lambda won't allow me to use 'try' and other statements -- just
expressions. Or am I looking at things wrong?

Sylvain Hellegouarch wrote:
Hi,

A bit off topic.

I just wondered what was your feeling when you were coding with Python.
I have beebn coding with different languages and the only that has given
me the will to invent or to be creative has been Python. Python allows
me not to focus on the complexity of the language itself.

Of course, from time to time, I find something that is not clear to me
but indeed after a couple of research you find the information you were
looking for.

I love that language and above all, I love using it.

Sorry for this little spam but it is always good to acknowledge good
things and not only complaining when it doesn't work.

Thanks the Python team.
- Sylvain


Jul 18 '05 #7
I'm a dyed-in-the-wool Lisp programmer by history, but not for pay these
days. I'm trying Python for a nights-and-weekends project. And every time
I use it, I tell my wife (a technically savy non-programmer) that "hey,
this Python stuff really isn't bad. It's.... well..., pretty good."

Of course, the first thing I did was re-implement generic functions. But
other than that, I'm must using the libraries. They're good. I'm having
fun again!

The one thing I've found annoying is that I haven't yet discovered how to
do whatever I want in lambda expressions. I have top-level assignments
where I'd like create a function to use as the the value being assigned. I
don't know how to define a named function in a top-level assignment, and a
lambda won't allow me to use 'try' and other statements -- just
expressions. Or am I looking at things wrong?

Sylvain Hellegouarch wrote:
Hi,

A bit off topic.

I just wondered what was your feeling when you were coding with Python.
I have beebn coding with different languages and the only that has given
me the will to invent or to be creative has been Python. Python allows
me not to focus on the complexity of the language itself.

Of course, from time to time, I find something that is not clear to me
but indeed after a couple of research you find the information you were
looking for.

I love that language and above all, I love using it.

Sorry for this little spam but it is always good to acknowledge good
things and not only complaining when it doesn't work.

Thanks the Python team.
- Sylvain


Jul 18 '05 #8
Howard Stearns wrote:
The one thing I've found annoying is that I haven't yet discovered how
to do whatever I want in lambda expressions. I have top-level
assignments where I'd like create a function to use as the the value
being assigned. I don't know how to define a named function in a
top-level assignment, and a lambda won't allow me to use 'try' and other
statements -- just expressions. Or am I looking at things wrong?


What do you mean by "top-level assignment"? If it's the same
meaning most Python programmers would give it, you just do this:

def somefunc():
pass

topLevelName = somefunc

There's your top-level assignment of a named function. Probably
not what you meant, but can you clarify please?

-Peter
Jul 18 '05 #9
Howard Stearns <ho************@charter.net> wrote in message news:<41**************@charter.net>...
Of course, the first thing I did was re-implement generic functions. But
other than that, I'm must using the libraries. They're good. I'm having
fun again!

Oh, here you are! Just today, I have written a post which use your generic
functions module in combination with decorators!
The one thing I've found annoying is that I haven't yet discovered how to
do whatever I want in lambda expressions. I have top-level assignments
where I'd like create a function to use as the the value being assigned. I
don't know how to define a named function in a top-level assignment, and a lambda won't allow me to use 'try' and other statements -- just
expressions. Or am I looking at things wrong?


You cannot use "lambda" as you would do in Lisp; you must use named
functions. Fortunately, decorators help a bit (see my post on generic functions).

Michele Simionato
Jul 18 '05 #10
Sylvain Hellegouarch wrote:
Hi,

A bit off topic.
Not at all, in my view.
I just wondered what was your feeling when you were coding with Python.
I have beebn coding with different languages and the only that has given
me the will to invent or to be creative has been Python. Python allows
me not to focus on the complexity of the language itself.
It's a lot of fun, rewarding, often giving instant gratification. I
can do some pretty complex stuff (at least from my point of view) in
short time, do it right and complete. I did some programming for fun
in C++ and Java, but only very simple tasks, worse and not really
better.

It's useful. I can do helper tools that I could live without but that
make my (professional or private) life easier.

It's interesting. I can learn new (to me) programming concepts, like
function currying. I tried to learn Perl, and after one useful script
done in five days, never got back to it. I tried Common Lisp, but
online tutorials are very basic, and online reference is hard to
navigate; I still don't know what "#" and "," mean. I tried Smalltalk
and loved it - it's approach to OO complements Python's in a very cool
way - but I'd need something better integrated with the system than
Squeak is.

I repeat, above all, it's a lot of fun.
Of course, from time to time, I find something that is not clear to me
but indeed after a couple of research you find the information you were
looking for.
Yeah, sometimes you have to dig for it, like I had for the way to do
multiple keystroke bindings in Tkinter for the DiacriticalEditor
(http://aspn.activestate.com/ASPN/Coo...Recipe/286155;
shameless self-advertisement), but chances are you'll find it or
someone on c.l.py will tell you.
I love that language and above all, I love using it.
Same here.
Sorry for this little spam but it is always good to acknowledge good
things and not only complaining when it doesn't work.
Like I said, it's no spam at all.
Thanks the Python team.


Same from me,

AdSR
Jul 18 '05 #11
I'll try to explain in my poor English how I feel: WORRIED.
I don't know what's gong on with me, but since I started learning
programing with Python, I'm experiencing some strange behaviors that
are seriously affecting my social life, my work, and my view of the
world surrounding me...

It's addictive! I just can't stop thinking in terms of objects and
functions for the most silly things that come up in my head!
I used to have erotic dreams, but now, I just dream about a clean idle
window where I can start coding solutions for problems that I never
had...

It's getting worse and worse... I wonder if there is some kind of help
group, like Alcoholics Anonymous or something like that.
If there's someone with the same symptoms that wants to share its pain
with me, please write.
I'm shure we're more than one!
Jul 18 '05 #12
Sorry. When I said "define a named function in a top-level assignment", I
didn't just mean using a reference to a previously defined function (i.e.,
it's name), I meant actually defining the function in the assignment.

If you haven't done this sort of thing for years, I could see it being
hard to imagine why I would want to do this. After all, isn't the code
clearer if we define the function with a name ahead of time? And doesn't
the debugger work better with functions that have a name?

Well, I agree with this for what might be called middle-ground uses.
However, I do a lot of work with very simple cases and very complicated ones.

In very simple cases, the code is more cluttered if I have to define the
function separately. Now, when the function is simple, Python let's me
define an anonymous function in the assignment. That's cool. But I also
have cases where the assignment is simple, but maybe the function isn't.
This came up for me when I tried to populate generic functions with
methods. (See generic functions thread. Though it looks like decorators
will soon help me out here...)

In very complex cases, I lament the shear distance between the function
definition and the one place in the code where it is referenced. (Again,
maybe decorators will help. Cool.)

Peter Hansen wrote:
Howard Stearns wrote:
The one thing I've found annoying is that I haven't yet discovered how
to do whatever I want in lambda expressions. I have top-level
assignments where I'd like create a function to use as the the value
being assigned. I don't know how to define a named function in a
top-level assignment, and a lambda won't allow me to use 'try' and
other statements -- just expressions. Or am I looking at things wrong?

What do you mean by "top-level assignment"? If it's the same
meaning most Python programmers would give it, you just do this:

def somefunc():
pass

topLevelName = somefunc

There's your top-level assignment of a named function. Probably
not what you meant, but can you clarify please?

-Peter


Jul 18 '05 #13
ar**********@yahoo.com (AdSR) wrote in message news:<b8**************************@posting.google. com>...
<snip>
I tried Common Lisp, but
online tutorials are very basic, and online reference is hard to
navigate; I still don't know what "#" and "," mean.
<snip>


A short update after a few nice people sent me some helpful info:
Common Lisp is an impressively powerful language, but I still prefer
Python's straightforwardness and its more practical (think re, xml,
Tkinter modules) standard library. It fits my brain and my job better.

An interesting comparison, if you want to check it for yourself, is
one between the unittest module and what is described on this page:

http://www.gigamonkeys.com/book/prac...framework.html

Both approaches are based on commonly used features and coding style
of their respective languages. I think this is good example of how
language vs. language comparisons should be done.

AdSR
Jul 18 '05 #14
Howard Stearns wrote:
Sorry. When I said "define a named function in a top-level assignment",
I didn't just mean using a reference to a previously defined function
(i.e., it's name), I meant actually defining the function in the
assignment.

If you haven't done this sort of thing for years, I could see it being
hard to imagine why I would want to do this. After all, isn't the code
clearer if we define the function with a name ahead of time? And doesn't
the debugger work better with functions that have a name?

Well, I agree with this for what might be called middle-ground uses.
However, I do a lot of work with very simple cases and very complicated
ones.

In very simple cases, the code is more cluttered if I have to define the
function separately. Now, when the function is simple, Python let's me
define an anonymous function in the assignment. That's cool. But I also
have cases where the assignment is simple, but maybe the function isn't.
This came up for me when I tried to populate generic functions with
methods. (See generic functions thread. Though it looks like decorators
will soon help me out here...)

In very complex cases, I lament the shear distance between the function
definition and the one place in the code where it is referenced. (Again,
maybe decorators will help. Cool.)

Peter Hansen wrote:
Howard Stearns wrote:
The one thing I've found annoying is that I haven't yet discovered
how to do whatever I want in lambda expressions. I have top-level
assignments where I'd like create a function to use as the the value
being assigned. I don't know how to define a named function in a
top-level assignment, and a lambda won't allow me to use 'try' and
other statements -- just expressions. Or am I looking at things wrong?


What do you mean by "top-level assignment"? If it's the same
meaning most Python programmers would give it, you just do this:

def somefunc():
pass

topLevelName = somefunc

There's your top-level assignment of a named function. Probably
not what you meant, but can you clarify please?

-Peter


Maybe this is what you mean:

def dodef(val):
global globfunc
def globfunc(other):
return val, other

This works just fine.

-Scott David Daniels
Sc***********@Acm.Org

Jul 18 '05 #15
Scott David Daniels <Sc***********@Acm.Org> wrote:
Howard Stearns wrote: ...
Sorry. When I said "define a named function in a top-level assignment",
I didn't just mean using a reference to a previously defined function
(i.e., it's name), I meant actually defining the function in the
assignment.
If you (Howard) mean horrors such as
foo = lambda x: x + 23
the Pythonic way is
def foo(x): return x + 23
with absolutely identical results.

In very complex cases, I lament the shear distance between the function
definition and the one place in the code where it is referenced. (Again,


What distance? Put the def right before that 'one place in the code',
zero distance.
assignments where I'd like create a function to use as the the value
being assigned. I don't know how to define a named function in a


You sure do appear to ignore the equivalence between 'foo = lambda ...'
and def foo( ...'. What do you think def _does_...?
Maybe this is what you mean:

def dodef(val):
global globfunc
def globfunc(other):
return val, other

This works just fine.


It works, sort of, but each call to dodef steps right over the previous
value of global globfunc, and I think that may lead to nasty bugs. I
much prefer the style:

def dodef(val):
def anyfunc(other): return val, other
return anyfunc

and if the caller wants to assign this function to name 'foofunc', it's
the caller's job to say

foofunc = dodef(23)
I think this is much more transparent and thus less error-prone.
Alex
Jul 18 '05 #16

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

Similar topics

12
2735
by: da Vinci | last post by:
Greetings. I want to get everyone's opinion on the use of recursion. We covered it in class tonight and I want a good solid answer from people in the "know" on how well recursion is accepted...
14
1709
by: Abhishek Bagga | last post by:
Hi! I want my .net application to have a windows look n feel. How can i enable this. I have tried 1 or 2 third party tools but not very satisfied with them As far as possible I would like to...
0
1094
by: Cardinal | last post by:
Greetings all, I am relatively new to programming and have some experience in C++ and Java. I would like to be able to develop applications in Windows using C++ or Visual C++ (maybe C#?). But...
2
1712
by: Rajendra | last post by:
Hi All Can any one plz help me how to give a windows form a look & feel of XP for buttons & Grid running on win2K, I heard of Application.EnableVisualStyles and Manifest but its not working can...
4
2554
by: Curious Joe | last post by:
What is needed to get the Office 2007 feel in my applications? I love the user experience in 2007 and want to implement the same in my applications. Any help is appreciated...
6
2189
by: =?Utf-8?B?TWFuaXNoIEJhZm5h?= | last post by:
Hi, I am using ASP.NET 2.0.So is it possible to give windows XP Look and Feel to my ASP.NET AJAX Website irrespective of operating system in which browser of end users are running.I want to do...
3
2055
by: Vincent | last post by:
I work for a software company who develops a Microsoft Access based application. I am currently in the process of designing a scheduler for this application and really like the design of the...
2
4024
by: =?Utf-8?B?TWFydGluIEFkaGll?= | last post by:
Hi All, Anyone knows where can I get Outlook Web Access (OWA) 2003 look and feel template code in asp.net 2.0? This download for windows based Outlook 2003 look and feel template....
3
1842
by: Kevin | last post by:
With VS2005 the look and feel of dialogs created with MFC and Windows Forms is different. E.g. still of checkboxes, buttons, etc. Is it possible to achieve the same look and feel with both MFC...
0
7090
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,...
0
6960
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7116
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,...
1
6825
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...
0
7275
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4551
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...
0
3063
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
595
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
247
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...

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.