LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2015, 01:32 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,776
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
seek desktop app as pattern for new work


I want to create a new application.
I need to learn how to program for modern linux desktop environments.

Someone once told me to read through tar source code and man pages for examples of both good and bad command-line (CLI) C/C++ effort. I did, and I learned a lot. That was way back when.

Please recommend an existing linux/GNU application that might make a good "learn from" pattern for my own efforts. I'm not talking about a project fork. Rather, if I read their code and docs and such, I will see a "pretty good example" of how to do my own work "well enough."
I'm looking for something small enough to absorb quickly yet large enough to cover a wide selection of application features. I'm looking for scripted (python, etc) as well as C/C++ applications (QT, GTK, etc).

Thanks in advance,
~~~ 0;-Dan

Last edited by SaintDanBert; 01-22-2015 at 01:44 PM.
 
Old 01-23-2015, 07:21 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,885
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
That's quite interesting, never heard of a recommendation to read the tar source. I should take a look at it and see what I think of it.


Qt has a very wide selection of examples with their package and just on the web such as here, plus you can search further for Qt examples and see what suits you.

IMHO it goes the one step further, which is that you need to understand the intent of your application and how it will operate. My point being that any somewhat competent programmer can do the "Main Window -> Hello button widget" application. The question are whether or not you need to be full screen, a'la kiosk, if you have images to replace widgets, if you have text fields which require entry and controls, if you have pop-ups, or added screens for things like settings and such, or something like if you would be putting graphs up. However, Qt has a great deal of examples to show things like an expanded 3D style stick and ball shape, or an example drawing app, plus many others. What you don't always see are examples of things like replacement of the draw function in order to make a style option change, things like that. For those sorts of examples it may be best to web search for projects done by other people to see how they tackled particular requirements they had.
 
1 members found this post helpful.
Old 01-24-2015, 12:26 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,776

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by rtmistler View Post
That's quite interesting, never heard of a recommendation to read the tar source. I should take a look at it and see what I think of it.
While in graduate school (Computer Science, Georgia Tech 1979) a professor told the class, "Working code makes a great specification." We had access to source code for Unix® System-III™ and Primos®. I read a lot of code and learned a lot of good and bad about coding.
Quote:
Originally Posted by rtmistler View Post
Qt has a very wide selection of examples with their package and just on the web such as here, plus you can search further for Qt examples and see what suits you.
These are examples to inform the process of using the various components of Qt. I'm looking for applications in the wild. I want to see examples of how real developers have assembled their application suite. Not only do I want to see how they made use of the various framework (Qt, GTK, etc) parts but also details like how their project is organized: code vs. headers, comments vs. developer docs vs. end-user docs, build tool chain (make, ant, eclipse, etc.), and so on.
Quote:
Originally Posted by rtmistler View Post
IMHO it goes the one step further, which is that you need to understand the intent of your application and how it will operate. My point being that any somewhat competent programmer can do the "Main Window -> Hello button widget" application. The question are whether or not you need to be full screen, a'la kiosk, if you have images to replace widgets, if you have text fields which require entry and controls, if you have pop-ups, or added screens for things like settings and such, or something like if you would be putting graphs up.
I call this Problem Space Analysis and Design. I did this sort of work for a lot of years before entering "management" then "retirement." While I blow the dust from those skills, I posted this question to help me learn about how contemporary Linux™ Desktop-Environment application's suites get built and packaged.
Quote:
Originally Posted by rtmistler View Post
However, Qt has a great deal of examples to show things like an expanded 3D style stick and ball shape, or an example drawing app, plus many others. What you don't always see are examples of things like replacement of the draw function in order to make a style option change, things like that. For those sorts of examples it may be best to web search for projects done by other people to see how they tackled particular requirements they had.
The typical linux distro install includes dozens, if not hundreds of library, utility and application packages. Every linux end-user makes routine use of some sub-set of these packages. I'm asking that my LinuxQuestions (LQ) colleagues suggest, "Take a look at package ABC" as something that works well but is small enough to grab the source package and learn from the code and as-built files.


Thanks in advance,
~~~ 8d;-/ Dan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] seek: backup tool for single user home desktop textillis Slackware 15 07-24-2013 01:36 PM
Seek Button in Videos doesn't work - Ubuntu 10.04 Nathan Spencer Linux - Software 1 07-14-2010 07:49 PM
Ubuntu8.0.4- Lost top line and bottom line on desktop-No app guide- No work spc boxes pizzipie Linux - Newbie 1 12-24-2008 08:01 AM
find linenumber for pattern and work on the next line (Help Please) eentonig Programming 2 07-24-2008 12:00 AM
Xephyr/Xnest - all I can get is a weave pattern instead of remote desktop gctaylor1 Linux - Desktop 1 01-05-2007 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration