04-10-2008, 10:22 AM | #1 |
Guru
Posts: 962
Karma: 568242
Join Date: Dec 2007
Device: Kindle Oasis 3, Kindle Paperwhite 1, iPad, iPhone
|
Cocoa vs Python (Books vs libprs500)
OK, I'll admit that I can't make up my mind on something and I want to get your help.
I am trying to decide which language/platform I should invest in: Cocoa (Objective C) or Python. Here's why. I love the functionality and cross-platform nature of libprs500. But I love the UI, look, and snappiness of Books. I want to help contribute to both but I know I don't have the time for it. So I need to pick one platform and go with it. Here are my pros and cons for each: Libprs500 (Python) Pros: 1. Lots of functionality already developed 2. Cross platform 3. Google App Engine also supportw Python 4. Great developer response (Kovid's the man) Libprs500 (Python) cons: 1. UI elements are basic and, well, ugly. 2. Slower than Objective C 3. Steep learning curve (I'm already experiencing it) 4. Question about it's longevity Books (Cocoa) Pros: 1. Very fast and able to access advanced features of the operating system including advanced and attractive controls (Mac Only) 2. Library management code robust and easy to understand. 3. It's for the Mac only, which I have an interest in learning anyway Books (Cocoa) Cons: 1. Lots of PRS-500(5) functionality to be written 2. Developer (Chris) is in school and response time is limited (by his own admission and is understandable) 3. Single Platform (Mac Only) I'm just curious what you all think. Based on some of these statements, if you had some extra time to participate in one of the two projects, which would it be and why? TIA! |
04-10-2008, 10:26 AM | #2 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If you go with Cocoa, you are limiting yourself bigtime to just one platform and doing not all that many people a favor.
Python however is cross platform. So when you develop code, it can be used in multiple systems. Not limited to just one. Best to go with Python. |
Advert | |
|
04-10-2008, 10:38 AM | #3 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
You can write Cocoa apps in Python.
http://developer.apple.com/cocoa/pyobjc.html |
04-10-2008, 10:40 AM | #4 |
Wizard
Posts: 1,234
Karma: 3350652
Join Date: Feb 2008
Device: Amazon Kindle Paperwhite (300ppi), Samsung Galaxy Book 12
|
Actually, Cocoa code can run on other platforms using GNUstep. Nova Mind for example, uses this to get a Windows version of the mindmapping software.
Apple of course, was able to revive the code for their Openstep for Enterprise for Windows NT to get Safari.app running on Windows. It should be quite easy to just make calls to Python from a Cocoa app, so this should get you the best of both worlds (re-use the code from libprs500, but use Cocoa for the interface). William |
04-10-2008, 12:25 PM | #5 | |
Guru
Posts: 962
Karma: 568242
Join Date: Dec 2007
Device: Kindle Oasis 3, Kindle Paperwhite 1, iPad, iPhone
|
Quote:
|
|
Advert | |
|
04-10-2008, 12:32 PM | #6 | |
Grand Sorcerer
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
BOb |
|
04-10-2008, 02:27 PM | #7 |
Guru
Posts: 962
Karma: 568242
Join Date: Dec 2007
Device: Kindle Oasis 3, Kindle Paperwhite 1, iPad, iPhone
|
Maybe, I don't know much about. What i like is the ability to use the Mac standard interfaces (using Cocoa) with the libprs500 classes for managing the data, conversions, and interacting with the hardware.
That's the angle I am looking at right now. |
04-10-2008, 03:03 PM | #8 | |
Guru
Posts: 962
Karma: 568242
Join Date: Dec 2007
Device: Kindle Oasis 3, Kindle Paperwhite 1, iPad, iPhone
|
Quote:
|
|
04-11-2008, 08:14 AM | #9 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'm not going to comment on books vs. libprs500 since I'm obviously biased, but I do want to understand what you mean by the "Steep learning curve" for the libprs500 codebase, since I've tried to keep the code as simple and re-usable as possible.
|
04-11-2008, 10:14 AM | #10 |
Wizzard
Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
|
I started writing a reply & got called away, but the OP might find it easier to split the comparisons into "Python vs Cocoa", "libprs500 UI" vs Cocoa UI" & "libprs500" vs Cocoa" as there are quite different things being lumped into an A vs B scenario.
|
04-11-2008, 11:22 AM | #11 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Mar 2008
Location: UK
Device: Kindle Oasis, iPhone 7 Plus
|
Have you got a link to this Books app?
|
04-11-2008, 03:01 PM | #12 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
04-11-2008, 05:39 PM | #13 |
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2008
Device: Sony Reader PRS-505
|
|
04-11-2008, 07:57 PM | #14 |
Guru
Posts: 962
Karma: 568242
Join Date: Dec 2007
Device: Kindle Oasis 3, Kindle Paperwhite 1, iPad, iPhone
|
Well, what I mean is that a) Python is different than what I'm used to and B) There is a lot of code to go through. Once I get all of the language structure understood it will probably be easier to understand.
|
04-11-2008, 09:43 PM | #15 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah, I see. Well if you have specific questions, drop me a line.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Python version? | lightkeeper54 | Calibre | 1 | 08-07-2009 06:38 AM |
Python 2.5 or 2.6? | itimpi | Calibre | 5 | 01-19-2009 12:48 PM |
Calibre and Python: do they get along? | zander_nyrond | Calibre | 7 | 07-20-2008 06:54 PM |
Libprs500- error with adding previously converted books | bluesnews | Calibre | 4 | 04-08-2008 11:06 PM |
Reference Parloa, Miss: Chocolate and Cocoa Recipes. v1. 26 June 07 | Dr. Drib | BBeB/LRF Books | 2 | 06-26-2007 10:18 PM |