Re: GO vs Python

2014-08-24 Thread Sam Fourman Jr.
On Sun, Aug 24, 2014 at 10:07 PM, Chris Angelico  wrote:

> On Mon, Aug 25, 2014 at 12:57 PM, Sam Fourman Jr. 
> wrote:
> > my initial reason for even looking at GO, was because, I noticed that if
> I
> > wanted to move my largest clients app from Python 2.x to 3.x it was
> almost a
> > rewrite. and then when I noticed the libraries for python 3.x were
> > limited, and some python 2.x libraries are not even making a 3.x
> version...
> >
> > Well I got scared, Go started to look attractive, because your no longer
> > comparing GO to the entire python community, it is GO vs python 3...
>
> If your Python 2 -> Python 3 transition was "almost a rewrite", then
> either your code is making horribly messy assumptions about bytes vs
> text everywhere (in which case the pain will happen, Py3 just forces
> you to deal with it up-front instead of burying your head in the sand
> and wishing "funny characters" would go away), or you did the
> transition wrongly. It's not a complete change of language.
>
> And, what libraries are you short of for Python 3? List them! Maybe
> they do exist now. Nearly everything important does, there are only a
> handful of large/popular 2.x-only modules. And if you talk about
> what's missing, you demonstrate the need for those ports, which might
> be the impetus someone needs to make it available.
>
> There's way too much vague FUD about Python 3. Everyone who complains
> does so with "oh, there aren't many libraries for Python 3", not with
> "PyFooBar isn't available for Python 3", which would actually be
> useful.
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Thanks your your input chris, honestly it was the end of 2012 when I looked
into a large py3 port for a client.
I wrote a very large web project on Cheetah, and at the time there wasnt a
Py3 port... Now I get that back when I wrote this code years before, I
should have chose something else..

I remember doing some browsing around, and the pooco people that make
jinja2 were not fans of python3(I forget the blog post), I got scared
because a very large portion of my income was based on a single client...
So since we were having scalability issues anyway, I moved them to GO, and
it was a Win - Win, the GO standard lib does so much, and the scalability
gains we received over python were so large, that we were able to reduce
out AWS bill so much that I could hire another coder.

I really like python, and we use it a ton, but a python like compiled
language did wonders for us when we needed it most.

Sam Fourman Jr.

-- 

Sam Fourman Jr.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: GO vs Python

2014-08-24 Thread Sam Fourman Jr.
On Sun, Aug 24, 2014 at 9:36 PM, Rodrick Brown 
wrote:

> I spent a few weeks looking at Go and have to say you can see a lot of
> Python's influence in Go, however my question to this list for others who
> are doing real work with Go and Python have you encountered any scenarios
> in which Go outmatched Python in terms of elegance or performance?
>
> --RB
>


I use both, Python pays the bills, and I use it at work or on consulting
gigs.
for most things GO is faster, GO is compiled and that is a huge plus.

the Go community is not nearly as large as pythons, there are loads more
libraries and tools for python

my initial reason for even looking at GO, was because, I noticed that if I
wanted to move my largest clients app from Python 2.x to 3.x it was almost
a rewrite. and then when I noticed the libraries for python 3.x were
limited, and some python 2.x libraries are not even making a 3.x version...

Well I got scared, Go started to look attractive, because your no longer
comparing GO to the entire python community, it is GO vs python 3...


thats just my 2 cents, I like python and it pays my bills... but I hate the
way python delt with the 2.x - 3.x, they dropped the ball.

-- 

Sam Fourman Jr.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: basic maze problem with turtle

2013-10-14 Thread Sam Fourman Jr.
On Sun, Oct 13, 2013 at 11:44 PM, Gary Herron <
gary.her...@islandtraining.com> wrote:

> On 10/13/2013 03:03 PM, Denis McMahon wrote:
>
>> Except perhaps Nikos. Nikos can probably write you extremely elegant one
>> line python solutions to any coding problem you describe to him. His
>> solutions might suffer the very minor flaw of not working, but they're
>> guaranteed to be Nikos certified aesthetically pure, and hence far
>> superior to any solution more mundane coders might produce.
>>
>
> That was uncalled for.   There is already too much Nikos-bashing and
> Nikos-basher-bashing (and so on) in this newsgroup without dredging up even
> more in this completely unrelated request.
>
> Gary Herron
>
>
> --
> https://mail.python.org/**mailman/listinfo/python-list<https://mail.python.org/mailman/listinfo/python-list>
>

Who the hell is Nikos? I hear reference to this guy ALL the time, is he a
troll or a python god?
this simply isn't clear.. I have only been on this list a few months.

-- 

Sam Fourman Jr.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Moving to Python for web

2013-08-29 Thread Sam Fourman Jr.
On Wed, Aug 28, 2013 at 4:14 PM,  wrote:

> So, I have been working in PHP for several years but I want to learn
> something new. That something new is Python. But since I'm a web developer
> I want to build stuff for the web.
>
> I don't want to use Django because it's too bloated, it seem to do
> everything for you. I don't like that. I want to do the "plumbing". But at
> the same time I have no idea how I would write something that could handle
> cookies, sessions, post, get etc etc; so I assume I have to use some kind
> of web framework.
>
> So, can you recommend a minimal web framework that still allows me to
> write in Python? Furthermore, do I even need one? I am currently running
> NGINX and I have UWSGI installed. I'm just worried about how I would handle
> form submissions, get requests and sessions/cookies.
>
> Any advice would be greatly appreciated.
> --
> http://mail.python.org/mailman/listinfo/python-list
>


I am in the same boat as you, I need to rid myself of php, and ruby doesn't
"feel" right..
I like python for system admin stuff.. it seems everything has python
bindings :)

there are MANY micro frameworks, I have been following these guys for a few
years
http://www.pocoo.org/

specifically jinja2 and flask looks to be the best choice out of all the
options out there

-- 

Sam Fourman Jr.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: semicolon at end of python's statements

2013-08-29 Thread Sam Fourman Jr.
On Wed, Aug 28, 2013 at 8:18 PM, Mohsen Pahlevanzadeh <
moh...@pahlevanzadeh.org> wrote:

> Dear all,
>
> I'm C++ programmer and unfortunately put semicolon at end of my
> statements in python.
>
> Quesion:
> What's really defferences between putting semicolon and don't put?
>
> Yours,
> Mohsen


I totally understand where you are coming from, but
I have found that the thing I can't get used to is the "indent thing"

Python is a great language, but I always secretly find myself
wishing I could somehow use python, and not deal with the mandatory
"indents"


Sam Fourman Jr.
-- 
http://mail.python.org/mailman/listinfo/python-list