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


Groups > comp.lang.python > #109244

Re: Recommendation for Object-Oriented systems to study

From Alan Evangelista <alanoe@linux.vnet.ibm.com>
Newsgroups comp.lang.python
Subject Re: Recommendation for Object-Oriented systems to study
Date 2016-05-29 15:12 -0300
Message-ID <mailman.30.1464549450.1839.python-list@python.org> (permalink)
References <53b21136-68ce-485c-8ccb-d6d28dace9c5@googlegroups.com> <b42b93a5-7b4c-4492-8692-b99b369333c0@googlegroups.com> <201605291812.u4TI9dqP037317@mx0a-001b2d01.pphosted.com>

Show all headers | View raw



On 05/29/2016 02:49 PM, Michele Simionato wrote:
> On Sunday, May 29, 2016 at 4:42:17 PM UTC+2, Ankush Thakur wrote:
>> Hello, I'm a self-taught programmer who has managed to claw his way out of Python basics and even 
>> covered the intermediate parts. But I feel I have a ton of theory in my head and would like to 
>> see some smallish applications in action. More specifically, I'm looking for Object Oriented 
>> designs that will help me cement my knowledge and expose me to best practices that books never 
>> cover. I have half a mind to start reading up the Django or Pandas source code, but I don't want 
>> to overwhelm myself. Can somebody recommend smaller and simpler projects I can learn from? And if 
>> I can pick the brains of the creator, bonus points!

The answer may be a little out of scope because you are asking in a Python mailing list, but
if the interest is learning OOP concepts (and not OOP in Python), IMHO Java is better.

- Java forces everything to be implemented in OO model (classes)

- Java widely uses interfaces and abstract classes. Python has not the concept of interface, as it 
favors EAFP
and duck typing instead of creating base classes which establish contracts. Python also allows 
multiple inheritance,
which is *usually* a bad idea, unless the base classes are interfaces.

- In Java, interface/implementation separation is *usually* a bigger concern (eg getters and setters
are common in Java code, rare in Python code) .

I know that Python developers see Python as more pragmatic, more flexible and quicker/easier/less
bureaucratic to develop than Java, so my opinion may be controversial.


Regards,
Alan Evangelista

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


Thread

Recommendation for Object-Oriented systems to study Ankush Thakur <ankush.thakur53@gmail.com> - 2016-05-29 07:42 -0700
  RE: Recommendation for Object-Oriented systems to study "Joseph Lee" <joseph.lee22590@gmail.com> - 2016-05-29 09:00 -0700
    Re: Recommendation for Object-Oriented systems to study Ankush Thakur <ankush.thakur53@gmail.com> - 2016-05-30 08:56 -0700
  Re: Recommendation for Object-Oriented systems to study Michele Simionato <michele.simionato@gmail.com> - 2016-05-29 10:49 -0700
    Re: Recommendation for Object-Oriented systems to study Terry Reedy <tjreedy@udel.edu> - 2016-05-29 14:29 -0400
      Re: Recommendation for Object-Oriented systems to study Ankush Thakur <ankush.thakur53@gmail.com> - 2016-05-30 08:57 -0700
        Re: Recommendation for Object-Oriented systems to study Terry Reedy <tjreedy@udel.edu> - 2016-05-30 15:01 -0400
          Re: Recommendation for Object-Oriented systems to study Ankush Thakur <ankush.thakur53@gmail.com> - 2016-05-31 10:52 -0700
            Re: Recommendation for Object-Oriented systems to study Terry Reedy <tjreedy@udel.edu> - 2016-06-01 05:22 -0400
              Re: Recommendation for Object-Oriented systems to study Ankush Thakur <ankush.thakur53@gmail.com> - 2016-06-03 10:28 -0700
    Re: Recommendation for Object-Oriented systems to study Alan Evangelista <alanoe@linux.vnet.ibm.com> - 2016-05-29 15:12 -0300
      Re: Recommendation for Object-Oriented systems to study Marko Rauhamaa <marko@pacujo.net> - 2016-05-29 22:42 +0300
      Re: Recommendation for Object-Oriented systems to study Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-05-30 11:34 +1200
        Re: Recommendation for Object-Oriented systems to study Ankush Thakur <ankush.thakur53@gmail.com> - 2016-05-30 08:59 -0700
      Re: Recommendation for Object-Oriented systems to study Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-01 22:44 -0700
        Re: Recommendation for Object-Oriented systems to study Alan Evangelista <alanoe@linux.vnet.ibm.com> - 2016-06-02 09:15 -0300
          Re: Recommendation for Object-Oriented systems to study Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-02 18:13 -0700
          Re: Recommendation for Object-Oriented systems to study Bob Martin <bob.martin@excite.com> - 2016-06-03 07:14 +0100
            Re: Recommendation for Object-Oriented systems to study Phuong Phan <p.h.phan2006@gmail.com> - 2016-06-03 18:07 +0900
              Re: Recommendation for Object-Oriented systems to study Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-03 09:17 -0700
  Re: Recommendation for Object-Oriented systems to study Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-05-30 14:14 -0400
  Re: Recommendation for Object-Oriented systems to study Sayth Renshaw <flebber.crue@gmail.com> - 2016-06-03 07:24 -0700
    Re: Recommendation for Object-Oriented systems to study Ankush Thakur <ankush.thakur53@gmail.com> - 2016-06-03 10:24 -0700

csiph-web