Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43454

Re: Functional vs. Object oriented API

Date 2013-04-12 10:29 -0400
From Mitya Sirenef <msirenef@lightbird.net>
Subject Re: Functional vs. Object oriented API
References <mailman.429.1365635789.3114.python-list@python.org> <51678b94$0$29977$c3e8da3$5496439d@news.astraweb.com> <roy-E3B2B9.10194712042013@news.panix.com>
Newsgroups comp.lang.python
Message-ID <mailman.522.1365776990.3114.python-list@python.org> (permalink)

Show all headers | View raw


On 04/12/2013 10:19 AM, Roy Smith wrote:
> As part of our initial interview screen, we give applicants some small
> coding problems to do.  One of the things we see a lot is what you could
> call "Java code smell".  This is our clue that the person is really a
> Java hacker at heart who just dabbles in Python but isn't really fluent.
> It's kind of like how I can walk into a Spanish restaurant and order
> dinner or enquire where the men's room is, but everybody knows I'm a
> gringo as soon as I open my mouth.
>
> It's not just LongVerboseFunctionNamesInCamelCase().  Nor is it code
> that looks like somebody bought the Gang of Four patterns book and is
> trying to get their money's worth out of the investment.  The real dead
> giveaway is when they write classes which contain a single static method
> and nothing else.
>
> That being said, I've noticed in my own coding, it's far more often that
> I start out writing some functions and later regret not having initially
> made it a class, than the other way around.


I've absolutely noticed the same thing for myself, over and over
again. I can't remember writing a class that I've regretted is not
a few functions, although it must have happened a few times.   -m


-- 
Lark's Tongue Guide to Python: http://lightbird.net/larks/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Functional vs. Object oriented API Max Bucknell <mpwb500@york.ac.uk> - 2013-04-11 00:16 +0100
  Re: Functional vs. Object oriented API Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-12 04:20 +0000
    Re: Functional vs. Object oriented API Roy Smith <roy@panix.com> - 2013-04-12 10:19 -0400
      Re: Functional vs. Object oriented API Mitya Sirenef <msirenef@lightbird.net> - 2013-04-12 10:29 -0400
      Re: Functional vs. Object oriented API David M Chess <chess@us.ibm.com> - 2013-04-12 11:37 -0400
        Re: Functional vs. Object oriented API 88888 Dihedral <dihedral88888@googlemail.com> - 2013-04-12 22:25 -0700
        Re: Functional vs. Object oriented API 88888 Dihedral <dihedral88888@googlemail.com> - 2013-04-12 22:25 -0700
  Re: Functional vs. Object oriented API Rui Maciel <rui.maciel@gmail.com> - 2013-04-13 09:51 +0100

csiph-web