From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: GUI for Ada (GPS with GtkAda or GtkGlade GUI Builder) Date: Thu, 13 Aug 2015 13:59:46 +0200 Organization: cbb software GmbH Message-ID: <79oew82p4v6b$.hkifjb8uma0z$.dlg@40tude.net> References: <84ecbeb2-095a-4067-a05e-e86ac86d8597@googlegroups.com> <8235925f-3299-48fb-abfe-67b77515e5de@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: enOx0b+nfqkc2k+TNpOejg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:27437 Date: 2015-08-13T13:59:46+02:00 List-Id: On Thu, 13 Aug 2015 01:58:56 -0700 (PDT), sjaniska@gmail.com wrote: > Does it make sense to write application's "business-logic" (back-end) in > higher-level and type-safe language like Ada and then write front-end in > e.g. PyQt and call Ada code in the form of Python's extension module? No. Because GUI code is usually bigger and messier than the application code. It is more fragile and requires much more maintenance. Furthermore it is the only thing the customer sees and actually pays attention. > Is it "best of both worlds" - having logic written in type-safe language > and GUI in productive environment like e.g. PyQt or it is actually "the > worst of the two" by losing type-safety since extension module should use > C convention and possibly one will also lose advantage of using Python? No. Maintenance costs are 10 times of developing costs. For GUI code it is even more than that, because once deployed, the customer starts requiring modifications. Whatever mythical productivity it does not matter in the end anyway. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de